gcc/gcc
Manuel López-Ibáñez ffc3017372 c-common.c (warn_for_collisions_1): Use appropriate option when warning.
2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* c-common.c (warn_for_collisions_1): Use appropriate option when
	warning.

From-SVN: r132428
2008-02-19 10:51:52 +00:00
..
ada re PR ada/15479 (Ada manual problems) 2008-02-17 21:20:01 +00:00
config re PR target/33555 (x86 missed opportunity for sbb) 2008-02-19 08:23:30 +01:00
cp re PR c++/35028 (ICE with strange ctor and firstprivate) 2008-02-19 11:18:29 +01:00
doc c-tree.texi: Use @dots{} and @enddots{} where appropriate. 2008-02-17 18:52:04 +00:00
fortran re PR fortran/34952 (Document lack of support for ENCODE/DECODE) 2008-02-16 14:10:12 +00:00
ginclude
java re PR other/35107 (GCC unnecessarily links shared libs with xgcc, gcov, cpp, jcf-dump, etc.) 2008-02-06 21:51:24 +00:00
objc re PR other/35107 (GCC unnecessarily links shared libs with xgcc, gcov, cpp, jcf-dump, etc.) 2008-02-06 21:51:24 +00:00
objcp [multiple changes] 2008-02-07 19:03:40 +00:00
po * ru.po: Update. 2008-02-08 15:51:37 +00:00
testsuite re PR c++/35028 (ICE with strange ctor and firstprivate) 2008-02-19 11:18:29 +01:00
treelang re PR other/35107 (GCC unnecessarily links shared libs with xgcc, gcov, cpp, jcf-dump, etc.) 2008-02-06 21:51:24 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c alias.c (get_alias_set): For INDIRECT_REFs, deal with SSA_NAME pointers. 2007-10-23 11:20:56 +00:00
alias.h
alloc-pool.c re PR tree-optimization/34176 (SCCVN breaks gettext) 2007-11-23 14:28:59 +00:00
alloc-pool.h re PR tree-optimization/34176 (SCCVN breaks gettext) 2007-11-23 14:28:59 +00:00
attribs.c
auto-inc-dec.c [multiple changes] 2007-12-10 21:31:59 +00:00
BASE-VER * BASE-VER: Set to 4.4.0. 2008-02-18 23:41:06 +01:00
basic-block.h basic-block.h (condjump_equiv_p): Fix comment. 2008-01-27 19:44:42 +01:00
bb-reorder.c re PR rtl-optimization/34085 (ICE with -freorder-blocks-and-partition) 2007-11-26 12:15:02 +00:00
bitmap.c bitmap.h (bitmap_single_bit_set_p): Declare. 2007-11-09 14:01:33 +00:00
bitmap.h bitmap.h (bitmap_single_bit_set_p): Declare. 2007-11-09 14:01:33 +00:00
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c re PR middle-end/20983 (varargs functions force va_list variable to stack unnecessarily) 2007-12-06 14:25:37 +01:00
builtins.def
c-aux-info.c
c-common.c c-common.c (warn_for_collisions_1): Use appropriate option when warning. 2008-02-19 10:51:52 +00:00
c-common.def
c-common.h
c-config-lang.in
c-convert.c
c-cppbuiltin.c re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti) 2008-01-06 22:30:32 +00:00
c-decl.c re PR c/35017 (PR11377 pedwarns even about valid code) 2008-01-30 00:19:07 +01:00
c-dump.c
c-errors.c
c-format.c
c-format.h
c-gimplify.c re PR c/34146 (Inefficient code with compound literals inside a CONSTRUCTO) 2007-11-20 11:36:03 +01:00
c-incpath.c
c-incpath.h
c-lang.c
c-lex.c
c-objc-common.c
c-objc-common.h
c-omp.c c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR. 2008-01-05 16:57:00 +00:00
c-opts.c re PR c/32102 (-Wall stomps on -Wstrict-overflow) 2008-01-22 14:11:44 +00:00
c-parser.c re PR c++/34607 (ICE with invalid for loop after #pragma omp for) 2008-01-22 18:25:37 +01:00
c-pch.c
c-ppoutput.c
c-pragma.c re PR preprocessor/35061 (#pragma pop_macro causes ICE if no macro value on stack) 2008-02-14 21:41:40 +00:00
c-pragma.h
c-pretty-print.c re PR c++/34055 (ICE with invalid specialization of variadic template) 2008-01-29 13:59:59 +00:00
c-pretty-print.h
c-semantics.c
c-tree.h re PR c/14050 ([DR289] c99 restrict doesn't work in abs declarator) 2007-11-22 23:12:29 +00:00
c-typeck.c re PR c/35017 (PR11377 pedwarns even about valid code) 2008-01-30 00:19:07 +01:00
c.opt re PR other/31349 (gcc -v --help returns no options for C, C++) 2008-02-19 10:33:41 +00:00
caller-save.c caller-save.c (insert_one_insn): If inserting before a call_insn then the registers containing the arguments of... 2007-12-10 01:01:03 +00:00
calls.c
cfg.c re PR rtl-optimization/31396 (Inline code performance much worse than out-of-line) 2008-01-16 16:32:05 +00:00
cfganal.c
cfgbuild.c
cfgcleanup.c re PR middle-end/30905 (Fails to cross-jump) 2008-01-11 14:55:34 +00:00
cfgexpand.c re PR target/34814 (SDmode function args not passed according to ABI specification) 2008-01-26 11:18:35 -06:00
cfghooks.c
cfghooks.h
cfglayout.c
cfglayout.h
cfgloop.c
cfgloop.h
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c re PR rtl-optimization/34171 (Segfault in df_chain_remove_problem with -O3 on alpha) 2007-11-30 17:02:43 +00:00
cgraph.c re PR middle-end/34969 (ICE with -fipa-cp -ffast-math) 2008-01-30 00:21:24 +01:00
cgraph.h re PR middle-end/34969 (ICE with -fipa-cp -ffast-math) 2008-01-30 00:21:24 +01:00
cgraphbuild.c langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR. 2007-11-02 07:12:30 -04:00
cgraphunit.c re PR middle-end/34969 (ICE with -fipa-cp -ffast-math) 2008-01-30 00:21:24 +01:00
ChangeLog c-common.c (warn_for_collisions_1): Use appropriate option when warning. 2008-02-19 10:51:52 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007 2008-01-12 Richard Guenther <rguenther@suse.de> 2008-01-12 12:27:07 +00:00
ChangeLog.dataflow
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
collect2.c re PR driver/33772 (collect2 doesn't strip .sl version) 2007-12-31 15:02:59 +00:00
collect2.h
combine-stack-adj.c
combine.c re PR middle-end/34627 (Incorrect branching with -Ox on hppa) 2008-02-09 00:30:13 +00:00
common.opt re PR c/32102 (-Wall stomps on -Wstrict-overflow) 2008-01-22 14:11:44 +00:00
conditions.h
config.build
config.gcc * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation. 2008-01-29 16:28:10 +00:00
config.host
config.in
configure re PR bootstrap/33781 ("Arg list too long" building libgcc.a) 2008-02-01 17:41:48 +00:00
configure.ac re PR bootstrap/33781 ("Arg list too long" building libgcc.a) 2008-02-01 17:41:48 +00:00
convert.c
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c re PR rtl-optimization/31944 (Endless loop while building a 64-bit 2.6.20 kernel) 2008-01-14 12:16:58 +00:00
cselib.c
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2008-02-19 00:17:38 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c dce.c (delete_unmarked_insns): Just delete the RETVAL and LIBCALL notes if... 2007-10-28 10:14:21 +00:00
dce.h re PR rtl-optimization/33644 (ICE in local_cprop_pass with -ftrapv for crafty) 2007-10-22 19:28:23 +00:00
ddg.c re PR tree-optimization/26854 (Inordinate compile times on large routines) 2008-01-22 13:57:01 +00:00
ddg.h
debug.c
debug.h re PR debug/34249 (FAIL: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE) 2008-01-16 12:10:27 +01:00
defaults.h MAINTAINERS (c4x port): Remove. 2008-01-25 20:49:04 +00:00
DEV-PHASE
df-core.c re PR middle-end/34400 (bad interaction between DF and SJLJ exceptions) 2008-01-17 20:02:56 +00:00
df-problems.c re PR tree-optimization/26854 (Inordinate compile times on large routines) 2008-01-22 13:57:01 +00:00
df-scan.c df-core.c: Update comments referring to removed features. 2007-12-14 17:40:46 +00:00
df.h re PR tree-optimization/26854 (Inordinate compile times on large routines) 2008-01-22 13:57:01 +00:00
dfp.c
dfp.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h re PR bootstrap/35051 (Build machine requires GMP and MPFR for building cross-host gccs) 2008-02-08 19:10:25 +00:00
dse.c dse.c (find_shift_sequence): Always choose an integer mode for new_mode. 2007-11-09 12:11:48 +00:00
dse.h
dummy-checksum.c
dwarf2.h re PR fortran/22244 (dimension information is lost for multi-dimension array) 2007-12-09 18:08:06 +01:00
dwarf2asm.c dwarf2asm.c (splay_tree_compare_strings): New function. 2007-11-26 06:38:30 +00:00
dwarf2asm.h
dwarf2out.c re PR debug/34895 (ICE in force_type_die, at dwarf2out.c:12923) 2008-01-23 16:44:27 +00:00
dwarf2out.h re PR fortran/22244 (dimension information is lost for multi-dimension array) 2007-12-09 18:08:06 +01:00
dwarf.h
ebitmap.c
ebitmap.h
emit-rtl.c re PR rtl-optimization/34808 (ICE in prescan_insns_for_dce) 2008-01-21 00:04:23 +00:00
emit-rtl.h
emutls.c
errors.c
errors.h
et-forest.c
et-forest.h
except.c
except.h
exec-tool.in
explow.c re PR middle-end/33713 (can't find a register in class 'GENERAL_REGS' while reloading 'asm') 2007-12-03 23:09:23 +00:00
expmed.c
expr.c re PR middle-end/33631 (auto structure not initialized correctly) 2008-02-04 21:18:32 +00:00
expr.h re PR middle-end/33713 (can't find a register in class 'GENERAL_REGS' while reloading 'asm') 2007-12-03 23:09:23 +00:00
final.c re PR middle-end/34688 ([4.1/4.2] ICE: output_operand: invalid expression as operand) 2008-01-26 23:08:54 +00:00
fix-header.c
fixed-value.c
fixed-value.h
fixproto Committed with RM approval this time. 2008-01-25 07:52:56 +11:00
flags.h re PR c/32102 (-Wall stomps on -Wstrict-overflow) 2008-01-22 14:11:44 +00:00
fold-const.c re PR middle-end/35163 (folding comparison loses cast) 2008-02-12 21:26:49 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c re PR middle-end/34621 (gcc.c-torture/execute/va-arg-25.c:32: internal compiler error: in expand_call, at calls.c:2785) 2008-02-15 10:55:36 +01:00
function.h re PR target/34814 (SDmode function args not passed according to ABI specification) 2008-01-26 11:18:35 -06:00
fwprop.c re PR rtl-optimization/34773 (miscompilation of vfprintf_r) 2008-02-01 21:28:46 +00:00
gbl-ctors.h
gcc.c re PR driver/34904 (-march=native doesn't work with multiple input files) 2008-01-24 10:57:12 -08:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c gcse.c (cprop_jump): Call validate_unshare_change instead of validate_change to unshare the source... 2008-01-13 13:13:35 +01:00
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype.c tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to 'func'. 2007-11-16 00:11:47 +00:00
gengtype.h
genmddeps.c
genmodes.c
genmultilib
genopinit.c genopinit.c: Include tm_p.h in generated file. 2007-12-10 05:42:02 +00:00
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c Support valgrind 3.3 for --enable-checking=valgrind. 2008-02-19 04:13:05 +00:00
ggc-none.c
ggc-page.c Support valgrind 3.3 for --enable-checking=valgrind. 2008-02-19 04:13:05 +00:00
ggc-zone.c Support valgrind 3.3 for --enable-checking=valgrind. 2008-02-19 04:13:05 +00:00
ggc.h
gimple-low.c 2007-09-23 Razya Ladelsky 2007-10-29 11:05:04 +00:00
gimplify.c re PR middle-end/35136 (ICE caused by address calculation with loop variable when optimization is on) 2008-02-14 19:07:38 +00:00
glimits.h
global.c re PR rtl-optimization/34998 (gcc.c-torture/execute/20040709-1.c fails for -EL -mips16 -O3) 2008-01-30 11:18:27 +00:00
graph.c
graph.h
graphds.c
graphds.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.h
gthr-lynx.h
gthr-mipssde.h
gthr-nks.h
gthr-posix95.h
gthr-posix.c
gthr-posix.h
gthr-rtems.h gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT. 2008-02-06 04:33:09 +01:00
gthr-single.h
gthr-solaris.h
gthr-tpf.h
gthr-vxworks.h
gthr-win32.h [multiple changes] 2008-02-10 18:06:34 +00:00
gthr.h
haifa-sched.c haifa-sched.c (haifa_classify_insn): Rename to ... 2007-11-09 20:02:10 +03:00
hard-reg-set.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c ifcvt.c (noce_can_store_speculate_p): New static function. 2007-10-29 20:41:17 +00:00
init-regs.c
input.h
insn-addr.h
insn-notes.def
integrate.c
integrate.h
intl.c
intl.h
ipa-cp.c
ipa-inline.c
ipa-prop.c
ipa-prop.h
ipa-pure-const.c [multiple changes] 2007-11-08 16:45:53 +00:00
ipa-reference.c
ipa-reference.h
ipa-struct-reorg.c re PR c/35002 (Incorrect spelling of "hottest") 2008-01-29 16:56:20 +01:00
ipa-struct-reorg.h Fogot to commit ipa-struct-reorg.c ipa-struct-reorg.h. 2007-10-24 12:48:41 +00:00
ipa-type-escape.c ipa-type-escape.h: Expose function is_array_access_through_pointer_and_index. 2007-10-24 10:36:30 +00:00
ipa-type-escape.h ipa-type-escape.h: Expose function is_array_access_through_pointer_and_index. 2007-10-24 10:36:30 +00:00
ipa-utils.c [multiple changes] 2007-11-08 16:45:53 +00:00
ipa-utils.h
ipa.c re PR middle-end/35149 (ICE: in expand_call_inline, at tree-inline.c:2653) 2008-02-15 11:15:48 +00:00
jump.c rtlanal.c (label_is_jump_target_p): Return true for a matching REG_LABEL_TARGET. 2007-11-24 22:15:54 +00:00
lambda-code.c lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences in the dependence_relations vector. 2008-01-16 19:26:26 +00:00
lambda-mat.c
lambda-trans.c
lambda.h
langhooks-def.h re PR debug/7081 (DWARF enhancements for C++) 2007-12-15 20:19:23 +00:00
langhooks.c langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR. 2007-11-02 07:12:30 -04:00
langhooks.h re PR debug/7081 (DWARF enhancements for C++) 2007-12-15 20:19:23 +00:00
LANGUAGES
lcm.c
libada-mk.in
libfuncs.h
libgcc2.c libgcc2.c (__fixunstfDI, [...]): Make return type unsigned. 2007-11-05 11:41:40 +00:00
libgcc2.h libgcc2.c (__fixunstfDI, [...]): Make return type unsigned. 2007-11-05 11:41:40 +00:00
libgcc-std.ver
libgcov.c
limitx.h
limity.h
lists.c
local-alloc.c re PR rtl-optimization/31396 (Inline code performance much worse than out-of-line) 2008-01-16 16:32:05 +00:00
longlong.h longlong.h (add_ssaaaa): Support Intel asm syntax in i386 and x86_64 versions. 2007-10-29 23:54:54 +00:00
loop-doloop.c Fix 34826 2008-01-17 17:49:32 +00:00
loop-init.c
loop-invariant.c re PR tree-optimization/26854 (Inordinate compile times on large routines) 2008-01-22 13:57:01 +00:00
loop-iv.c re PR tree-optimization/26854 (Inordinate compile times on large routines) 2008-01-22 13:57:01 +00:00
loop-unroll.c
loop-unswitch.c
lower-subreg.c
machmode.def
machmode.h
main.c
Makefile.in re PR other/35148 (make pdf has missing file in 4.3-20080208) 2008-02-13 19:27:34 +00:00
matrix-reorg.c
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
mode-switching.c
modulo-sched.c SMS: Minor misc fixes 2008-02-19 09:19:36 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c re PR middle-end/35196 (lastprivate broken for static non-ordered loops) 2008-02-15 18:42:25 +01:00
ONEWS
opt-functions.awk
opt-gather.awk
optabs.c re PR target/35083 (ICE: in extract_insn, at recog.c:1990) 2008-02-06 11:45:29 +01:00
optabs.h re PR middle-end/33335 (FAIL: 26_numerics/complex/inserters_extractors/wchar_t/1.cc) 2007-11-18 20:18:39 +01:00
optc-gen.awk re PR other/32754 (The opt?-gen.awk file generators produce incorrect credits) 2008-02-07 20:40:19 +00:00
opth-gen.awk
opts-common.c re PR other/32754 (The opt?-gen.awk file generators produce incorrect credits) 2008-02-07 20:40:19 +00:00
opts.c re PR other/31349 (gcc -v --help returns no options for C, C++) 2008-02-19 10:33:41 +00:00
opts.h
output.h
params.c
params.def re PR c/35002 (Incorrect spelling of "hottest") 2008-01-29 16:56:20 +01:00
params.h ipa-type-escape.h: Expose function is_array_access_through_pointer_and_index. 2007-10-24 10:36:30 +00:00
passes.c re PR tree-optimization/33092 (Using -O1 -fno-tree-salias results in ICE) 2008-01-22 13:27:52 +00:00
pointer-set.c
pointer-set.h
postreload-gcse.c re PR target/35045 (gcc-4.3 generates wrong code on i386 with -O3) 2008-02-02 15:00:57 +00:00
postreload.c
predict.c
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-tree.c re PR c++/33916 (Default constructor fails to initialize array members) 2008-02-03 22:28:53 -05:00
profile.c
protoize.c
ra-conflict.c re PR rtl-optimization/34998 (gcc.c-torture/execute/20040709-1.c fails for -EL -mips16 -O3) 2008-01-30 11:18:27 +00:00
ra.h global.c (find_reg): Mark the eh regs as used if necessary. 2008-01-17 16:18:59 +00:00
read-rtl.c read-rtl.c (fatal_expected_char): Print EOF as text rather that its binary representation. 2007-11-20 17:24:51 +00:00
README.Portability
real.c MAINTAINERS (c4x port): Remove. 2008-01-25 20:49:04 +00:00
real.h re PR bootstrap/35051 (Build machine requires GMP and MPFR for building cross-host gccs) 2008-02-08 19:10:25 +00:00
recog.c
recog.h
reg-notes.def re PR rtl-optimization/34773 (miscompilation of vfprintf_r) 2008-02-01 21:28:46 +00:00
reg-stack.c
regclass.c rtl.def (SUBREG): Update comments. 2007-12-19 09:54:24 +00:00
regmove.c regmove.c (fixup_match_1): Update call crossed frequencies. 2008-01-21 07:54:41 -08:00
regrename.c
regs.h re PR rtl-optimization/31396 (Inline code performance much worse than out-of-line) 2008-01-16 16:32:05 +00:00
regstat.c re PR rtl-optimization/31396 (Inline code performance much worse than out-of-line) 2008-01-16 16:32:05 +00:00
reload1.c re PR rtl-optimization/33644 (ICE in local_cprop_pass with -ftrapv for crafty) 2007-10-22 19:28:23 +00:00
reload.c re PR target/34995 (MIPS16 ICE in gcc.c-torture/compile/pr34856.c) 2008-01-31 09:25:52 +00:00
reload.h
reorg.c rtlanal.c (label_is_jump_target_p): Return true for a matching REG_LABEL_TARGET. 2007-11-24 22:15:54 +00:00
resource.c 200x-xx-xx Kaz Kylheku <kaz@zeugmasystems.com> 2007-12-18 07:40:17 +00:00
resource.h
rtl-error.c
rtl-factoring.c
rtl.c
rtl.def rtl.def (SUBREG): Update comments. 2007-12-19 09:54:24 +00:00
rtl.h rtl.def (SUBREG): Update comments. 2007-12-19 09:54:24 +00:00
rtlanal.c rtlanal.c (label_is_jump_target_p): Return true for a matching REG_LABEL_TARGET. 2007-11-24 22:15:54 +00:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c Maxim Kuvyrkov <maxim@codesourcery.com> 2007-11-09 20:23:42 +03:00
sched-ebb.c
sched-int.h
sched-rgn.c rtlanal.c (label_is_jump_target_p): Return true for a matching REG_LABEL_TARGET. 2007-11-24 22:15:54 +00:00
sched-vis.c
sdbout.c
sdbout.h
see.c re PR rtl-optimization/33644 (ICE in local_cprop_pass with -ftrapv for crafty) 2007-10-22 19:28:23 +00:00
simplify-rtx.c re PR target/34856 (ICE with some constant vectors) 2008-01-25 11:25:21 +01:00
sort-protos
sparseset.c re PR rtl-optimization/33796 (valgrind error with -O2 for linux kernel code) 2008-01-16 21:21:36 -06:00
sparseset.h sparseset.c: Include config.h and system.h before sparseset.h. 2007-12-05 13:47:22 +01:00
sreal.c
sreal.h
stab.def
stack-ptr-mod.c
statistics.h
stmt.c re PR middle-end/34134 (ICE when using __builtin_stack_restore) 2007-12-04 22:55:32 +01:00
stor-layout.c re PR ada/34098 (xgcc: Internal error: Segmentation fault (program gnat1)) 2007-11-19 17:49:11 +00:00
stringpool.c
struct-equiv.c
stub-objc.c
sync-builtins.def
sys-protos.h
sys-types.h
system.h Support valgrind 3.3 for --enable-checking=valgrind. 2008-02-19 04:13:05 +00:00
target-def.h re PR target/34814 (SDmode function args not passed according to ABI specification) 2008-01-26 11:18:35 -06:00
target.h re PR target/34814 (SDmode function args not passed according to ABI specification) 2008-01-26 11:18:35 -06:00
targhooks.c
targhooks.h
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c re PR other/35070 (-fverbose-asm has bogus asm output (mpfr library warning)) 2008-02-05 16:23:10 +00:00
toplev.h
tracer.c
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-cfg.c re PR target/34856 (ICE with some constant vectors) 2008-01-21 16:21:45 +00:00
tree-cfgcleanup.c
tree-chrec.c re PR tree-optimization/34063 (ICE: build2_stat, at tree.c:3115) 2007-11-13 19:23:03 +01:00
tree-chrec.h tree-chrec.h (build_polynomial_chrec): RHS of a chrec should not be of pointer type. 2007-11-14 00:41:05 +00:00
tree-complex.c re PR middle-end/35227 (gcc ICEs for functions with unused complex argument) 2008-02-17 15:06:53 +00:00
tree-data-ref.c re PR tree-optimization/34769 (gcc.dg/vect/no-vfa-pr29145.c) 2008-01-16 16:00:17 +00:00
tree-data-ref.h
tree-dfa.c re PR tree-optimization/35164 (Unable to coalesce ab SSA_NAMEs) 2008-02-15 15:24:19 +00:00
tree-dump.c re PR middle-end/29673 (no -fdump-tree-inlined output) 2008-02-13 11:15:51 +00:00
tree-dump.h
tree-eh.c re PR c++/34196 (uninitialized variable warning in dead exception region) 2008-01-21 23:53:33 -05:00
tree-flow-inline.h re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior) 2008-01-08 12:12:56 +00:00
tree-flow.h re PR tree-optimization/35164 (Unable to coalesce ab SSA_NAMEs) 2008-02-15 15:24:19 +00:00
tree-gimple.c re PR middle-end/33088 (spurious exceptions with -ffloat-store) 2007-12-13 21:49:09 +00:00
tree-gimple.h
tree-if-conv.c re PR tree-optimization/34140 (ICE in is_hidden_global_store, at tree-ssa-sink.c:207) 2007-11-28 20:48:19 +01:00
tree-inline.c re PR middle-end/34969 (ICE with -fipa-cp -ffast-math) 2008-01-30 00:21:24 +01:00
tree-inline.h re PR tree-optimization/35006 (Segfault in remove_unused_locals with nested functions) 2008-01-29 15:47:19 +00:00
tree-into-ssa.c tree-flow.h (subvar_t): Make it a VEC. 2007-10-28 16:14:44 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-linear.c
tree-mudflap.c re PR libmudflap/26442 (ICE on valid unreachable code (and no name) when compiling with -fmudflap) 2008-01-01 23:08:05 +00:00
tree-mudflap.h
tree-nested.c re PR middle-end/34921 (Misalign stack variable referenced by nested function) 2008-02-18 15:43:23 -08:00
tree-nomudflap.c
tree-nrv.c tree-flow.h (subvar_t): Make it a VEC. 2007-10-28 16:14:44 +00:00
tree-object-size.c
tree-optimize.c
tree-outof-ssa.c Fix PR34263: Cleaning up latch blocks 2008-01-06 15:24:10 +00:00
tree-parloops.c tree-parloops (gen_parallel_loop): Revert my fix. 2008-01-16 04:17:49 +00:00
tree-pass.h re PR middle-end/29673 (no -fdump-tree-inlined output) 2008-02-13 11:15:51 +00:00
tree-phinodes.c
tree-predcom.c
tree-pretty-print.c tree-pretty-print.c (print_generic_decl, [...]): Fix comment. 2008-01-27 17:48:54 +01:00
tree-profile.c re PR gcov-profile/34610 (ICE with "-fprofile-arcs -fopenmp") 2008-01-19 18:49:46 +01:00
tree-scalar-evolution.c tree-scalar-evolution.c (number_of_iterations_for_all_loops): Replace print_loop_ir with print_loops. 2007-12-15 18:35:23 +00:00
tree-scalar-evolution.h re PR tree-optimization/34244 (VRP/SCEV miscompiles Firefox) 2007-11-30 00:32:04 +00:00
tree-sra.c re PR c++/35144 (ICE in generate_element_copy) 2008-02-12 19:35:05 +01:00
tree-ssa-address.c
tree-ssa-alias-warnings.c
tree-ssa-alias.c re PR tree-optimization/33092 (Using -O1 -fno-tree-salias results in ICE) 2008-01-22 13:27:52 +00:00
tree-ssa-ccp.c re PR middle-end/32135 (bogus array-ref fold triggering array overflow warning) 2008-01-13 11:18:08 +00:00
tree-ssa-coalesce.c
tree-ssa-copy.c re PR c++/34862 (operator new placement variant with reference arg not accepted by g++ 4.3) 2008-01-28 19:43:51 +00:00
tree-ssa-copyrename.c re PR c++/34862 (operator new placement variant with reference arg not accepted by g++ 4.3) 2008-01-28 19:43:51 +00:00
tree-ssa-dce.c
tree-ssa-dom.c re PR middle-end/34462 (tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118) 2007-12-14 14:21:41 +00:00
tree-ssa-dse.c re PR c++/34459 (incorrect code when compiled with optimization (-O1)) 2007-12-20 15:40:33 +01:00
tree-ssa-forwprop.c re PR tree-optimization/35164 (Unable to coalesce ab SSA_NAMEs) 2008-02-15 15:24:19 +00:00
tree-ssa-ifcombine.c
tree-ssa-live.c tree-ssa-live.c (remove_unused_scope_block_p): Drop declarations and blocks only after inlining. 2007-11-26 06:24:54 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c re PR tree-optimization/33992 (Miscompiles function with inlining, breaks profiledbootstrap) 2008-02-11 08:27:00 +00:00
tree-ssa-loop-ivcanon.c tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Remove unused edges after loop duplication. 2007-11-14 17:36:01 +00:00
tree-ssa-loop-ivopts.c coding convention 2008-02-19 09:34:16 +01:00
tree-ssa-loop-manip.c
tree-ssa-loop-niter.c
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c tree-ssa-loop.c (gate_tree_parallelize_loops): Return true when "flag_tree_parallelize_loops > 1". 2007-12-06 11:35:44 +01:00
tree-ssa-math-opts.c re PR tree-optimization/34966 (ICE: verify_ssa fails when optimization trigonometric code) 2008-01-25 12:08:52 +00:00
tree-ssa-operands.c re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior) 2008-01-08 16:29:14 +00:00
tree-ssa-operands.h re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior) 2008-01-08 16:29:14 +00:00
tree-ssa-phiopt.c re PR tree-optimization/33961 (gcc 4.3 causes crash valid code to crash) 2007-11-01 03:06:38 +00:00
tree-ssa-pre.c re PR middle-end/34462 (tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118) 2007-12-14 14:21:41 +00:00
tree-ssa-propagate.c tree-ssa-propagate.c (set_rhs): Fix typo. 2007-11-27 01:03:54 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/35085 (gcc.dg/vect/vect-iv-9.c fails) 2008-02-07 15:11:26 +01:00
tree-ssa-sccvn.c re PR target/34856 (ICE with some constant vectors) 2008-01-21 16:21:45 +00:00
tree-ssa-sccvn.h tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed field (valnum) the first in the struct. 2008-01-10 16:29:59 +00:00
tree-ssa-sink.c
tree-ssa-structalias.c re PR c++/31863 (g++-4.1: out of memory with -O1/-O2) 2008-01-08 21:35:25 +00:00
tree-ssa-structalias.h
tree-ssa-ter.c tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and new_replaceable_dependencies. 2008-01-13 04:27:46 +00:00
tree-ssa-threadedge.c
tree-ssa-threadupdate.c re PR rtl-optimization/33737 (verify_flow_info failed: Wrong probability of edge 94->1 -6651) 2007-11-07 22:05:37 +00:00
tree-ssa-uncprop.c
tree-ssa.c re PR middle-end/33088 (spurious exceptions with -ffloat-store) 2007-12-13 21:49:09 +00:00
tree-ssanames.c
tree-stdarg.c re PR middle-end/34934 (-O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev)) 2008-01-24 16:13:17 +01:00
tree-stdarg.h
tree-tailcall.c
tree-vect-analyze.c tree-vectorizer.c (slpeel_add_loop_guard): Gimplify the condition. 2007-12-06 16:18:55 +00:00
tree-vect-generic.c
tree-vect-patterns.c re PR tree-optimization/35171 (ICE in vect_recog_dot_prod_pattern) 2008-02-12 21:29:39 +00:00
tree-vect-transform.c re PR tree-optimization/34591 (internal compiler error: in cost_for_stmt, at tree-vect-transform.c:98) 2007-12-27 19:14:17 +00:00
tree-vectorizer.c re PR tree-optimization/34371 (verify_stmts failed (incorrect sharing of tree nodes)) 2007-12-10 23:49:43 +01:00
tree-vectorizer.h tree-vectorizer.h (verbosity_levels): Add new verbosity level REPORT_COST. 2007-12-17 20:54:01 +00:00
tree-vn.c re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior) 2008-01-08 16:29:14 +00:00
tree-vrp.c re PR tree-optimization/35231 (VRP miscompiles libX11) 2008-02-17 14:00:48 +00:00
tree.c re PR c/34993 (ICE with attribute for array with unknown bound) 2008-01-30 16:05:19 -08:00
tree.def 2007-09-23 Razya Ladelsky 2007-10-29 11:05:04 +00:00
tree.h re PR bootstrap/35051 (Build machine requires GMP and MPFR for building cross-host gccs) 2008-02-08 19:10:25 +00:00
treestruct.def
tsystem.h
typeclass.h
unwind-c.c
unwind-compat.c
unwind-compat.h
unwind-dw2-fde-compat.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c * unwind-dw2-fde.c: Fix comment typo. 2007-11-26 13:22:41 +11:00
unwind-dw2-fde.h
unwind-dw2.c
unwind-dw2.h
unwind-generic.h * unwind-generic.h: Fix comment typos. 2007-11-26 13:25:50 +11:00
unwind-pe.h
unwind-sjlj.c
unwind.inc * unwind.inc: Comment that unwind-sjlj.c includes this file. 2007-11-20 16:38:30 +11:00
value-prof.c
value-prof.h
var-tracking.c re PR debug/35065 (infinite loop while compiling VLC media player in vt_find_locations) 2008-02-13 14:53:59 +00:00
varasm.c varasm.c (merge_weak, [...]): Commentary typo fixes. 2007-12-05 22:55:10 +01:00
varpool.c varpool.c (dump_varpool): Use 'next', not 'next_needed' when traversing pool. 2007-11-02 15:29:09 +00:00
varray.c
varray.h
vec.c
vec.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c
xcoff.h
xcoffout.c
xcoffout.h

Copyright (C) 2000, 2003 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until know has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


String literals
---------------

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

Some compilers like MSVC++ have fairly low limits on the maximum
length of a string literal; 509 is the lowest we've come across.  You
may need to break up a long printf statement into many smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


free and realloc
----------------

Some implementations crash upon attempts to free or realloc the null
pointer.  Thus if mem might be null, you need to write

  if (mem)
    free (mem);


Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


Suffixes on Integer Constants
-----------------------------

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (int a, int b)
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending.

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.