gcc/gcc
Paolo Carlini ff284b4bbe re PR c++/39475 (c++0x type-traits should error out in case of incompleteness)
/cp
2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39475
	* semantics.c (check_trait_type): New.
	(finish_trait_expr): Use it.

/testsuite
2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39475
	* g++.dg/ext/unary_trait_incomplete.C: New.

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

README.Portability

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.