gcc/gcc
GCC Administrator 8eb766fd0a Daily bump.
From-SVN: r141286
2008-10-22 00:17:32 +00:00
..
ada trans.c (gnat_to_gnu): Simplify expansion to use only a single check instead of three... 2008-10-17 21:22:42 +02:00
config re PR target/37633 (wrong register use on sh64) 2008-10-21 23:40:41 +00:00
cp semantics.c (simplify_aggr_init_exprs_r): Remove. 2008-10-21 10:33:15 +00:00
doc re PR target/37880 (Documentation of option -mcmodel=medium is wrong) 2008-10-22 01:07:01 +02:00
fortran re PR fortran/37723 (wrong result for left-right hand side array overlap and (possibly) negative strides) 2008-10-19 12:51:06 +00:00
ginclude float.h (DEC_EVAL_METHOD): Correct the macro name. 2008-09-11 22:50:51 +00:00
java re PR c++/35483 (GCC on AIX doesn't support dollar in symbols name.) 2008-10-16 07:57:26 -04:00
objc c-decl.c (finish_decl): Pass input_location to build_unary_op. 2008-10-06 21:35:02 +00:00
objcp re PR objc/37460 (NeXT runtime ICEs) 2008-09-17 14:39:13 -07:00
po Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
testsuite re PR fortran/36795 (crash with character allocatable array argument) 2008-10-21 20:27:27 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4 configure: Regenerate for new libtool. 2008-09-26 16:26:24 +00:00
addresses.h
alias.c re PR middle-end/37447 (test pr28982b.c fails execution on power4 or later with ira change) 2008-10-12 13:26:24 -07:00
alias.h
alloc-pool.c re PR middle-end/37448 (cannot compile big function) 2008-10-08 02:52:28 +00:00
alloc-pool.h
attribs.c Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop} 2008-08-30 23:50:40 +00:00
auto-inc-dec.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
BASE-VER
basic-block.h re PR middle-end/29609 (Even with -O0 -g gcc optimizes a goto away and I cannot debug) 2008-10-07 20:48:40 +02:00
bb-reorder.c parse.c (parse_interface): Silence uninitialized var warning. 2008-08-30 10:38:55 +00:00
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c configure.ac (MPFR check): Bump minimum version to 2.3.0 and recommended version to 2.3.2. 2008-10-13 08:05:25 +00:00
builtins.def
c-aux-info.c
c-common.c c-decl.c (finish_decl): Pass input_location to build_unary_op. 2008-10-06 21:35:02 +00:00
c-common.def
c-common.h c-decl.c (finish_decl): Pass input_location to build_unary_op. 2008-10-06 21:35:02 +00:00
c-config-lang.in
c-convert.c c-tree.h: Add argument to c_objc_common_truthvalue_conversion, parser_build_binary_op. 2008-09-23 14:55:14 +00:00
c-cppbuiltin.c real.h (struct real_format): New member round_towards_zero. 2008-08-12 13:19:40 +00:00
c-decl.c re PR debug/37020 (FAIL: gcc.dg/debug/dwarf2/dwarf-die3.c scan-assembler-not DW_AT_inline) 2008-10-21 00:59:13 +02:00
c-dump.c
c-errors.c diagnostic.c (pedwarn_at): Rename as pedwarn. 2008-08-21 10:55:13 +00:00
c-format.c Fix PR/25502 2008-10-13 12:32:07 +02:00
c-format.h
c-gimplify.c c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME before ensuring it's already computed. 2008-10-10 07:20:30 +00:00
c-lang.c
c-lex.c diagnostic.c (pedwarn_at): Rename as pedwarn. 2008-08-21 10:55:13 +00:00
c-objc-common.c
c-objc-common.h c-common.c (c_expand_decl): Remove. 2008-09-09 08:56:58 +00:00
c-omp.c c-decl.c (finish_decl): Pass input_location to build_unary_op. 2008-10-06 21:35:02 +00:00
c-opts.c cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
c-parser.c c-parser.c (c_parser_binary_expression): Silence the uninitialized variable warning emitted for binary_loc. 2008-10-17 14:50:07 +00:00
c-pch.c diagnostic.c (inform): Add an explicit location_t parameter. 2008-08-20 13:35:00 +00:00
c-ppoutput.c * c-ppoutput.c (cb_used_define): Do nothing for a builtin node. 2008-09-23 17:47:32 +00:00
c-pragma.c Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop} 2008-08-30 23:50:40 +00:00
c-pragma.h
c-pretty-print.c
c-pretty-print.h
c-semantics.c
c-tree.h c-tree.h: Add argument to c_objc_common_truthvalue_conversion, parser_build_binary_op. 2008-09-23 14:55:14 +00:00
c-typeck.c re PR c/33192 (__imag operator drops side effects in subexpr) 2008-10-16 18:05:57 +01:00
c.opt cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
caller-save.c re PR rtl-optimization/37435 (ICE with volatiles) 2008-09-09 16:58:57 -07:00
calls.c rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND or REG_LABEL_TARGET. 2008-09-04 17:32:38 +00:00
cfg.c
cfganal.c
cfgbuild.c
cfgcleanup.c rtl.h (locator_eq): New decl. 2008-10-09 22:04:10 +02:00
cfgexpand.c cfgexpand.c (expand_gimple_cond): Convert also goto_block and goto_locus of true_edge into RTL locator. 2008-10-08 22:49:23 +02:00
cfghooks.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
cfghooks.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
cfglayout.c invoke.texi (-mgen-cell-microcode): Document. 2008-10-13 12:57:31 -07:00
cfglayout.h
cfgloop.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
cfgloop.h backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
cfgloopanal.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
cfgloopmanip.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
cfgrtl.c rtl.h (locator_eq): New decl. 2008-10-09 22:04:10 +02:00
cgraph.c cgraph.c (free_nodes): New variable. 2008-09-25 11:53:42 +02:00
cgraph.h ipa-prop.h (struct ipa_param_flags): Removed. 2008-09-11 19:03:23 +02:00
cgraphbuild.c
cgraphunit.c re PR middle-end/37293 (r139762 breaks libstdc++ build on darwin) 2008-09-03 11:48:27 -07:00
ChangeLog re PR target/37633 (wrong register use on sh64) 2008-10-21 23:40:41 +00:00
ChangeLog-1997
ChangeLog-1998 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-1999 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2000 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2004 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2005
ChangeLog-2006 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2007 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog.dataflow
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
collect2.c
collect2.h
combine-stack-adj.c
combine.c combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on non-integer modes. 2008-10-13 22:31:47 +01:00
common.opt invoke.texi (-fconserve-stack): Document. 2008-09-14 17:05:39 +00:00
conditions.h
config.build
config.gcc config.gcc (powerpc-*): Make t-ppcgas imply usegas.h. 2008-10-21 12:47:18 -04:00
config.host config.host: Add x-aix to host_xmake_file. 2008-09-14 09:55:29 -04:00
config.in configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check. 2008-09-04 09:43:08 +00:00
configure configure: Regenerate for new libtool. 2008-09-26 16:26:24 +00:00
configure.ac configure.ac: Add HAVE_AS_TLS check for Xtensa. 2008-09-19 00:18:42 +00:00
convert.c
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c re PR c++/35483 (GCC on AIX doesn't support dollar in symbols name.) 2008-10-16 07:57:26 -04:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
cselib.c
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2008-10-22 00:17:32 +00:00
dbgcnt.c
dbgcnt.def sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
dbgcnt.h
dbxout.c * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL. 2008-09-25 11:52:47 +00:00
dbxout.h
dce.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
dce.h
ddg.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
ddg.h
debug.c re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
debug.h re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
defaults.h defaults.h (TARGET_FLOAT_FORMAT): Remove. 2008-08-12 13:27:30 +00:00
DEV-PHASE
df-byte-scan.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
df-core.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
df-problems.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
df-scan.c re PR target/37808 (Revision 141067 breaks Linux/x86) 2008-10-12 21:16:57 +00:00
df.h re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
dfp.c
dfp.h
diagnostic.c diagnostic.c (error_at): New. 2008-09-03 01:00:04 +00:00
diagnostic.def
diagnostic.h
dojump.c dojump.c (do_jump): Move below. 2008-09-11 14:45:05 +00:00
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c re PR target/37382 (ICE in extract_insn: <var_decl 0x7fda26ff4b40 swig_module>) 0)) 2008-09-11 09:33:23 +02:00
dse.h
dummy-checksum.c
dwarf2.h dwarf2.h (DW_OP_GNU_encoded_addr): New. 2008-09-24 15:38:03 -07:00
dwarf2asm.c re PR other/37265 (mt_allocator.cc:646: ICE: in gt_ggc_m_S, at ggc-page.c:1281) 2008-09-09 23:57:41 +00:00
dwarf2asm.h
dwarf2out.c re PR debug/37002 (No debug info on unreferenced parameters after stack alignment) 2008-10-10 16:28:05 -07:00
dwarf2out.h
dwarf.h
ebitmap.c
ebitmap.h
emit-rtl.c re PR middle-end/37815 (ICE in vt_add_function_parameters (bootstrap error)) 2008-10-21 13:48:16 -07:00
emit-rtl.h re PR middle-end/37815 (ICE in vt_add_function_parameters (bootstrap error)) 2008-10-21 13:48:16 -07:00
emutls.c
errors.c
errors.h
et-forest.c
et-forest.h
except.c
except.h
exec-tool.in
explow.c emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment information passed to mark_reg_pointer. 2008-09-12 13:31:51 +00:00
expmed.c re PR middle-end/37731 (long long may not work correctly on 32bit host) 2008-10-07 11:45:56 -07:00
expr.c tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in head comment. 2008-10-11 19:48:47 +00:00
expr.h expr.c (MOVE_BY_PIECES_P, [...]): Pass speed operand. 2008-09-01 09:27:39 +00:00
final.c re PR target/37170 (gcc.dg/weak/weak-1.c) 2008-09-22 01:54:03 +00:00
fix-header.c
fixed-value.c
fixed-value.h
fixproto
flags.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
fold-const.c re PR tree-optimization/37664 (ice in remove_range_assertions, at tree-vrp.c:5116) 2008-10-16 14:32:01 +02:00
fp-test.c
FSFChangeLog Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
FSFChangeLog.10
FSFChangeLog.11
function.c re PR debug/34037 (Bounds for VLAs not emitted into debuginfo) 2008-09-18 17:17:10 +02:00
function.h cgraph.c (cgraph_release_function_body): Plug memory leak on ipa_transforms_to_apply and CFG... 2008-09-11 12:41:36 +00:00
fwprop.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
gbl-ctors.h
gcc.c re PR libgomp/26165 (Cannot find libgomp.spec after 'make install' on x86_64 and ppc64) 2008-08-12 18:19:08 +00:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c gcov.c (create_file_names): Properly handle UNIX and DOS directory separators. 2008-10-03 12:49:38 +00:00
gcse.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
gdbinit.in backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
gen-protos.c
genattr.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
genattrtab.c
genautomata.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
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
gengtype.h
genmddeps.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c ggc-common.c (loc_array): Make static. 2008-09-11 12:48:53 +00:00
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h
gimple-iterator.c
gimple-low.c tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block as used. 2008-10-09 10:14:45 +02:00
gimple-pretty-print.c
gimple.c cgraph.c (cgraph_free_edge): Use sizeof(*e). 2008-09-23 15:08:15 +02:00
gimple.def
gimple.h gimplify.c (gimplify_function_tree): For -finstrument-functions use gimple_bind_{,set_}block instead of... 2008-10-03 21:28:09 +02:00
gimplify.c gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs. 2008-10-21 00:57:27 +02:00
glimits.h
global.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
graph.c
graph.h
graphds.c
graphds.h
graphite.c [multiple changes] 2008-10-15 16:24:15 +00:00
graphite.h [multiple changes] 2008-10-15 16:24:15 +00:00
gsstruct.def
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 gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix rule that a symbolic constant... 2008-08-28 22:00:46 +00:00
gthr-posix.h gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix rule that a symbolic constant... 2008-08-28 22:00:46 +00:00
gthr-rtems.h
gthr-single.h
gthr-solaris.h
gthr-tpf.h
gthr-vxworks.h
gthr-win32.h gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined. 2008-09-03 06:07:34 +00:00
gthr.h gthr-posix.h (__gthread_create, [...]): New functions. 2008-08-28 09:20:57 +00:00
haifa-sched.c target.h (struct gcc_target): Update prototypes of needs_block_p and gen_spec_check. 2008-10-14 16:52:19 +04:00
hard-reg-set.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
hooks.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
hooks.h fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
incpath.c
incpath.h
init-regs.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
input.h
insn-addr.h
insn-notes.def
integrate.c
integrate.h
intl.c
intl.h
ipa-cp.c cgraph.c (cgraph_free_edge): Use sizeof(*e). 2008-09-23 15:08:15 +02:00
ipa-inline.c ipa-prop.h (struct ipa_param_flags): Removed. 2008-09-11 19:03:23 +02:00
ipa-prop.c cgraph.c (cgraph_free_edge): Use sizeof(*e). 2008-09-23 15:08:15 +02:00
ipa-prop.h ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false. 2008-09-18 19:57:05 +02:00
ipa-pure-const.c re PR middle-end/37448 (cannot compile big function) 2008-09-18 17:28:40 +00:00
ipa-reference.c re PR middle-end/37448 (cannot compile big function) 2008-09-18 17:28:40 +00:00
ipa-reference.h re PR middle-end/37448 (cannot compile big function) 2008-09-18 17:28:40 +00:00
ipa-struct-reorg.c
ipa-struct-reorg.h
ipa-type-escape.c
ipa-type-escape.h
ipa-utils.c re PR middle-end/37448 (cannot compile big function) 2008-09-18 17:28:40 +00:00
ipa-utils.h
ipa.c
ira-build.c re PR middle-end/37674 (Bootstrap failure due to miscompilation of genattrtab) 2008-10-16 00:22:13 +00:00
ira-color.c re PR middle-end/37448 (cannot compile big function) 2008-09-26 00:14:30 +00:00
ira-conflicts.c ira-conflicts.c (process_regs_for_copy): Check that the hard regno is in the right range. 2008-09-09 16:52:55 +00:00
ira-costs.c re PR target/37633 (wrong register use on sh64) 2008-10-16 00:52:59 +00:00
ira-emit.c ira-emit.c (change_regs): Return false when replacing reg by itself. 2008-10-15 18:29:14 -07:00
ira-int.h re PR middle-end/37448 (cannot compile big function) 2008-09-26 00:14:30 +00:00
ira-lives.c re PR middle-end/37535 (gcc/libgcc2.c:404: internal compiler error: Floating point exception) 2008-10-16 00:51:34 +00:00
ira.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
ira.h re PR rtl-optimization/37296 (Bootstrap failure compiling libgcc) 2008-09-03 19:49:30 +00:00
jump.c rtlanal.c: Fix uses of "it's" with "its" where appropriate. 2008-08-26 23:27:31 +10:00
lambda-code.c re PR tree-optimization/37686 (Building of CPU2000's bzip2 with peak flags with -mcpu=power4 fails with an ICE.) 2008-10-15 16:13:33 +00:00
lambda-mat.c
lambda-trans.c
lambda.h backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
langhooks-def.h re PR objc/37460 (NeXT runtime ICEs) 2008-09-17 14:39:13 -07:00
langhooks.c c-common.c (c_expand_decl): Remove. 2008-09-09 08:56:58 +00:00
langhooks.h re PR objc/37460 (NeXT runtime ICEs) 2008-09-17 14:39:13 -07:00
LANGUAGES
lcm.c
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-std.ver
libgcov.c
limitx.h
limity.h
lists.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
local-alloc.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
longlong.h
loop-doloop.c re PR rtl-optimization/37451 (Extra addition for doloop in some cases) 2008-09-18 12:28:48 -07:00
loop-init.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
loop-invariant.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
loop-iv.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
loop-unroll.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
loop-unswitch.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
lower-subreg.c
machmode.def
machmode.h real.h (struct real_format): New member has_sign_dependent_rounding. 2008-08-12 13:25:22 +00:00
main.c
Makefile.in re PR c++/35483 (GCC on AIX doesn't support dollar in symbols name.) 2008-10-16 07:57:26 -04:00
matrix-reorg.c matrix-reorg.c (transform_allocation_sites): Initializers added to avoid the warning. 2008-09-25 11:21:43 +00:00
mcf.c mcf.c: Really add it. 2008-08-18 12:16:30 -07:00
mips-tdump.c Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c warnings. 2008-09-09 16:36:14 +00:00
mips-tfile.c Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c warnings. 2008-09-09 16:36:14 +00:00
mkconfig.sh
mkmap-flat.awk configure.ac (RPATH_ENVVAR): Use PATH on Windows. 2008-08-31 12:14:25 -06:00
mkmap-symver.awk
mode-classes.def
mode-switching.c
modulo-sched.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
omega.c
omega.h
omp-builtins.def
omp-low.c rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND or REG_LABEL_TARGET. 2008-09-04 17:32:38 +00:00
ONEWS
opt-functions.awk Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop} 2008-08-30 23:50:40 +00:00
opt-gather.awk
optabs.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
optabs.h
optc-gen.awk
opth-gen.awk
opts-common.c
opts.c re PR middle-end/37805 (gcc --help=separate) 2008-10-14 14:00:19 +02:00
opts.h re PR middle-end/37576 (-v --help ICEs) 2008-10-07 23:02:21 +02:00
output.h fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
params.c
params.def sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
params.h [multiple changes] 2008-08-26 12:39:58 +00:00
passes.c re PR tree-optimization/14703 (Inadequate optimization of inline templated functions, infinite loop in ipa-reference and memory hog) 2008-09-06 17:10:00 +00:00
pointer-set.c
pointer-set.h
postreload-gcse.c postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p. 2008-08-31 12:52:07 +00:00
postreload.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
predict.c re PR middle-end/37414 (ICE with -ffast-math) 2008-09-08 23:30:23 +02:00
predict.def cold-attribute-1.c: New testcase. 2008-08-31 11:40:11 +00:00
predict.h
prefix.c
prefix.h
pretty-print.c re PR debug/37156 (Hang with -g -O2 (or higher) (discovered with malloc.c in sqlite3)) 2008-08-19 13:44:42 +02:00
pretty-print.h
print-rtl.c
print-tree.c re PR debug/37410 (DW_TAG_imported_module is not in its DW_TAG_lexical_block) 2008-10-05 23:29:32 +02:00
profile.c re PR middle-end/29609 (Even with -O0 -g gcc optimizes a goto away and I cannot debug) 2008-10-07 20:48:40 +02:00
profile.h profile.h: Really add it. 2008-08-18 12:22:36 -07:00
protoize.c
ra-conflict.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
ra.h
read-rtl.c
README.Portability
real.c re PR testsuite/36332 (FAIL: gcc.dg/torture/type-generic-1.c execution test on powerpc-*) 2008-09-02 20:46:29 +02:00
real.h real.h (dconst_e, [...]): Declare. 2008-08-18 16:17:16 +00:00
recog.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
recog.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
reg-notes.def
reg-stack.c
regclass.c [multiple changes] 2008-08-26 12:39:58 +00:00
regmove.c [multiple changes] 2008-08-26 12:39:58 +00:00
regrename.c * regrename.c (do_replace): Copy REG_POINTER value to new reg. 2008-09-23 20:44:18 +00:00
regs.h [multiple changes] 2008-08-26 12:39:58 +00:00
regstat.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
reload1.c re PR middle-end/37447 (test pr28982b.c fails execution on power4 or later with ira change) 2008-10-12 13:26:24 -07:00
reload.c rtl.h (simplify_subreg_regno): Declare. 2008-08-28 20:02:54 +00:00
reload.h [multiple changes] 2008-08-26 12:39:58 +00:00
reorg.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
resource.c
resource.h
rtl-error.c
rtl-factoring.c
rtl.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
rtl.def
rtl.h invoke.texi (-mgen-cell-microcode): Document. 2008-10-13 12:57:31 -07:00
rtlanal.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
rtlhooks-def.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
rtlhooks.c
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c rtl.texi (const_double): Remove the "addr" operand. 2008-10-15 18:33:23 +00:00
sched-ebb.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
sched-int.h re PR middle-end/37499 (Scheduling pass 2 time increases by order of magnitude) 2008-09-18 12:29:48 +04:00
sched-rgn.c re PR middle-end/37499 (Scheduling pass 2 time increases by order of magnitude) 2008-09-18 12:29:48 +04:00
sched-vis.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
sdbout.c sdbout.c (sdbout_one_type): Treat the value type CONST_DECL for enumerals. 2008-10-08 09:56:00 +02:00
sdbout.h
see.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
sel-sched-dump.c sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING. 2008-09-01 16:38:44 +04:00
sel-sched-dump.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
sel-sched-ir.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
sel-sched-ir.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
sel-sched.c target.h (struct gcc_target): Update prototypes of needs_block_p and gen_spec_check. 2008-10-14 16:52:19 +04:00
sel-sched.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
simplify-rtx.c simplify-rtx.c (simplify_binary_operation_1): Check for CONST... 2008-09-02 18:39:32 +00:00
sort-protos
sparseset.c
sparseset.h
sreal.c
sreal.h
stab.def
stack-ptr-mod.c re PR testsuite/35843 (-fdump-rtl-expand does not exist anymore) 2008-04-25 23:14:40 +00:00
statistics.c
statistics.h
stmt.c cgraph.c (cgraph_release_function_body): Plug memory leak on ipa_transforms_to_apply and CFG... 2008-09-11 12:41:36 +00:00
stor-layout.c
stringpool.c * stringpool.c (ggc_alloc_string): Terminate string. 2008-10-03 20:36:17 +00:00
stub-objc.c
sync-builtins.def
sys-protos.h
sys-types.h
system.h
target-def.h tm.texi (TARGET_IRA_COVER_CLASSES): Define. 2008-09-20 09:15:43 +00:00
target.h target.h (struct gcc_target): Update prototypes of needs_block_p and gen_spec_check. 2008-10-14 16:52:19 +04:00
targhooks.c tm.texi (TARGET_IRA_COVER_CLASSES): Define. 2008-09-20 09:15:43 +00:00
targhooks.h tm.texi (TARGET_IRA_COVER_CLASSES): Define. 2008-09-20 09:15:43 +00:00
timevar.c
timevar.def backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
timevar.h
tlink.c
toplev.c toplev.c (dump_memory_report): Call dump_vec_loc_statistics. 2008-09-11 12:17:22 +00:00
toplev.h diagnostic.c (error_at): New. 2008-09-03 01:00:04 +00:00
tracer.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c * tree-call-cdce.c (check_target_format): Accept Motorola formats. 2008-09-14 17:58:14 +00:00
tree-cfg.c tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block as used. 2008-10-09 10:14:45 +02:00
tree-cfgcleanup.c
tree-chrec.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-chrec.h backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-complex.c re PR tree-optimization/35737 (ICE with __builtin_setjmp and complex variable) 2008-10-01 07:28:04 -07:00
tree-data-ref.c [multiple changes] 2008-10-15 16:24:15 +00:00
tree-data-ref.h re PR tree-optimization/37686 (Building of CPU2000's bzip2 with peak flags with -mcpu=power4 fails with an ICE.) 2008-10-15 16:13:33 +00:00
tree-dfa.c
tree-dump.c
tree-dump.h
tree-eh.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-flow-inline.h
tree-flow.h re PR middle-end/37448 (cannot compile big function) 2008-09-18 18:16:45 +00:00
tree-if-conv.c
tree-inline.c tree-inline.c (tree_inlinable_function_p): Remove tuples debugging hack. 2008-10-21 00:58:10 +02:00
tree-inline.h tree.c (build_function_type_skip_args, [...]): New functions. 2008-08-29 11:31:40 +00:00
tree-into-ssa.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-loop-linear.c re PR tree-optimization/37686 (Building of CPU2000's bzip2 with peak flags with -mcpu=power4 fails with an ICE.) 2008-10-15 16:13:33 +00:00
tree-mudflap.c re PR libmudflap/36397 (ICE with pointer cast and -fmudflap) 2008-09-15 23:52:53 +02:00
tree-mudflap.h
tree-nested.c re PR middle-end/30141 (nested function can produce invalid gimple) 2008-09-13 16:29:22 +00:00
tree-nomudflap.c
tree-nrv.c
tree-object-size.c
tree-optimize.c
tree-outof-ssa.c Fix comments and formatrting 2008-09-18 14:13:54 +00:00
tree-parloops.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-pass.h backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-phinodes.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-predcom.c tree-predcom.c (filter_suitable_components): Free all refs in act->refs vector before calling release_component. 2008-09-15 23:55:05 +02:00
tree-pretty-print.c
tree-profile.c re PR middle-end/32581 (make profiledbootstrap - stageprofile - gcc/ada/a-except.adb:1301: error: control flow in the middle of basic block 20) 2008-09-13 21:39:44 +00:00
tree-scalar-evolution.c tree-scalar-evolution.c (set_instantiated_value): Set instantiated_below. 2008-09-12 23:02:24 +00:00
tree-scalar-evolution.h re PR middle-end/37375 ([graphite] Parameter detection and scev only take a surrounding loop as border) 2008-09-09 18:39:45 +00:00
tree-sra.c re PR middle-end/37380 (../../gcc/libcpp/charset.c:1103: error: 'cvt.77.width' is used uninitialized in this function) 2008-09-16 12:34:01 +00:00
tree-ssa-address.c fwprop.c (should_replace_address): Add speed attribute. 2008-08-31 09:44:25 +00:00
tree-ssa-alias-warnings.c
tree-ssa-alias.c tree-ssa-alias.c (may_alias_p): Remove bogus shortcut. 2008-10-19 17:05:53 +00:00
tree-ssa-ccp.c re PR middle-end/37669 (ice for legal code with -O2) 2008-10-21 17:46:53 +00:00
tree-ssa-coalesce.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-ssa-copy.c common.opt (ftree-store-ccp): Mark as preserved for backward compatibility. 2008-08-29 11:43:22 +00:00
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c re PR middle-end/37337 (ICE: verify_flow_info failed) 2008-09-08 21:31:18 +02:00
tree-ssa-dse.c
tree-ssa-forwprop.c tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard VIEW_CONVERT_EXPR case against invalid gimple. 2008-10-18 18:06:41 +00:00
tree-ssa-ifcombine.c re PR tree-optimization/37387 (ICE in extract_range_from_binary_expr, at tree-vrp.c:2145) 2008-09-09 10:05:49 +00:00
tree-ssa-live.c tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block as used. 2008-10-09 10:14:45 +02:00
tree-ssa-live.h
tree-ssa-loop-ch.c tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop is not cold. 2008-08-29 08:58:52 +00:00
tree-ssa-loop-im.c re PR tree-optimization/36891 (ICE with vector division and -ffast-math and LIM) 2008-09-28 15:48:48 -07:00
tree-ssa-loop-ivcanon.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-ssa-loop-ivopts.c tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in head comment. 2008-10-11 19:48:47 +00:00
tree-ssa-loop-manip.c
tree-ssa-loop-niter.c tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to 2008-08-18 18:23:47 +02:00
tree-ssa-loop-prefetch.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-ssa-loop-unswitch.c tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that loop is optimized for speed. 2008-08-31 15:54:54 +00:00
tree-ssa-loop.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
tree-ssa-math-opts.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-ssa-operands.c re PR middle-end/37448 (cannot compile big function) 2008-09-18 17:28:40 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c
tree-ssa-phiprop.c tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid entering the weaker equivalence recording. 2008-09-11 21:48:11 +00:00
tree-ssa-pre.c tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant part of expression. 2008-10-20 21:23:22 +00:00
tree-ssa-propagate.c dojump.c (do_jump): Move below. 2008-09-11 14:45:05 +00:00
tree-ssa-propagate.h common.opt (ftree-store-ccp): Mark as preserved for backward compatibility. 2008-08-29 11:43:22 +00:00
tree-ssa-reassoc.c gimple.texi: Fix some typos, wrap some long lines, fix some broken wraps with continuations. 2008-10-05 17:13:10 +00:00
tree-ssa-sccvn.c tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p instead of pointer equality. 2008-10-04 14:19:48 +00:00
tree-ssa-sccvn.h tree-ssa-pre.c (insert_into_preds_of_block): Before inserting a PHI ask VN if it is already available. 2008-08-21 15:18:58 +00:00
tree-ssa-sink.c
tree-ssa-structalias.c tree-ssa-structalias.c (create_variable_info_for): Do not create fields for heap vars or vars with a noalias state. 2008-08-29 11:47:01 +00:00
tree-ssa-structalias.h
tree-ssa-ter.c re PR middle-end/37567 (tree SSA to normal checking takes abnormally long time) 2008-09-19 17:37:13 +00:00
tree-ssa-threadedge.c tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to 2008-08-18 18:23:47 +02:00
tree-ssa-threadupdate.c loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p. 2008-08-29 10:35:57 +00:00
tree-ssa-uncprop.c tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid entering the weaker equivalence recording. 2008-09-11 21:48:11 +00:00
tree-ssa.c re PR middle-end/37418 (error: type mismatch in address expression, verify_gimple failed) 2008-10-16 08:19:49 +00:00
tree-ssanames.c
tree-stdarg.c tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to 2008-08-18 18:23:47 +02:00
tree-stdarg.h
tree-switch-conversion.c re PR tree-optimization/36881 (Creating runtime relocations for code which does not need it) 2008-10-15 08:43:19 +02:00
tree-tailcall.c
tree-vect-analyze.c re PR tree-optimization/37482 (definition in block 51 follows the use for SSA_NAME with -maltivec) 2008-09-22 07:55:39 +00:00
tree-vect-generic.c
tree-vect-patterns.c tree-vectorizer.c (supportable_widening_operation): Support multi-step conversion... 2008-08-19 08:31:41 +00:00
tree-vect-transform.c re PR middle-end/37491 (Revision 140257 causes vectorizer tests failures) 2008-09-30 10:36:22 +00:00
tree-vectorizer.c re PR tree-optimization/37574 (ICE with the vectorizer and GC) 2008-09-26 06:28:01 +00:00
tree-vectorizer.h re PR tree-optimization/37482 (definition in block 51 follows the use for SSA_NAME with -maltivec) 2008-09-22 07:55:39 +00:00
tree-vrp.c re PR middle-end/37285 (ICE while building binutils on ppc) 2008-10-01 15:09:26 +00:00
tree.c re PR java/35485 (libjava is disabled by default) 2008-10-21 13:33:53 -04:00
tree.def re PR debug/37410 (DW_TAG_imported_module is not in its DW_TAG_lexical_block) 2008-10-05 23:29:32 +02:00
tree.h tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in head comment. 2008-10-11 19:48:47 +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.h
unwind-dw2.c dwarf2.h (DW_OP_GNU_encoded_addr): New. 2008-09-24 15:38:03 -07:00
unwind-dw2.h
unwind-generic.h
unwind-pe.h
unwind-sjlj.c
unwind.inc
value-prof.c value-prof.c (gimple_ic): Fix tuplification bug. 2008-09-10 11:37:18 +00:00
value-prof.h
var-tracking.c re PR middle-end/37815 (ICE in vt_add_function_parameters (bootstrap error)) 2008-10-21 13:48:16 -07:00
varasm.c re PR target/37170 (gcc.dg/weak/weak-1.c) 2008-09-22 01:54:03 +00:00
varpool.c
varray.c
varray.h
vec.c toplev.c (dump_memory_report): Call dump_vec_loc_statistics. 2008-09-11 12:17:22 +00:00
vec.h toplev.c (dump_memory_report): Call dump_vec_loc_statistics. 2008-09-11 12:17:22 +00:00
vecprim.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
version.c
version.h
vmsdbg.h
vmsdbgout.c re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
web.c re PR middle-end/37448 (cannot compile big function) 2008-10-11 23:39:21 +00:00
xcoff.h
xcoffout.c
xcoffout.h re PR c++/35483 (GCC on AIX doesn't support dollar in symbols name.) 2008-10-15 08:23:55 -04: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.