gcc/gcc
Hariharan Sandanagobalane 68e53db04b picochip.md (lea_add): Allow any nonimmediate in the lea_add.
* config/picochip/picochip.md (lea_add): Allow any nonimmediate
        in the lea_add. Reload eventually constraints it properly.
        * config/picochip/constraints.md : Remove the target constraint
        "b", since it is not needed anymore.

From-SVN: r144202
2009-02-16 13:46:51 +00:00
..
ada * gcc-interface/deftarg.c: Remove. 2009-02-16 12:11:20 +00:00
config picochip.md (lea_add): Allow any nonimmediate in the lea_add. 2009-02-16 13:46:51 +00:00
cp re PR c++/39070 (ICE with typeof() (... and __decltype)) 2009-02-13 14:14:07 -05:00
doc * doc/invoke.texi (-fira): Remove. 2009-02-12 22:28:00 +01:00
fortran re PR fortran/38259 (Add version number to .mod file) 2009-02-13 23:16:20 +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 w_prof_single_str_global.c: Mask return value. 2009-02-15 09:07:17 +01: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 alias.h (record_alias_subset): Declare. 2009-02-10 22:52:51 +00:00
alias.h alias.h (record_alias_subset): Declare. 2009-02-10 22:52:51 +00:00
alloc-pool.c
alloc-pool.h
attribs.c
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
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
c-config-lang.in
c-convert.c
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/39084 (ice on struct redefinition) 2009-02-10 16:33:19 +00:00
c-dump.c
c-errors.c
c-format.c
c-format.h
c-gimplify.c
c-lang.c
c-lex.c
c-objc-common.c
c-objc-common.h
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/35444 (ICE with invalid function declaration) 2009-02-13 01:00:24 +00:00
c-pch.c
c-ppoutput.c
c-pragma.c
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 caller-save.c: Replace regclass.c with reginfo.c in comments. 2009-02-12 10:32:16 -08: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
cfgexpand.c re PR middle-end/38503 (warnings from -isystem headers strikes back.) 2009-01-27 10:42:59 +00:00
cfghooks.c
cfghooks.h
cfglayout.c
cfglayout.h
cfgloop.c
cfgloop.h
cfgloopanal.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
cfgloopmanip.c re PR middle-end/39124 (-fno-exceptions leads to a ICE) 2009-02-10 17:23:17 +01: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 picochip.md (lea_add): Allow any nonimmediate in the lea_add. 2009-02-16 13:46:51 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
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
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
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 longlong.h (sub_ddmmss): New for ia64. 2009-02-12 08:30:53 -08: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 revert: configure.ac: Enable LFS. 2009-02-15 11:11:13 +00:00
configure revert: configure.ac: Enable LFS. 2009-02-15 11:11:13 +00:00
configure.ac revert: configure.ac: Enable LFS. 2009-02-15 11:11:13 +00:00
convert.c re PR tree-optimization/35202 (exp->expf transformation incorrect with -fmath-errno) 2009-02-09 09:35:22 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c
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-16 00:16:49 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
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
debug.h
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
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.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
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3. 2009-02-12 09:42:57 +01:00
dwarf2out.h
dwarf.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
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
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
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 re PR target/39139 (ICE with stringop and register var) 2009-02-10 17:22:29 +01: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 (ASM_DEBUG_SPEC): Check for -g0. 2009-02-12 08:49:08 +00:00
gcc.h
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
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l * gengtype-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-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/39154 (Miscompilation of VLAs in nested parallel regions) 2009-02-11 22:57:52 +01:00
glimits.h
graph.c
graph.h
graphds.c
graphds.h
graphite.c re PR tree-optimization/38953 ([graphite] loop closed SSA not maintained by graphite code generation) 2009-02-09 20:35:09 +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-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
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
haifa-sched.c
hard-reg-set.h tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
hooks.c
hooks.h
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
input.h
insn-addr.h
insn-notes.def
integrate.c
integrate.h
intl.c
intl.h
ipa-cp.c
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
ipa-prop.h
ipa-pure-const.c
ipa-reference.c
ipa-reference.h
ipa-struct-reorg.c tree-parloops.c: Change license to GPLv3. 2009-02-10 17:59:08 +00:00
ipa-struct-reorg.h tree-parloops.c: Change license to GPLv3. 2009-02-10 17:59:08 +00:00
ipa-type-escape.c
ipa-type-escape.h
ipa-utils.c
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
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
langhooks.c
langhooks.h
LANGUAGES
lcm.c
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-std.ver
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
longlong.h longlong.h (sub_ddmmss): New for ia64. 2009-02-12 08:30:53 -08:00
loop-doloop.c
loop-init.c
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 loop-iv.c (implies_p): In the final case, test that operands 0 of the two comparisons match. 2009-02-13 11:35:47 +00:00
loop-unroll.c
loop-unswitch.c
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
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
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
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
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.c
predict.c * predict.c (estimate_bb_frequencies): Fix test if profile is present. 2008-12-09 17:04:26 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-tree.c
profile.c
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
recog.c caller-save.c: Replace regclass.c with reginfo.c in comments. 2009-02-12 10:32:16 -08: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
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
regstat.c
reload1.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
reload.c tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. 2009-01-29 14:51:46 +00:00
reload.h
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
rtl.def
rtl.h caller-save.c: Replace regclass.c with reginfo.c in comments. 2009-02-12 10:32:16 -08: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
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
sched-int.h
sched-rgn.c
sched-vis.c
sdbout.c
sdbout.h
see.c
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c [multiple changes] 2009-01-29 13:53:15 +03:00
sel-sched.h
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
stub-objc.c
sync-builtins.def
sys-protos.h
sys-types.h
system.h
target-def.h
target.h
targhooks.c
targhooks.h
timevar.c
timevar.def
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
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
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
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-into-ssa.c
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/39132 (wrong code generated with -ftree-loop-disttribution) 2009-02-10 14:54:13 +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
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
tree-parloops.c tree-parloops.c: Change license to GPLv3. 2009-02-10 17:59:08 +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 re PR middle-end/38981 (internal compiler error) 2009-02-09 11:09:25 +00:00
tree-ssa-copy.c
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
tree-ssa-live.c re PR target/39139 (ICE with stringop and register var) 2009-02-10 17:22:29 +01:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c revert: tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Make case self-contained. 2009-02-09 06:18:23 +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
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-math-opts.c
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-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
tree-ssa-propagate.h
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 re PR target/39139 (ICE with stringop and register var) 2009-02-10 17:22:29 +01:00
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
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
tree-ssa-uncprop.c
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
tree-vectorizer.h
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
unwind-dw2.h
unwind-generic.h
unwind-pe.h
unwind-sjlj.c
unwind.inc
value-prof.c
value-prof.h
var-tracking.c
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
vec.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c
xcoff.h
xcoffout.c
xcoffout.h

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

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

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

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

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


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

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

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

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

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


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

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

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

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

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

needs to be coded in some other way.


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

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

  if (mem)
    free (mem);


Trigraphs
---------

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


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

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


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

errno
-----

errno might be declared as a macro.


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

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

  unsigned variable;

as shorthand for

  unsigned int variable;

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

  (unsigned) variable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

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

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

o Passing incorrect types to fprintf and friends.

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