gcc/gcc
GCC Administrator 2a70b05d1b Daily bump.
From-SVN: r144011
2009-02-08 00:16:54 +00:00
..
ada Makefile.in: Fix mipsel linux handling. 2009-02-01 14:18:20 +00:00
config avr.c (avr_mcu_t): Add ata6289 device. 2009-02-07 21:55:25 +03:00
cp re PR c++/35147 (ICE trying to expand an argument pack with zero arguments) 2009-02-07 02:05:04 +00:00
doc tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and TARGET_NARROW_VOLATILE_BITFIELD macro names. 2009-02-02 20:57:08 +11:00
fortran gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
ginclude re PR c/34252 (DEC32_MIN_EXP, DEC32_MAX_EXP don't match TR 24732) 2009-01-06 19:02:41 +00:00
java gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
objc Fix dates. 2008-12-05 11:46:36 +00:00
objcp Fix dates. 2008-12-05 11:46:36 +00:00
po * fi.po: Update. 2009-02-03 20:36:12 +00:00
testsuite re PR c++/35147 (ICE trying to expand an argument pack with zero arguments) 2009-02-07 02:05:04 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4 re PR target/27880 (undefined reference to `_Unwind_GetIPInfo') 2008-11-12 21:37:34 +00:00
addresses.h
alias.c re PR rtl-optimization/38879 (scheduler does not look for conflicting alias sets) 2009-01-21 19:47:19 +01:00
alias.h check alias sets in add_inter_loop_mem_dep 2009-01-21 11:39:19 +00:00
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/35854 (life passes dump option still documented) 2009-01-29 14:34:55 +00:00
BASE-VER
basic-block.h df-scan.c (persistent_obstack, [...]): Remove. 2008-12-18 13:52:45 +00:00
bb-reorder.c parse.c (parse_interface): Silence uninitialized var warning. 2008-08-30 10:38:55 +00:00
bitmap.c bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about implicit conversion from void * to... 2009-01-18 19:51:56 +11:00
bitmap.h bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from void *' warning from -Wc++-compat. 2009-01-24 09:48:23 +11:00
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c re PR c++/38705 (ICE: canonical types differ for identical types const int and const AlpsNodeIndex_t) 2009-01-03 01:54:40 +01:00
builtins.def
c-aux-info.c
c-common.c re PR c/35434 (ICE with attribute alias) 2009-02-07 00:32:37 +00:00
c-common.def
c-common.h re PR middle-end/11492 (Bogus warning with -Wsign-compare) 2008-10-29 17:16:46 +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 re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT) 2009-01-18 08:26:26 -08:00
c-decl.c re PR c/36432 (“incompatible pointer type” with pointer to array as a struct member) 2009-02-06 20:12:10 +00:00
c-dump.c
c-errors.c
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
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 re PR c++/38348 (ICE from c_finish_omp_for) 2008-12-01 16:10:25 +01:00
c-opts.c c.opt (Wpacked-bitfield-compat): Change init value to -1. 2009-01-28 02:55:20 +00:00
c-parser.c re PR c/29129 ([DR#341] unnamed parameters using [*]) 2009-02-04 00:59:21 +00:00
c-pch.c
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 re PR c/35742 (Broken diagnostic: 'goto_expr' not supported by pp_c_expression) 2009-01-09 17:46:47 +01:00
c-pretty-print.h
c-semantics.c
c-tree.h re PR c/36489 (Warning "initialized field overwritten" wrongly triggers with multidimensional arrays) 2009-01-01 20:40:03 +01:00
c-typeck.c re PR c/35433 (ICE with typeof and ternary operator) 2009-02-03 20:38:12 +00:00
c.opt c.opt (Wpacked-bitfield-compat): Change init value to -1. 2009-01-28 02:55:20 +00:00
caller-save.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
calls.c re PR tree-optimization/38977 (bash no longer builds with profile-feedback) 2009-02-04 20:50:58 +01: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 re PR middle-end/38503 (warnings from -isystem headers strikes back.) 2009-01-27 10:42:59 +00:00
cfghooks.c cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and EDGE_IRREDUCIBLE_LOOP. 2008-11-03 16:17:33 +00: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 tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
cfgloopmanip.c backport: configure: Regenerate. 2008-09-02 16:31:04 +00:00
cfgrtl.c revert: cfgrtl.c (rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN on a BARRIER insn. 2008-12-12 21:16:09 +00:00
cgraph.c cgraph.c (cgraph_function_body_availability): Fix test of externally visible. 2008-11-16 22:31:58 +00:00
cgraph.h re PR debug/27574 (MIssing debug info at -O0 for a local variable in a C++ constructor) 2008-11-12 22:57:44 +01:00
cgraphbuild.c re PR middle-end/38074 (missed inlining on Core2 Duo due to apparent wrong branch prediction/profile) 2008-12-06 08:34:20 +00:00
cgraphunit.c re PR c++/39106 (aliased to undefined symbol error with thunks) 2009-02-05 22:54:06 +01:00
ChangeLog avr.c (avr_mcu_t): Add ata6289 device. 2009-02-07 21:55:25 +03: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 Fix non-UTF-8 sequence in ChangeLog-2006 and left-over 2009-01-14 19:57:55 +01:00
ChangeLog-2007 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2008 Fix spacing around names. 2009-01-30 10:28:41 +01: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 re PR rtl-optimization/38774 (ice in df_refs_verify, at df-scan.c:4307) 2009-01-13 23:36:06 +01:00
common.opt common.opt (flag_conserve_stack): Initialised to zero. 2009-01-30 09:50:30 +00:00
conditions.h
config.build
config.gcc re PR target/38904 (Shared libgcc DLL violates Cygwin platform conventions.) 2009-01-31 18:52:00 +00:00
config.host re PR bootstrap/37739 (bootstrap broken with core gcc > gcc-4.2.x) 2008-12-19 15:55:42 +01:00
config.in re PR target/27880 (undefined reference to `_Unwind_GetIPInfo') 2008-11-12 21:37:34 +00:00
configure Index... 2008-12-21 14:27:18 -08:00
configure.ac re PR target/37610 (FAIL: g++.dg/eh/pr29166.C execution test) 2008-12-20 22:32:30 +00:00
convert.c re PR c++/36607 (Incorrect type diagnostic on substracting casted char pointers) 2009-02-03 14:38:16 -08:00
convert.h
COPYING
COPYING.LIB
COPYING3
COPYING3.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 cse.c (lookup_as_function): Delete mode frobbing code. 2008-12-04 21:47:13 +00:00
cselib.c re PR middle-end/31150 (Not promoting an whole array to be static const) 2008-12-23 00:41:17 +01:00
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2009-02-08 00:16:54 +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 dce.c (delete_unmarked_insns): Reversed the order that insns are examined before deleting them. 2009-01-16 13:41:11 +00:00
dce.h
ddg.c check alias sets in add_inter_loop_mem_dep 2009-01-21 11:39:19 +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 re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT) 2009-01-18 08:26:26 -08: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 rtl-optimization/36365 (Hang in df_analyze) 2008-12-06 22:52:43 +00:00
df-problems.c re PR tree-optimization/35805 ([ira] error in start_allocno_priorities, at ira-color.c:1806) 2009-01-03 00:31:39 +00:00
df-scan.c * df-scan.c ( df_hard_reg_init): Move declaration of i. 2008-12-19 16:34:26 +00:00
df.h df-scan.c (persistent_obstack, [...]): Remove. 2008-12-18 13:52:45 +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 re PR middle-end/38347 (gfortran.dg/alloc_comp_constructor_1.f90 ICE with -O2 -fdefault-integer-8) 2009-01-09 14:43:14 +01:00
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c re PR middle-end/38652 (dse.c: In function get_call_args: dse.c:2309: error: target undeclared) 2008-12-29 13:36:24 +01:00
dse.h
dummy-checksum.c
dwarf.h
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 target/37033 (Revision 138733 breaks -g vs -g0 for PCH) 2008-12-10 17:31:07 +00:00
dwarf2out.h
ebitmap.c
ebitmap.h ebitmap.h (ebitmap_iter_init): Initialize all fields. 2009-01-16 20:44:25 +00:00
emit-rtl.c re PR target/38868 (r143152 breaks output routines in xplor-nih) 2009-01-20 13:24:25 +00: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 re PR testsuite/35677 (Intermitent failure "FAIL: libgomp.fortran/crayptr2.f90") 2008-12-11 18:33:48 +00:00
errors.c
errors.h
et-forest.c
et-forest.h
except.c re PR middle-end/35854 (life passes dump option still documented) 2009-01-29 14:34:55 +00:00
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 target/38554 (ICE when compiling pamfunc.c in netpbm with -O1 enabled) 2009-01-16 18:56:47 +00:00
expr.c re PR middle-end/31150 (Not promoting an whole array to be static const) 2008-12-23 00:41:17 +01:00
expr.h Makefile.in (GTFILES): Add $(srcdir)/expr.h. 2008-12-24 17:00:52 +00:00
final.c re PR target/37170 (gcc.dg/weak/weak-1.c) 2008-12-10 08:46:40 +00:00
fix-header.c
fixed-value.c builtins.c, [...]: Fix comments. 2008-12-19 17:53:51 +00:00
fixed-value.h
fixproto
flags.h tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2008-12-09 21:25:11 +00:00
fold-const.c re PR middle-end/38932 (ICE in set_value_range, at tree-vrp.c:398) 2009-01-23 15:57:19 +00: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 target/35318 (ICE with inline asm in reload) 2009-02-03 18:27:45 +01:00
function.h function.h (rtl_data): Add a dbr_scheduled_p field. 2009-01-06 22:00:18 +00:00
fwprop.c fwprop.c (fwprop_done): Call df_remove_problem. 2008-11-07 13:16:54 -08:00
gbl-ctors.h
gcc.c gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
gcc.h Add -dumpbase to the switches that take arguments 2008-10-30 22:45:32 +00:00
gccbug.in
gccspec.c
gcov-dump.c gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
gcov-io.c
gcov-io.h libgcov.c (__gcov_execl, [...]): Remove const qualifier from arg parameter. 2009-01-20 20:49:58 +11:00
gcov-iov.c
gcov.c gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01: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-lex.l (YY_NO_INPUT): Define. 2009-01-06 09:34:29 +11:00
gengtype-parse.c
gengtype.c
gengtype.h
genmddeps.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2008-12-09 21:25:11 +00:00
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 re PR c++/36631 (attribute always_inline -> sorry, unimplemented: recursive inlining) 2008-11-20 02:47:10 +01:00
gimple-pretty-print.c re PR middle-end/38690 (Missing parentheses for (a-1)/2 in final_cleanup) 2009-01-02 15:38:05 +01:00
gimple.c * gimple.c (recalculate_side_effects) <tcc_constant>: New case. 2008-12-07 23:27:14 +00:00
gimple.def
gimple.h gimple.h (struct gimple_statement_base): Document the restrictions on its use. 2009-01-09 16:11:25 -05:00
gimplify.c re PR middle-end/38615 (invalid promotion to static from auto) 2009-01-22 17:02:21 +00:00
glimits.h
graph.c
graph.h
graphds.c
graphds.h
graphite.c graphite.c (bb_in_sese_p, [...]): Moved. 2009-02-05 00:29:48 +00:00
graphite.h graphite.c (bb_in_sese_p, [...]): Moved. 2009-02-05 00:29:48 +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-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-posix95.h
gthr-rtems.h
gthr-single.h gthr-single.h (__gthread_once): Adjust prototype to match all other gthreads models. 2008-12-07 00:32:29 +11:00
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 tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00: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 rtl-optimization/37922 (code generation error) 2008-12-18 13:38:39 +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 re PR tree-optimization/38844 (deadlock with __attribute__((always_inline)) at -O1 and above) 2009-02-06 16:47:39 +00: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 ebitmap.h (ebitmap_iter_init): Initialize all fields. 2009-01-16 20:44:25 +00:00
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 rtl-optimization/38583 (huge test case makes register allocator run out of memory while constructing the conflict graph) 2009-01-06 03:50:07 +00:00
ira-color.c ira-color.c (allocno_reload_assign): Update comments. 2009-01-29 13:56:17 -08:00
ira-conflicts.c ira-conflicts.c: Include addresses.h for the definition of base_reg_class. 2009-01-14 11:28:01 +00:00
ira-costs.c ira-cost.c (copy_cost): Lazilly initialize move_cost if needed. 2008-12-18 13:49:47 +00:00
ira-emit.c re PR rtl-optimization/38495 (ACATS tests cxa4004 cxa4005 cxa4026 fail) 2009-01-09 17:52:03 +00:00
ira-int.h re PR bootstrap/38742 (Gcc failed to boostrap with --enable-checking=assert) 2009-01-06 06:44:02 -08:00
ira-lives.c re PR target/38811 (internal compiler error: in compensate_edge, at reg-stack.c:2754) 2009-01-14 03:35:35 +00:00
ira.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
ira.h re PR rtl-optimization/38583 (huge test case makes register allocator run out of memory while constructing the conflict graph) 2009-01-06 03:50:07 +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/37031 (ICE for h264ref in gather_interchange_stats with -ftree-loop-linear) 2009-01-08 17:01:42 +01:00
lambda-mat.c
lambda-trans.c
lambda.h re PR tree-optimization/37031 (ICE for h264ref in gather_interchange_stats with -ftree-loop-linear) 2009-01-08 17:01:42 +01: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
libgcc-std.ver
libgcc2.c
libgcc2.h
libgcov.c libgcov.c (__gcov_execl, [...]): Remove const qualifier from arg parameter. 2009-01-20 20:49:58 +11:00
limitx.h
limity.h
lists.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
longlong.h re PR other/38758 (gcc ships with GPL-only library parts (longlong.h)) 2009-01-20 21:58:30 +00:00
loop-doloop.c re PR rtl-optimization/37782 (Stage2 ada compiler miscompiled) 2008-11-03 12:01:11 -08:00
loop-init.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
loop-invariant.c re PR rtl-optimization/37889 (SEGV, conditional execution proactively executed the false arm.) 2009-02-04 20:54:36 +00:00
loop-iv.c re PR rtl-optimization/32283 (Missed induction variable optimization) 2008-11-20 08:05:12 +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 re PR middle-end/35854 (life passes dump option still documented) 2009-01-29 14:34:55 +00:00
machmode.def
machmode.h
main.c
Makefile.in tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00: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 re PR bootstrap/38088 (gcc fails to compile with undefined symbol: __LONG_LONG_MAX__ error) 2008-11-13 11:26:51 +01:00
mips-tdump.c gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
mips-tfile.c gcc.c (process_command): Update copyright notice dates. 2009-02-03 21:48:23 +01:00
mkconfig.sh
mkmap-flat.awk re PR target/38904 (Shared libgcc DLL violates Cygwin platform conventions.) 2009-01-31 18:52:00 +00:00
mkmap-symver.awk
mode-classes.def
mode-switching.c re PR middle-end/35854 (life passes dump option still documented) 2009-01-29 14:34:55 +00:00
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 re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct) 2008-12-08 11:36:01 +01: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 re PR middle-end/37908 (atomic NAND op generate wrong code; __sync_nand_and_fetch, __sync_fetch_and_nand) 2008-11-17 12:19:06 +01:00
optabs.h
optc-gen.awk
opth-gen.awk
opts-common.c
opts.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
opts.h re PR middle-end/37576 (-v --help ICEs) 2008-10-07 23:02:21 +02:00
output.h re PR target/37170 (gcc.dg/weak/weak-1.c) 2008-11-22 09:22:52 +01:00
params.c
params.def params.def (ira-max-conflict-table-size): Decrease default value to 1000. 2009-01-08 20:54:29 +00:00
params.h re PR rtl-optimization/38583 (huge test case makes register allocator run out of memory while constructing the conflict graph) 2009-01-06 03:50:07 +00:00
passes.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +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 * predict.c (estimate_bb_frequencies): Fix test if profile is present. 2008-12-09 17:04:26 +00: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
pretty-print.h
print-rtl.c
print-tree.c * print-tree.c (print_node): Use code instead of TREE_CODE (node). 2008-11-04 21:08:26 +01:00
profile.c re PR c/7543 (no warning for always-false "if (!a & 0x4)" bitwise and on boolean value) 2008-10-24 10:09:06 +00:00
profile.h
protoize.c
read-rtl.c
README.Portability
real.c re PR c/39035 (if( 0.0DF ) is considered true) 2009-02-06 21:01:46 +00:00
real.h re PR middle-end/36578 (cast to long double not taken into account when result stored to a double) 2008-10-29 17:05:42 +00:00
recog.c re PR inline-asm/39058 (ICE with double in inline-asm) 2009-02-02 14:23:43 +01:00
recog.h re PR inline-asm/39058 (ICE with double in inline-asm) 2009-02-02 14:23:43 +01:00
reg-notes.def
reg-stack.c reg-stack.c (reg_to_stack): Add missing braces in memset size calculation. 2008-11-06 19:01:18 +01:00
reginfo.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
regmove.c ira-color.c (allocno_reload_assign): Update comments. 2009-01-29 13:56:17 -08:00
regrename.c regrename.c (regrename_optimize): Fix dumping. 2009-01-09 21:34:22 +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
reload.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
reload.h [multiple changes] 2008-08-26 12:39:58 +00:00
reload1.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
reorg.c re PR rtl-optimization/38740 (Incorrect delayed branch optimization) 2009-01-28 17:05:41 +01:00
resource.c
resource.h
rtl-error.c
rtl-factoring.c re PR rtl-optimization/37922 (code generation error) 2008-12-18 13:38:39 +00:00
rtl.c sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
rtl.def
rtl.h re PR rtl-optimization/37889 (SEGV, conditional execution proactively executed the false arm.) 2009-02-04 20:54:36 +00:00
rtlanal.c re PR rtl-optimization/39110 (Revision 143939 breaks bootstrap on Linux/ia64) 2009-02-05 18:29:11 +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 sched-deps.c (sched_analyze_2): Flush pending memory loads and stores. 2008-12-31 16:36:44 +01: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 [multiple changes] 2009-01-29 13:53:15 +03:00
sel-sched.h sel-sched.h, [...]: New files. 2008-09-01 12:57:00 +04:00
simplify-rtx.c re PR rtl-optimization/32283 (Missed induction variable optimization) 2008-11-20 08:05:12 +00:00
sort-protos
sparseset.c
sparseset.h
sreal.c
sreal.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c re PR inline-asm/39058 (ICE with double in inline-asm) 2009-02-02 14:23:43 +01:00
stor-layout.c c.opt (Wpacked-bitfield-compat): Change init value to -1. 2009-01-28 02:55:20 +00:00
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 tlink.c: Include "libiberty.h". 2008-11-20 14:21:51 +01:00
toplev.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2008-12-09 21:25:11 +00:00
toplev.h tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +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 re PR tree-optimization/38977 (bash no longer builds with profile-feedback) 2009-02-06 09:06:39 +00:00
tree-cfgcleanup.c re PR middle-end/37913 (ICE: Segmentation fault in link_block, cfg.c:153) 2008-10-29 16:19:24 +01:00
tree-chrec.c re PR middle-end/38492 ([graphite] segfaulting code when compiled with -fgraphite -fgraphite-identity) 2009-01-07 15:53:03 +00:00
tree-chrec.h re PR middle-end/38492 ([graphite] segfaulting code when compiled with -fgraphite -fgraphite-identity) 2009-01-07 15:53:03 +00:00
tree-complex.c re PR middle-end/36191 (can't use complex in a eh region if non-call-exceptions is enabled) 2008-12-29 19:25:19 +01:00
tree-data-ref.c re PR middle-end/38250 (ICE with -O2 -ftree-loop-distribution) 2008-12-03 14:35:13 +01:00
tree-data-ref.h re PR tree-optimization/37031 (ICE for h264ref in gather_interchange_stats with -ftree-loop-linear) 2009-01-08 17:01:42 +01:00
tree-dfa.c
tree-dump.c
tree-dump.h
tree-eh.c re PR tree-optimization/38819 (trapping expression wrongly hoisted out of loop) 2009-01-18 15:51:12 +00:00
tree-flow-inline.h re PR tree-optimization/37950 (failure in polyhedron benchmark when ftree-parallelize-loops is enabled) 2008-11-16 04:48:25 +00:00
tree-flow.h re PR tree-optimization/38819 (trapping expression wrongly hoisted out of loop) 2009-01-18 15:51:12 +00:00
tree-if-conv.c
tree-inline.c re PR middle-end/36509 (gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c) 2008-12-04 15:55:25 +00: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 re PR tree-optimization/39007 (-ftree-loop-distribution ICEs) 2009-01-29 18:23:21 +00:00
tree-loop-linear.c re PR tree-optimization/37031 (ICE for h264ref in gather_interchange_stats with -ftree-loop-linear) 2009-01-08 17:01:42 +01:00
tree-mudflap.c re PR middle-end/35314 (ICE with __builtin_setjmp and -fmudflap) 2008-11-10 14:48:06 +01: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 re PR middle-end/38454 (memcpy folding breaks -D_FORTIFY_SOURCE=2 protection) 2008-12-10 00:01:15 +01:00
tree-outof-ssa.c Fix comments and formatrting 2008-09-18 14:13:54 +00:00
tree-parloops.c Fix testsuite/gfortran.dg/graphite/id-4.f90. 2008-12-11 07:23:02 +00:00
tree-pass.h tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
tree-phinodes.c Fix testsuite/gfortran.dg/graphite/id-4.f90. 2008-12-11 07:23:02 +00:00
tree-predcom.c re PR middle-end/38250 (ICE with -O2 -ftree-loop-distribution) 2008-12-03 14:35:13 +01:00
tree-pretty-print.c re PR middle-end/38690 (Missing parentheses for (a-1)/2 in final_cleanup) 2009-01-02 15:38:05 +01:00
tree-profile.c revert: tree-profile.c (tree_init_ic_make_global_vars): Make static variables TLS. 2008-12-30 18:59:51 +00:00
tree-scalar-evolution.c re PR tree-optimization/32044 (final value replacement too aggressive for e.g. targets with no native div/mod insns) 2008-12-12 20:32:47 +00:00
tree-scalar-evolution.h re PR tree-optimization/32044 (final value replacement too aggressive for e.g. targets with no native div/mod insns) 2008-12-12 20:32:47 +00:00
tree-sra.c re PR middle-end/38271 (Spurious / missing "... used uninitialized in this function" warning) 2008-12-10 17:20:50 +00:00
tree-ssa-address.c re PR tree-optimization/38835 (field-insensitive PTA causes libstdc++ miscompiles) 2009-01-16 19:18:18 +00:00
tree-ssa-alias.c re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS) 2009-01-26 15:03:30 +00:00
tree-ssa-ccp.c re PR middle-end/38932 (ICE in set_value_range, at tree-vrp.c:398) 2009-01-23 15:57:19 +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 tree-optimization/38645 (ICE with volatile) 2008-12-30 21:20:08 +00:00
tree-ssa-dse.c re PR middle-end/38851 (Compiler warns about uninitialized variable that is an object with a constructor) 2009-01-26 09:52:48 +00:00
tree-ssa-forwprop.c re PR tree-optimization/39041 (ICE on valid during vrp2) 2009-01-30 22:09:15 +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 builtins.c, [...]: Fix comments. 2008-12-19 17:53:51 +00:00
tree-ssa-loop-manip.c
tree-ssa-loop-niter.c re PR rtl-optimization/32283 (Missed induction variable optimization) 2008-11-20 08:05:12 +00: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 graphite.c (graphite_apply_transformations): Check for -fgraphite-identity. 2008-10-23 17:00:35 +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/38428 (ice for Linux kernel code with -O2) 2008-12-06 22:06:43 +01: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 re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64) 2009-02-06 07:33:05 +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 re PR tree-optimization/38807 (ice: gimple check: expected gimple_assign(error_mark), have gimple_phi()) 2009-01-12 12:11:40 +01:00
tree-ssa-sccvn.c re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64) 2009-02-06 07:33:05 +00:00
tree-ssa-sccvn.h re PR tree-optimization/38926 (ice in find_or_generate_expression, at tree-ssa-pre.c:2769) 2009-01-28 12:14:09 +00:00
tree-ssa-sink.c
tree-ssa-structalias.c re PR tree-optimization/39100 (-fstrict-aliasing miscompilation) 2009-02-05 07:09:44 +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 re PR tree-optimization/38789 (__builtin_constant_p appears to evaluate to true for non-constant arguments.) 2009-01-16 16:01:24 +01: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 c++/38908 (Unexplained "'<anonymous>' is used uninitialized in this function" warning in cc1plus -m64) 2009-01-28 09:36:41 +00:00
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-switch-conversion.c re PR tree-optimization/38661 (ICE: vector VEC(constructor_elt,base) push domain error, in build_constructors at tree-switch-conversion.c:450) 2008-12-30 08:27:29 -08:00
tree-tailcall.c
tree-vect-analyze.c re PR tree-optimization/38079 (gcc segfaults when using -ftree-vectorizer-verbose=9) 2008-11-12 10:36:03 +00:00
tree-vect-generic.c
tree-vect-patterns.c
tree-vect-transform.c re PR tree-optimization/37194 (Autovectorization of small constant iteration loop degrades performance) 2009-01-08 07:59:40 +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/38934 (ICE in set_value_range, at tree-vrp.c:398) 2009-01-28 11:40:06 +01:00
tree.c re PR middle-end/38240 (Vector type definitions not compatible with attribute target) 2008-12-08 09:12:55 -08:00
tree.def tree.def (LSHIFT_EXPR, [...]): Add commentary. 2009-01-04 22:14:39 +00:00
tree.h re PR middle-end/38932 (ICE in set_value_range, at tree-vrp.c:398) 2009-01-23 15:57:19 +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 re PR c/7543 (no warning for always-false "if (!a & 0x4)" bitwise and on boolean value) 2008-10-24 10:09:06 +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 middle-end/38283 (FAIL: libgomp.fortran/pr25162.f) 2008-11-30 16:35:59 +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.