gcc/gcc
Hans-Peter Nilsson 8ef20026dc re PR middle-end/38609 (gcc.c-torture/execute/built-in-setjmp.c execute -O2 and above)
PR middle-end/38609
	* config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
	functions with dynamic stack-pointer adjustments.

From-SVN: r144951
2009-03-19 03:52:58 +00:00
..
ada Move Ada ChangeLog entry to proper place. 2009-03-11 14:22:30 +00:00
config re PR middle-end/38609 (gcc.c-torture/execute/built-in-setjmp.c execute -O2 and above) 2009-03-19 03:52:58 +00:00
cp dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
doc invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data option; change to -msdata=data. 2009-03-19 08:59:56 +11:00
fortran c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, and -fopenmp. 2009-03-18 21:14:53 +00:00
ginclude Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
java c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, and -fopenmp. 2009-03-18 21:14:53 +00:00
objc Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
objcp Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
po * es.po: Update. 2009-03-03 22:48:24 +00:00
testsuite Fix missing file and ChangeLog error in previous check-in 2009-03-18 21:58:15 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
alias.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
alloc-pool.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
alloc-pool.h
attribs.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
auto-inc-dec.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
BASE-VER
basic-block.h
bb-reorder.c
bitmap.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
bitmap.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
bt-load.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
builtin-attrs.def
builtin-types.def
builtins.c re PR tree-optimization/39272 (-D_FORTIFY_SOURCE=2 no longer warns with new glibc headers) 2009-03-03 13:05:53 +00:00
builtins.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-aux-info.c
c-common.c re PR middle-end/39443 (Builtin redirection no longer working for memcmp) 2009-03-17 18:46:23 +01:00
c-common.def
c-common.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-config-lang.in
c-convert.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-cppbuiltin.c
c-decl.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-dump.c
c-errors.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-format.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-format.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-gimplify.c
c-lang.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-lex.c
c-objc-common.c
c-objc-common.h re PR debug/39267 (gdb testsuite regressions) 2009-02-27 19:49:42 +00:00
c-omp.c
c-opts.c re PR target/39082 (union with long double doesn't follow x86-64 psABI) 2009-02-17 18:16:03 -08:00
c-parser.c re PR c/35447 (ICE with broken statement expression) 2009-02-18 00:38:28 +00:00
c-pch.c
c-ppoutput.c
c-pragma.c
c-pragma.h
c-pretty-print.c
c-pretty-print.h
c-semantics.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-tree.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
c-typeck.c re PR c/38483 (generated aborts lose previous side-effects) 2009-02-19 13:56:00 +00:00
c.opt c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, and -fopenmp. 2009-03-18 21:14:53 +00:00
caller-save.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
calls.c calls.c (emit_library_call_value_1): Use slot_offset instead of offset when calculating bounds for indexing... 2009-02-20 12:19:34 +01:00
cfg.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfganal.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfgbuild.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfgcleanup.c
cfgexpand.c re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign) 2009-03-11 22:12:33 +01:00
cfghooks.c
cfghooks.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfglayout.c
cfglayout.h
cfgloop.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfgloop.h dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
cfgloopanal.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cfgloopmanip.c
cfgrtl.c
cgraph.c
cgraph.h re PR debug/39267 (gdb testsuite regressions) 2009-02-28 21:34:23 +00:00
cgraphbuild.c
cgraphunit.c re PR debug/39267 (gdb testsuite regressions) 2009-02-28 21:34:23 +00:00
ChangeLog re PR middle-end/38609 (gcc.c-torture/execute/built-in-setjmp.c execute -O2 and above) 2009-03-19 03:52:58 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008 Correct ChangeLog entries for revision 136311. 2009-03-16 12:29:17 -07:00
ChangeLog.dataflow
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
collect2.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
collect2.h
combine-stack-adj.c
combine.c combine.c (gen_lowpart_for_combine): Use omode when generating clobber. 2009-03-05 00:16:04 +00:00
common.opt Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
conditions.h
config.build
config.gcc longlong.h (sub_ddmmss): New for ia64. 2009-02-12 08:30:53 -08:00
config.host Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
config.in revert: configure.ac: Enable LFS. 2009-02-15 11:11:13 +00:00
configure backport: Support GNU/kOpenSolaris. 2009-03-01 17:49:31 +00:00
configure.ac revert: configure.ac: Enable LFS. 2009-02-15 11:11:13 +00:00
convert.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
coverage.c
coverage.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c re PR bootstrap/39454 (Bootstrap failure on sparcv9-linux with profiledbootstrap) 2009-03-14 09:10:55 +01:00
cselib.c
cselib.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cstamp-h.in
DATESTAMP Daily bump. 2009-03-19 00:16:51 +00:00
dbgcnt.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dbgcnt.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dbgcnt.h
dbxout.c re PR debug/39267 (gdb testsuite regressions) 2009-02-27 19:49:42 +00:00
dbxout.h
dce.c
dce.h
ddg.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ddg.h
debug.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
debug.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
defaults.h re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign) 2009-03-11 22:12:33 +01:00
DEV-PHASE
df-byte-scan.c
df-core.c
df-problems.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
df-scan.c dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
df.h dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
dfp.c
dfp.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c
dominance.c
domwalk.c
domwalk.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
double-int.c
double-int.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dse.c dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
dse.h
dummy-checksum.c
dwarf2.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dwarf2asm.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dwarf2asm.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
dwarf2out.c dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL. 2009-03-17 18:51:10 +01:00
dwarf2out.h
dwarf.h
ebitmap.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ebitmap.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
emit-rtl.c emit-rtl.c (adjust_address_1): Reduce offset to a signed value that fits within Pmode. 2009-03-04 01:57:29 +00:00
emit-rtl.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
emutls.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
errors.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
errors.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
et-forest.c
et-forest.h
except.c re PR middle-end/38028 (eh failures on spu-elf) 2009-03-07 16:02:30 +00:00
except.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
exec-tool.in Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
explow.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
expmed.c
expr.c re PR tree-optimization/39272 (-D_FORTIFY_SOURCE=2 no longer warns with new glibc headers) 2009-03-03 13:05:53 +00:00
expr.h re PR middle-end/39443 (Builtin redirection no longer working for memcmp) 2009-03-17 18:46:23 +01:00
final.c
fix-header.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
fixed-value.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
fixed-value.h
fixproto Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
flags.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
fold-const.c fold-const.c (fold_comparison): Only call fold_inf_compare if the mode supports infinities. 2009-03-11 15:24:00 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c re PR debug/39485 (-O0 -g still puts whole object to a register) 2009-03-18 18:06:15 +01:00
function.h re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb) 2009-03-17 20:18:21 +00:00
fwprop.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gbl-ctors.h
gcc.c re PR middle-end/37805 (gcc --help=separate) 2009-03-17 21:25:59 +00:00
gcc.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gcov-iov.c
gcov.c
gcse.c
gdbinit.in
gen-protos.c
genattr.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genattrtab.c
genautomata.c
gencheck.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genextract.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genflags.c
gengenrtl.c
gengtype-lex.l Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gengtype-parse.c
gengtype.c
gengtype.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genmddeps.c
genmodes.c
genmultilib
genopinit.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genoutput.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
genpeep.c
genpreds.c genpreds.c: (needs_variable): Fix parentheses at variable name detection. 2009-03-06 19:13:04 +00:00
genrecog.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gensupport.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gensupport.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ggc-common.c
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h re PR c/12245 (Uses lots of memory when compiling large initialized arrays) 2009-02-23 16:46:32 +00:00
gimple-iterator.c
gimple-low.c
gimple-pretty-print.c
gimple.c
gimple.def
gimple.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gimplify.c gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions for which the parameter types are... 2009-03-12 01:02:16 +00:00
glimits.h
graph.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
graph.h
graphds.c
graphds.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
graphite.c graphite.c (exclude_component_ref): Renamed contains_component_ref_p. 2009-03-18 16:59:55 +00:00
graphite.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gsstruct.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-gnat.c
gthr-gnat.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-lynx.h
gthr-mipssde.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-nks.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-posix95.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-posix.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
gthr-posix.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-rtems.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-single.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-solaris.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-tpf.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-vxworks.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr-win32.h gthr-dce.h: Uglify function parameter and local variable names. 2009-02-16 13:19:34 +01:00
gthr.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
haifa-sched.c
hard-reg-set.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
hooks.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
hooks.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
incpath.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
incpath.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
init-regs.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
input.h
insn-addr.h
insn-notes.def
integrate.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
integrate.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
intl.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
intl.h
ipa-cp.c
ipa-inline.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ipa-prop.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ipa-prop.h
ipa-pure-const.c
ipa-reference.c
ipa-reference.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ipa-struct-reorg.c ipa-struct-reorg.c (create_general_new_stmt): Initialize local variable rhs by NULL_TREE. 2009-03-17 18:14:09 +01:00
ipa-struct-reorg.h
ipa-type-escape.c
ipa-type-escape.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ipa-utils.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ipa-utils.h
ipa.c
ira-build.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ira-color.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ira-conflicts.c re PR debug/39432 (gdb.base/store.exp failures) 2009-03-12 14:39:55 +00:00
ira-costs.c
ira-emit.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ira-int.h dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
ira-lives.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
ira.c dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
ira.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
jump.c re PR rtl-optimization/39241 (ICE in subreg_get_info, at rtlanal.c:3104) 2009-02-25 10:49:28 -08:00
lambda-code.c
lambda-mat.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
lambda-trans.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
lambda.h
langhooks-def.h re PR debug/39267 (gdb testsuite regressions) 2009-02-27 19:49:42 +00:00
langhooks.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
langhooks.h re PR debug/39267 (gdb testsuite regressions) 2009-02-27 19:49:42 +00:00
LANGUAGES
lcm.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
libfuncs.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
libgcc2.c re PR middle-end/37850 (infinite recursive call to __mulsc3 when multiplying not-constant complexs) 2009-03-10 15:42:51 +00:00
libgcc2.h
libgcc-std.ver
libgcov.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
limitx.h
limity.h
lists.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
longlong.h longlong.h (sub_ddmmss): New for ia64. 2009-02-12 08:30:53 -08:00
loop-doloop.c
loop-init.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
loop-invariant.c re PR middle-end/39157 (Code that compiles fine in 1GB of memory with 4.1.2 requires > 20GB in 4.2.* and higher) 2009-02-20 13:56:01 +01:00
loop-iv.c re PR rtl-optimization/39235 (get_simple_loop_desc returns uninitialized memory) 2009-03-04 23:22:22 +00:00
loop-unroll.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
loop-unswitch.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
lower-subreg.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
machmode.def
machmode.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
main.c
Makefile.in re PR middle-end/39443 (Builtin redirection no longer working for memcmp) 2009-03-17 18:46:23 +01:00
matrix-reorg.c dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
mcf.c
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkmap-flat.awk Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
mkmap-symver.awk
mode-classes.def
mode-switching.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
modulo-sched.c
omega.c
omega.h
omp-builtins.def
omp-low.c re PR tree-optimization/39331 (OpenMP and return-slot-optimization generate invalid gimple) 2009-03-01 20:49:14 +00:00
ONEWS
opt-functions.awk Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
opt-gather.awk
optabs.c re PR middle-end/39443 (Builtin redirection no longer working for memcmp) 2009-03-17 18:46:23 +01:00
optabs.h
optc-gen.awk optc-gen.awk: No need to duplicate option flags twice. 2009-03-01 12:20:33 +00:00
opth-gen.awk Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
opts-common.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
opts.c re PR middle-end/37805 (gcc --help=separate) 2009-03-17 21:25:59 +00:00
opts.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
output.h
params.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
params.def re PR middle-end/39157 (Code that compiles fine in 1GB of memory with 4.1.2 requires > 20GB in 4.2.* and higher) 2009-02-20 13:56:01 +01:00
params.h re PR middle-end/39157 (Code that compiles fine in 1GB of memory with 4.1.2 requires > 20GB in 4.2.* and higher) 2009-02-20 13:56:01 +01:00
passes.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
pointer-set.c
pointer-set.h
postreload-gcse.c
postreload.c
predict.c
predict.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
predict.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
prefix.c
prefix.h
pretty-print.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
pretty-print.h
print-rtl.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
print-tree.c
profile.c
profile.h
protoize.c
read-rtl.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
README.Portability
real.c
real.h
recog.c recog.c (verfiy_changes): Disallow renaming of hard regs in inline asms for register asm ("") declarations. 2009-03-09 13:30:19 +00:00
recog.h
reg-notes.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
reg-stack.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
reginfo.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
regmove.c regmove.c (regmove_optimize): Conform to struct rtl_opt_pass execute function prototype. 2009-02-25 18:12:29 +00:00
regrename.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
regs.h
regstat.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
reload1.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
reload.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
reload.h
reorg.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
resource.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
resource.h
rtl-error.c
rtl-factoring.c
rtl.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
rtl.def
rtl.h dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
rtlanal.c re PR bootstrap/39454 (Bootstrap failure on sparcv9-linux with profiledbootstrap) 2009-03-14 09:10:55 +01:00
rtlhooks-def.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
rtlhooks.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
scan.h
sched-deps.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sched-ebb.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sched-int.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sched-rgn.c
sched-vis.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sdbout.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sdbout.h
see.c
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sel-sched.h
simplify-rtx.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sort-protos
sparseset.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
sparseset.h
sreal.c
sreal.h
stab.def
stack-ptr-mod.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
statistics.c
statistics.h
stmt.c re PR debug/39267 (gdb testsuite regressions) 2009-02-27 19:49:42 +00:00
stor-layout.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
stringpool.c
stub-objc.c
sync-builtins.def
sys-protos.h
sys-types.h
system.h
target-def.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
target.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
targhooks.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
targhooks.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
timevar.c
timevar.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
timevar.h
tlink.c
toplev.c
toplev.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tracer.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-affine.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-affine.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-browser.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-browser.def
tree-call-cdce.c
tree-cfg.c re PR debug/39372 (Missing DW_AT_location for constructor static variable) 2009-03-06 23:49:39 +01:00
tree-cfgcleanup.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-chrec.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-chrec.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-complex.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-data-ref.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-data-ref.h dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
tree-dfa.c re PR middle-end/39360 (ICE in referenced_var_lookup, at tree-dfa.c:563) 2009-03-06 23:51:28 +01:00
tree-dump.c
tree-dump.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-eh.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-flow-inline.h
tree-flow.h re PR middle-end/39360 (ICE in referenced_var_lookup, at tree-dfa.c:563) 2009-03-06 23:51:28 +01:00
tree-if-conv.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-inline.c re PR target/39361 (Many new neon test failures) 2009-03-08 22:37:26 +00:00
tree-inline.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-into-ssa.c
tree-iterator.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-iterator.h
tree-loop-distribution.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-loop-linear.c
tree-mudflap.c
tree-mudflap.h
tree-nested.c
tree-nomudflap.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-nrv.c re PR debug/39086 (ICE in decl_ultimate_origin, at dwarf2out.c:5770 when compiling with -fno-tree-sra) 2009-03-11 01:01:30 -04:00
tree-object-size.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-optimize.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-outof-ssa.c
tree-parloops.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-pass.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-phinodes.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-predcom.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-pretty-print.c revert accidental commit 2009-02-18 16:03:05 -05:00
tree-profile.c
tree-scalar-evolution.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-scalar-evolution.h tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-sra.c re PR tree-optimization/39339 (SRA miscompilation of vte) 2009-03-04 09:02:59 +00:00
tree-ssa-address.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-alias.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-ccp.c re PR tree-optimization/39343 (Wrong result for __builtin_object_size (x, 1)) 2009-03-03 12:29:51 +01:00
tree-ssa-coalesce.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-copy.c
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c
tree-ssa-dse.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-forwprop.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-ifcombine.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-live.c re PR debug/39474 (DW_AT_location missing for unused variables even at -O0) 2009-03-17 18:53:01 +01:00
tree-ssa-live.h
tree-ssa-loop-ch.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-loop-im.c
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c dse.c (struct group_info): Reorder fields for 64-bit hosts. 2009-03-18 18:04:26 +01:00
tree-ssa-loop-manip.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-loop-niter.c re PR tree-optimization/39455 (ICE : in compare_values_warnv, at tree-vrp.c:1073) 2009-03-16 17:07:07 +01:00
tree-ssa-loop-prefetch.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-ssa-loop-unswitch.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-loop.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-math-opts.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-operands.c
tree-ssa-operands.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-phiopt.c
tree-ssa-phiprop.c
tree-ssa-pre.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-propagate.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-propagate.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-reassoc.c
tree-ssa-sccvn.c re PR tree-optimization/39362 (ICE failing to coalesce ab SSA names) 2009-03-04 23:00:25 +00:00
tree-ssa-sccvn.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-sink.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-structalias.c re PR tree-optimization/39358 (Wrong aliasing warning with lists) 2009-03-04 12:36:56 +00:00
tree-ssa-structalias.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c
tree-ssa.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-ssanames.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-stdarg.c
tree-stdarg.h
tree-switch-conversion.c
tree-tailcall.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-vect-analyze.c tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments. 2009-03-04 17:50:20 +00:00
tree-vect-generic.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree-vect-patterns.c
tree-vect-transform.c tree-vect-transform.c (vect_loop_versioning): Fold the generated comparisons. 2009-03-18 15:29:28 +00:00
tree-vectorizer.c tree-vect-transform.c (vect_loop_versioning): Fold the generated comparisons. 2009-03-18 15:29:28 +00:00
tree-vectorizer.h
tree-vrp.c graphite.c (exclude_component_ref): Renamed contains_component_ref_p. 2009-03-18 16:59:55 +00:00
tree.c re PR tree-optimization/39272 (-D_FORTIFY_SOURCE=2 no longer warns with new glibc headers) 2009-03-03 13:05:53 +00:00
tree.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
tree.h re PR tree-optimization/39272 (-D_FORTIFY_SOURCE=2 no longer warns with new glibc headers) 2009-03-03 13:05:53 +00:00
treestruct.def Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
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.h
unwind-dw2.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
unwind-dw2.h
unwind-generic.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
unwind-pe.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
unwind-sjlj.c
unwind.inc
value-prof.c
value-prof.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
var-tracking.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
varasm.c re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb) 2009-03-17 20:18:21 +00:00
varpool.c re PR debug/39267 (gdb testsuite regressions) 2009-02-28 21:34:23 +00:00
varray.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
varray.h
vec.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
vec.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
vecprim.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
xcoff.h
xcoffout.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
xcoffout.h Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00

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.