gcc/gcc
Jason Merrill fece06368c re PR c++/53848 (ICE in decl_linkage at ../../gcc-trunk/gcc/cp/tree.c:3215)
PR c++/53848
	* decl.c (build_enumerator): Don't use build_lang_decl_loc.

From-SVN: r189267
2012-07-04 17:34:07 -04:00
..
ada trans.c (Call_to_gnu): Robustify test for function case if the CICO mechanism is used. 2012-07-03 09:06:08 +00:00
c configure.ac: Skip C if explicitly selected. 2012-06-29 16:12:35 +00:00
c-family re PR c++/53524 (Bogus enum comparison warning) 2012-07-02 15:14:23 -04:00
common invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
config winnt.c (i386_pe_reloc_rw_mask): New function. 2012-07-04 13:22:02 +02:00
cp re PR c++/53848 (ICE in decl_linkage at ../../gcc-trunk/gcc/cp/tree.c:3215) 2012-07-04 17:34:07 -04:00
doc Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
fortran re PR fortran/41951 ([OOP] Not diagnosing ambiguous operators (TB vs. INTERFACE)) 2012-06-27 19:38:00 +02:00
ginclude
go compiler, reflect: Quote package path with tabs. 2012-06-14 05:04:04 +00:00
java output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
lto The intent of the phases was to have a high-level but mutually exclusive accounting of compile time. 2012-06-19 01:30:31 +00:00
objc configure.ac: Skip C if explicitly selected. 2012-06-29 16:12:35 +00:00
objcp re PR c++/52973 (visibility attribute for class is not passed to its members) 2012-06-02 00:03:51 -04:00
po be.po, [...]: Update. 2012-07-02 15:28:56 +01:00
testsuite re PR c++/53848 (ICE in decl_linkage at ../../gcc-trunk/gcc/cp/tree.c:3215) 2012-07-04 17:34:07 -04:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog re PR middle-end/53321 (LTO bootstrap failed with bootstrap-profiled) 2012-07-04 15:49:19 +02:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2012-07-04 00:18:24 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
Makefile.in Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c re PR debug/53671 (Many guality test failures) 2012-06-22 01:30:16 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
auto-inc-dec.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
basic-block.h system.h (IFCVT_EXTRA_FIELDS): Poison. 2012-06-29 13:56:40 +00:00
bb-reorder.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
builtin-attrs.def
builtin-types.def
builtins.c re PR middle-end/53688 (191.fma3d in SPEC CPU 2000 miscompiled) 2012-06-21 12:18:23 +00:00
builtins.def
builtins.h
caller-save.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
calls.c rtl.h (assign_stack_temp, [...]): Remove 'keep' argument. 2012-05-29 14:44:47 +00:00
cfg.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfganal.c
cfgbuild.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgcleanup.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
cfgexpand.c Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
cfghooks.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
cfghooks.h cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
cfgloop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgloop.h cfgloop.h: Do not include rtl.h. 2012-06-17 21:04:41 +00:00
cfgloopanal.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgloopmanip.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
cfgrtl.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
cgraph.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cgraph.h re PR lto/53572 (Some public symbols don't get to serialized LTO) 2012-06-26 10:15:18 +00:00
cgraphbuild.c cgraphbuild.c (record_reference): Update. 2012-05-19 09:49:47 +00:00
cgraphclones.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
cgraphunit.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
cif-code.def
collect2-aix.c
collect2-aix.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
collect2.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
collect2.h output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
combine-stack-adj.c re PR c++/53602 (Libre Office causes an internal compiler error) 2012-06-09 09:27:52 -07:00
combine.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
common.opt Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
compare-elim.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
conditions.h
config.build
config.gcc config.gcc (unsupported): Move obsoleted FPA-based configurations here from ... 2012-06-13 12:45:27 +00:00
config.host
config.in re PR ada/52362 (gnat.dg/lto8.adb FAILs with gas/gld) 2012-05-25 09:24:08 +00:00
configure configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the assembler accept 'rep bsf ...'... 2012-07-03 09:15:09 +02:00
configure.ac configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the assembler accept 'rep bsf ...'... 2012-07-03 09:15:09 +02:00
convert.c
convert.h
coretypes.h
coverage.c coverage.c (bbg_file_stamp): New. 2012-06-30 11:42:52 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cse.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
cselib.c re PR target/53682 (ICE in cselib_lookup (SEGV) on i586-linux-gnu) 2012-06-22 01:29:28 +00:00
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
dbgcnt.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
dbgcnt.def
dbgcnt.h
dbxout.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
dbxout.h output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
dce.c re PR debug/53740 (--enable-checking=yes,rtl bootstrap failure with ada) 2012-06-28 07:39:25 +00:00
dce.h
ddg.c * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug. 2012-06-22 01:30:00 +00:00
ddg.h
debug.c
debug.h
defaults.h system.h (USE_COMMON_FOR_ONE_ONLY): Poison. 2012-06-26 21:47:18 +00:00
df-core.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
df-problems.c re PR debug/53740 (--enable-checking=yes,rtl bootstrap failure with ada) 2012-06-28 07:39:25 +00:00
df-scan.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
df.h re PR debug/53740 (--enable-checking=yes,rtl bootstrap failure with ada) 2012-06-25 14:20:19 +00:00
dfp.c
dfp.h
diagnostic-core.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
dominance.c
domwalk.c
domwalk.h
double-int.c double-int.c (double_int_multiple_of): New function. 2012-06-22 16:37:40 +00:00
double-int.h double-int.c (double_int_multiple_of): New function. 2012-06-22 16:37:40 +00:00
dse.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
dwarf2asm.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
dwarf2asm.h
dwarf2cfi.c * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots. 2012-06-11 11:04:25 -07:00
dwarf2out.c dwarf2out.c (add_pubname_string): Don't check for want_pubnames. 2012-06-29 17:46:44 -07:00
dwarf2out.h
ebitmap.c
ebitmap.h
emit-rtl.c emit-rtl.c (need_atomic_barrier_p): New function. 2012-06-20 01:05:25 +00:00
emit-rtl.h emit-rtl.c (need_atomic_barrier_p): New function. 2012-06-20 01:05:25 +00:00
errors.c
errors.h
et-forest.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +00:00
et-forest.h
except.c integrate.c: Remove. 2012-05-29 15:36:18 +00:00
except.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
exec-tool.in
explow.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
expmed.c Use synth_mult for vector multiplies vs scalar constant 2012-06-19 11:19:16 -07:00
expmed.h
expr.c re PR middle-end/53790 (ICE on dereferencing a extern union in asm statement) 2012-06-28 11:45:14 +00:00
expr.h re PR tree-optimization/51581 (Integer division by constant is not vectorized) 2012-06-15 13:07:47 +02:00
final.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
fixed-value.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
fixed-value.h
flag-types.h invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
flags.h
fold-const.c Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
fp-test.c
function.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
function.h output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
fwprop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
gcc-ar.c
gcc-plugin.h
gcc.c Allow --specs options. 2012-06-01 09:55:39 +02:00
gcc.h
gcov-dump.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
gcov-io.c
gcov-io.h
gcov-iov.c gcov-iov.c: Include bconfig.h and system.h. 2012-06-22 10:12:46 +00:00
gcov.c re PR middle-end/53510 (OOM while compile some code) 2012-05-29 13:34:38 +02:00
gcse.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
gcse.h
gdbinit.in
genattr-common.c
genattr.c
genattrtab.c genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1. 2012-05-21 13:24:31 +00:00
genautomata.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c integrate.c: Remove. 2012-05-29 15:36:18 +00:00
genenums.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c system.h (IFCVT_EXTRA_FIELDS): Poison. 2012-06-29 13:56:40 +00:00
gengtype-state.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
gengtype.c configure.ac: Skip C if explicitly selected. 2012-06-29 16:12:35 +00:00
gengtype.h
genhooks.c genhooks.c (main): Set progname. 2012-06-07 12:12:01 +00:00
genmddeps.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h
gimple-fold.c re PR middle-end/53433 (ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap) 2012-07-04 13:47:18 +00:00
gimple-fold.h
gimple-iterator.c
gimple-low.c
gimple-pretty-print.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
gimple-pretty-print.h
gimple-ssa-strength-reduction.c tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
gimple.def
gimple.h tree-ssa-loop-im.c (execute_sm): Do not check flag_tm. 2012-06-01 15:44:10 +00:00
gimplify.c gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f argument... 2012-06-15 14:46:36 +00:00
glimits.h
godump.c
graph.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
graph.h
graphds.c
graphds.h
graphite-blocking.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-clast-to-gimple.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-clast-to-gimple.h cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-dependences.c Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
graphite-interchange.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-optimize-isl.c Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
graphite-poly.c Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
graphite-poly.h Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
graphite-scop-detection.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
graphite-sese-to-poly.h
graphite.c cloog.m4: Set up to work against ISL only. 2012-07-02 11:43:46 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
hard-reg-set.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
hw-doloop.h
hwint.c expmed.c (ceil_log2): Move from here... 2012-06-17 21:01:25 +00:00
hwint.h expmed.c (ceil_log2): Move from here... 2012-06-17 21:01:25 +00:00
ifcvt.c system.h (IFCVT_EXTRA_FIELDS): Poison. 2012-06-29 13:56:40 +00:00
incpath.c
incpath.h
init-regs.c
input.c integrate.c: Remove. 2012-05-29 15:36:18 +00:00
input.h
insn-addr.h
insn-notes.def
internal-fn.c
internal-fn.def
internal-fn.h
intl.c
intl.h
ipa-cp.c ipa-prop.h (ipa_get_jf_known_type_offset): New function. 2012-06-04 00:10:19 +02:00
ipa-inline-analysis.c ipa-prop.h (ipa_get_jf_known_type_offset): New function. 2012-06-04 00:10:19 +02:00
ipa-inline-transform.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ipa-inline.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
ipa-inline.h
ipa-prop.c re PR middle-end/38474 (compile time explosion in dataflow_set_preserve_mem_locs at -O3) 2012-07-02 17:28:11 +02:00
ipa-prop.h ipa-prop.h (ipa_get_jf_known_type_offset): New function. 2012-06-04 00:10:19 +02:00
ipa-pure-const.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
ipa-reference.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ipa-reference.h
ipa-split.c
ipa-utils.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ipa-utils.h
ipa.c re PR middle-end/53321 (LTO bootstrap failed with bootstrap-profiled) 2012-07-04 15:49:19 +02:00
ira-build.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ira-color.c ira.h (target_ira): Delete x_ira_available_class_regs. 2012-05-31 05:27:03 +00:00
ira-conflicts.c
ira-costs.c ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p. 2012-06-04 18:27:36 +00:00
ira-emit.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
ira-int.h ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p. 2012-06-04 18:27:36 +00:00
ira-lives.c ira.h (target_ira): Delete x_ira_available_class_regs. 2012-05-31 05:27:03 +00:00
ira.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
ira.h ira.h (target_ira): Delete x_ira_available_class_regs. 2012-05-31 05:27:03 +00:00
jump.c
langhooks-def.h
langhooks.c The intent of the phases was to have a high-level but mutually exclusive accounting of compile time. 2012-06-19 01:30:31 +00:00
langhooks.h
lcm.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
libfuncs.h
limitx.h
limity.h
lists.c
loop-doloop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
loop-init.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
loop-invariant.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
loop-iv.c cfgloop.h: Do not include rtl.h. 2012-06-17 21:04:41 +00:00
loop-unroll.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
loop-unswitch.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
lower-subreg.c
lower-subreg.h
lto-cgraph.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
lto-section-out.c
lto-streamer-in.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
lto-streamer-out.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
lto-streamer.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
lto-streamer.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
lto-symtab.c
lto-wrapper.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
machmode.def
machmode.h Use synth_mult for vector multiplies vs scalar constant 2012-06-19 11:19:16 -07:00
main.c
matrix-reorg.c tree-dfa.c (find_vars_r): Do not call add_referenced_vars for globals. 2012-05-29 12:48:34 +00:00
mcf.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
mkconfig.sh
mode-classes.def
mode-switching.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
modulo-sched.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives) 2012-06-07 08:36:55 +02:00
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c opts.c: Add -fhoist-adjacent-loads to -O2 and above. 2012-06-12 13:38:16 +00:00
opts.h
output.h output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
params.c
params.def invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
params.h
passes.c tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
plugin.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
postreload.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
predict.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-tree.c
profile.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c Implement support for int iterators. 2012-06-18 11:43:03 +01:00
real.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
real.h
realmpfr.c
realmpfr.h
recog.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
recog.h
ree.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
reg-notes.def
reg-stack.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
regcprop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
reginfo.c regs.h (move_table, [...]): Move these definitions and associated target_globals fields to... 2012-05-31 05:29:47 +00:00
regmove.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
regrename.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
regrename.h
regs.h regs.h (move_table, [...]): Move these definitions and associated target_globals fields to... 2012-05-31 05:29:47 +00:00
regset.h
regstat.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
reload.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
reload.h integrate.c: Remove. 2012-05-29 15:36:18 +00:00
reload1.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
reorg.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
resource.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def
rtl.h output.h (split_double): Move prototype to rtl.h. 2012-06-17 21:12:24 +00:00
rtlanal.c output.h (split_double): Move prototype to rtl.h. 2012-06-17 21:12:24 +00:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c
sbitmap.h
sched-deps.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
sched-ebb.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
sched-int.h invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
sched-rgn.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
sched-vis.c
sdbout.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
sdbout.h
sel-sched-dump.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
sel-sched-dump.h
sel-sched-ir.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
sel-sched-ir.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
sel-sched.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
sel-sched.h
sese.c cfgloop.h: Do not include rtl.h. 2012-06-17 21:04:41 +00:00
sese.h
simplify-rtx.c simplify-rtx.c (simplify_const_binary_operation): Fixed shift count trucation. 2012-06-09 12:40:40 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c output.h: (current_function_is_leaf... 2012-06-24 17:58:46 +00:00
statistics.c
statistics.h
stmt.c stmt.c (emit_case_bit_tests): Remove. 2012-07-02 18:50:51 +00:00
stor-layout.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
store-motion.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
symtab.c re PR middle-end/53161 (ICE with weakref function and a function which takes vector types) 2012-05-23 09:23:40 +00:00
sync-builtins.def
system.h system.h (CASE_USE_BIT_TESTS): Poison. 2012-06-29 14:48:08 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
target.def target.def (output_ident): New hook. 2012-06-19 19:55:33 +00:00
target.h targhooks.c (default_builtin_vectorized_conversion): Handle vec_construct, using vectype to base cost on subparts. 2012-06-13 12:27:57 +00:00
targhooks.c targhooks.c (default_builtin_vectorized_conversion): Handle vec_construct, using vectype to base cost on subparts. 2012-06-13 12:27:57 +00:00
targhooks.h target.def (output_ident): New hook. 2012-06-19 19:55:33 +00:00
timevar.c The intent of the phases was to have a high-level but mutually exclusive accounting of compile time. 2012-06-19 01:30:31 +00:00
timevar.def tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
timevar.h
tlink.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
toplev.c target.def (output_ident): New hook. 2012-06-19 19:55:33 +00:00
toplev.h
tracer.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
trans-mem.c re PR middle-end/47530 ([trans-mem] tail call optimization problem with _ITM_commitTransaction) 2012-06-04 16:51:24 +00:00
trans-mem.h
tree-affine.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c re PR middle-end/53849 (ICE: in add_referenced_var_1, at tree-dfa.c:567 with -O2 -ftree-parallelize-loops=2 -fno-tree-loop-im) 2012-07-04 12:09:09 +00:00
tree-cfgcleanup.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-chrec.c re PR middle-end/53676 (empty loop is not always removed now) 2012-06-27 11:32:30 +00:00
tree-chrec.h
tree-complex.c
tree-data-ref.c tree-data-ref.c (stores_from_loop): Remove. 2012-06-04 15:04:15 +00:00
tree-data-ref.h re PR tree-optimization/53081 (memcpy/memset loop recognition) 2012-06-06 09:45:27 +00:00
tree-dfa.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-diagnostic.c Make unwound macro expansion trace less redundant 2012-05-24 21:37:45 +02:00
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c tree-eh.c (lower_try_finally_switch): Really put the location of the last statement of the finally block onto the switch. 2012-06-29 22:39:29 +00:00
tree-emutls.c re PR bootstrap/53522 (Bootstrap is broken for x86_64-apple-darwin10 at r187977) 2012-05-30 09:14:27 +00:00
tree-flow-inline.h tree-flow.h (create_var_ann): Remove. 2012-05-24 12:33:49 +00:00
tree-flow.h tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
tree-if-conv.c
tree-inline.c Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
tree-inline.h
tree-into-ssa.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/53081 (memcpy/memset loop recognition) 2012-06-06 09:45:27 +00:00
tree-mudflap.c tree-dfa.c (find_vars_r): Do not call add_referenced_vars for globals. 2012-05-29 12:48:34 +00:00
tree-mudflap.h
tree-nested.c
tree-nomudflap.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-nrv.c
tree-object-size.c
tree-optimize.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-outof-ssa.c
tree-parloops.c [multiple changes] 2012-06-22 12:29:33 +00:00
tree-pass.h tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
tree-phinodes.c expmed.c (ceil_log2): Move from here... 2012-06-17 21:01:25 +00:00
tree-predcom.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-pretty-print.c Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
tree-pretty-print.h
tree-profile.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-scalar-evolution.c re PR middle-end/53676 (empty loop is not always removed now) 2012-06-27 11:32:30 +00:00
tree-scalar-evolution.h
tree-sra.c tree-dfa.c (get_ref_base_and_extent): Compute the offset using double ints throughout. 2012-05-31 13:40:03 +00:00
tree-ssa-address.c double-int.c (double_int_multiple_of): New function. 2012-06-22 16:37:40 +00:00
tree-ssa-alias.c
tree-ssa-alias.h
tree-ssa-ccp.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-coalesce.c
tree-ssa-copy.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-copyrename.c common.opt (ftree-coalesce-inlined-vars): New. 2012-06-13 20:41:41 +00:00
tree-ssa-dce.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
tree-ssa-dom.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-dse.c re PR middle-end/53844 (GCC generates suboptimal code for unused members of classes in some cases on multiple targets.) 2012-07-04 12:10:40 +00:00
tree-ssa-forwprop.c
tree-ssa-ifcombine.c
tree-ssa-live.c tree-ssa-live.c (remove_unused_scope_block_p): Remove again DECL_IGNORED_P non-reg vars even if they are used. 2012-06-22 06:41:09 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-loop-im.c tree-ssa-loop-im.c (execute_sm): Do not check flag_tm. 2012-06-01 15:44:10 +00:00
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c tree-pass.h (pass_strength_reduction): New decl. 2012-06-26 16:27:50 +00:00
tree-ssa-loop-manip.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-loop-niter.c Update Copyright years. 2012-06-04 11:27:33 +02:00
tree-ssa-loop-prefetch.c cfgloop.h: Do not include rtl.h. 2012-06-17 21:04:41 +00:00
tree-ssa-loop-unswitch.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-loop.c Makefile.in (OBJS): Add graphite-optimize-isl.o. 2012-07-04 09:15:09 +00:00
tree-ssa-math-opts.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-ssa-operands.c varpool.c (add_new_static_var): Remove call to create_var_ann. 2012-05-24 09:57:38 +00:00
tree-ssa-operands.h tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New. 2012-05-22 11:59:41 +00:00
tree-ssa-phiopt.c re PR tree-optimization/53748 (ice in fold_convert_loc) 2012-06-26 10:02:20 +02:00
tree-ssa-phiprop.c
tree-ssa-pre.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-ssa-propagate.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/53774 (Reassociator generates non-canonical addition) 2012-06-27 11:29:04 +00:00
tree-ssa-sccvn.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-strlen.c
tree-ssa-structalias.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-tail-merge.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-ter.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-ssa-threadedge.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-threadupdate.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-uncprop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-uninit.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssanames.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c stmt.c (emit_case_bit_tests): Remove. 2012-07-02 18:50:51 +00:00
tree-tailcall.c
tree-vect-data-refs.c re PR regression/53729 (PR53636 fix caused bb-slp-16.c to FAIL on sparc64 and powerpc64) 2012-06-26 09:05:48 +00:00
tree-vect-generic.c re PR tree-optimization/53645 (Missed optimization for vector integer division lowering) 2012-07-02 08:56:24 +02:00
tree-vect-loop-manip.c cfglayout.h: Remove. 2012-06-17 21:08:39 +00:00
tree-vect-loop.c tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. 2012-06-14 12:21:36 +00:00
tree-vect-patterns.c re PR tree-optimization/51581 (Integer division by constant is not vectorized) 2012-06-28 19:53:58 +02:00
tree-vect-slp.c re PR regression/53729 (PR53636 fix caused bb-slp-16.c to FAIL on sparc64 and powerpc64) 2012-06-26 09:05:48 +00:00
tree-vect-stmts.c tree-vect-stmts.c (vectorizable_operation): Check both VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs. 2012-06-29 07:51:08 +02:00
tree-vectorizer.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +00:00
tree-vectorizer.h tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. 2012-06-14 12:21:36 +00:00
tree-vrp.c re PR tree-optimization/30318 (VRP does not create ANTI_RANGEs on overflow) 2012-06-20 12:00:20 +00:00
tree.c tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same as in free_lang_data_in_type. 2012-07-04 10:36:07 +00:00
tree.def Add MULT_HIGHPART_EXPR 2012-06-27 14:30:51 -07:00
tree.h stmt.c (emit_case_bit_tests): Remove. 2012-07-02 18:50:51 +00:00
treestruct.def
tsystem.h
typeclass.h
value-prof.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
value-prof.h
var-tracking.c re PR rtl-optimization/53706 (Bootstrap failure due to "Invalid write of size 8 at 0xBDC35E: variable_htab_free (var-tracking.c:1418)) 2012-06-28 07:39:51 +00:00
varasm.c target.def (output_ident): New hook. 2012-06-19 19:55:33 +00:00
varpool.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
vec.c
vec.h
vecir.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c system.h (UNALIGNED_SHORT_ASM_OP, [...]): Poison. 2012-06-26 17:26:19 +00:00
web.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
xcoff.h
xcoffout.c
xcoffout.h

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.


Avoid unnecessary test before free
----------------------------------

Since SunOS 4 stopped being a reasonable portability target,
(which happened around 2007) there has been no need to guard
against "free (NULL)".  Thus, any guard like the following
constitutes a redundant test:

  if (P)
    free (P);

It is better to avoid the test.[*]
Instead, simply free P, regardless of whether it is NULL.

[*] However, if your profiling exposes a test like this in a
performance-critical loop, say where P is nearly always NULL, and
the cost of calling free on a NULL pointer would be prohibitively
high, consider using __builtin_expect, e.g., like this:

  if (__builtin_expect (ptr != NULL, 0))
    free (ptr);



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.