gcc/gcc
Richard Guenther c55224dc4d 20120615-1.c: New testcase.
2012-06-15  Richard Guenther  <rguenther@suse.de>

	* gcc.c-torture/execute/20120615-1.c: New testcase.

From-SVN: r188655
2012-06-15 11:06:16 +00:00
..
ada re PR ada/53592 (ICE on assignment to component of vector_type) 2012-06-15 10:41:13 +00:00
c-family Move Changelog entries to the right file. 2012-06-06 23:06:06 +00:00
common invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
config (*zero_extendsidi2_rex64): Remove isa attribute. 2012-06-15 08:53:28 +02:00
cp pt.c (tsubst_expr): Instantiate local class. 2012-06-12 14:32:13 -04:00
doc re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
fortran re PR fortran/53643 ([OOP] ICE (segfault) with INTENT(OUT) CLASS array) 2012-06-13 13:57:45 +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 cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs 2012-05-19 20:36:48 +00:00
objc output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 * gcc.pot: Regenerate. 2012-06-13 22:49:11 +01:00
testsuite 20120615-1.c: New testcase. 2012-06-15 11:06:16 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00: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-06-15 00:18:49 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
Makefile.in tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. 2012-06-14 12:21:36 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c alias.c (nonoverlapping_component_refs_p): Take two rtx arguments. 2012-06-12 11:52:41 +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 re PR tree-optimization/52558 (write introduction incorrect wrt the C++11 memory model) 2012-05-31 19:46:43 +00:00
bb-reorder.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
builtins.def
builtins.h
c-aux-info.c
c-config-lang.in
c-convert.c
c-decl.c re PR c/53532 (function call ignored when called with argument of incompatible, undefined structure) 2012-06-12 23:16:20 +02:00
c-errors.c
c-lang.c
c-lang.h
c-objc-common.c
c-objc-common.h
c-parser.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
c-tree.h expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate a kept temp. 2012-05-29 14:41:53 +00:00
c-typeck.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
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 re PR c++/53602 (Libre Office causes an internal compiler error) 2012-06-09 09:27:52 -07:00
cfgexpand.c integrate.c: Remove. 2012-05-29 15:36:18 +00:00
cfghooks.c
cfghooks.h
cfglayout.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfglayout.h
cfgloop.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgloop.h
cfgloopanal.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgloopmanip.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cfgrtl.c re PR rtl-optimization/53589 (ICE in maybe_record_trace_start with asm goto) 2012-06-12 09:52:47 +02:00
cgraph.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
cgraph.h LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +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 Fix compilation of build/*.o when using C++. 2012-05-31 13:25:41 -04:00
configure.ac Fix compilation of build/*.o when using C++. 2012-05-31 13:25:41 -04:00
convert.c
convert.h
coretypes.h
coverage.c
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cppspec.c
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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +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 middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h
df-core.c
df-problems.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
double-int.h 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +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 (function_possibly_abstracted_p): New static function. 2012-06-14 14:09:05 +00:00
dwarf2out.h
ebitmap.c
ebitmap.h
emit-rtl.c emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code. 2012-06-12 08:43:55 +00:00
emit-rtl.h
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 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
expmed.h
expr.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
expr.h
final.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +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 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
fp-test.c
function.c re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +00:00
function.h re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division) 2012-06-15 09:22:00 +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
gccspec.c
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.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
gengtype-state.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
gengtype.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate a kept temp. 2012-05-29 14:41:53 +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-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 output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +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
graphite-clast-to-gimple.c
graphite-clast-to-gimple.h
graphite-cloog-compat.h
graphite-cloog-util.c
graphite-cloog-util.h
graphite-dependences.c
graphite-dependences.h
graphite-interchange.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
graphite-poly.c
graphite-poly.h
graphite-ppl.c
graphite-ppl.h
graphite-scop-detection.c
graphite-scop-detection.h
graphite-sese-to-poly.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
graphite-sese-to-poly.h
graphite.c
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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
hw-doloop.h
hwint.c
hwint.h Add and use HOST_WIDEST_INT_C, HOST_WIDE_INT_C. 2012-06-13 14:52:47 -07:00
ifcvt.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 ipa-prop.h (ipa_get_jf_known_type_offset): New function. 2012-06-04 00:10:19 +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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p. 2012-06-04 18:27:36 +00:00
ira.h ira.h (target_ira): Delete x_ira_available_class_regs. 2012-05-31 05:27:03 +00:00
jump.c Fix var tracking ICE due to reorg. 2012-05-16 13:11:46 -07:00
langhooks-def.h
langhooks.c integrate.c: Remove. 2012-05-29 15:36:18 +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
loop-invariant.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
loop-iv.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
loop-unroll.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
loop-unswitch.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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-symtab.c (lto_symtab_resolve_symbols): Preffer decl with constructor over decl without. 2012-05-17 16:37:33 +00:00
lto-wrapper.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
machmode.def
machmode.h
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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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
optabs.h
optc-gen.awk c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. 2012-05-17 11:50:37 +00:00
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 (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +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 re PR c++/53602 (Libre Office causes an internal compiler error) 2012-06-09 09:27:52 -07: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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c read-rtl.c (mapping): Remove index field. 2012-06-13 19:38:11 +00: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
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
resource.c
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def
rtl.h regs.h (move_table, [...]): Move these definitions and associated target_globals fields to... 2012-05-31 05:29:47 +00:00
rtlanal.c
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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
sched-int.h invoke.texi (sched-pressure-algorithm): Document new --param. 2012-06-06 09:12:58 +00:00
sched-rgn.c
sched-vis.c
sdbout.c
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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
sel-sched.h
sese.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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
statistics.c
statistics.h
stmt.c rtl.h (assign_stack_temp, [...]): Remove 'keep' argument. 2012-05-29 14:44:47 +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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 re PR debug/53453 (darwin linker expects both AT_name and AT_comp_dir debug notes) 2012-05-29 23:44:09 +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
timevar.c
timevar.def
timevar.h
tlink.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
toplev.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +00:00
toplev.h
tracer.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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
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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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-flow.h (create_var_ann): Remove. 2012-05-24 12:33:49 +00:00
tree-if-conv.c
tree-inline.c integrate.c: Remove. 2012-05-29 15:36:18 +00: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 tree-parloops.c: Add myself to contributors, update TODO list, add link to wiki. 2012-05-21 07:39:38 +00:00
tree-pass.h re PR c++/53602 (Libre Office causes an internal compiler error) 2012-06-09 09:27:52 -07:00
tree-phinodes.c
tree-predcom.c LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01:00
tree-pretty-print.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00: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
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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
tree-ssa-alias.c re PR tree-optimization/53364 (Wrong code generation) 2012-05-16 13:11:01 +00:00
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
tree-ssa-forwprop.c
tree-ssa-ifcombine.c
tree-ssa-live.c expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate a kept temp. 2012-05-29 14:41:53 +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 output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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 output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +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/53647 (gcc.c-torture/compile/20011229-1.c and gcc.c-torture/compile/pr25311.c) 2012-06-13 12:33:55 +00: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 LANGUAGES: Fix typos. 2012-05-29 15:14:06 +01: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 output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
tree-tailcall.c
tree-vect-data-refs.c tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. 2012-06-14 12:21:36 +00:00
tree-vect-generic.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +00:00
tree-vect-loop-manip.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +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
tree-vect-slp.c Makefile.in: Fix many dependencies. 2012-05-31 16:43:31 +00:00
tree-vect-stmts.c tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. 2012-06-14 12:21:36 +00: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 tree-vrp.c (VR_INITIALIZER): New define. 2012-06-14 07:52:32 +00:00
tree.c re PR debug/53470 (ICE when linking with -g in splice_child_die, at dwarf2out.c:4264) 2012-06-11 14:14:09 +00:00
tree.def
tree.h output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +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 debug/49888 (VTA: -O2 -g variable value changes, it does not change in the source) 2012-06-13 21:43:51 +00:00
varasm.c 2012-06-2 Kenneth Zadeck <zadeck@naturalbridge.com> 2012-06-02 16:08:39 +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 alpha.c (HWI_HEX2): Add missing shift. 2012-06-11 18:00:39 -07: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.