gcc/gcc
Xinliang David Li d6d1127249 vectorizer cost model enhancement
From-SVN: r202980
2013-09-27 16:48:15 +00:00
..
ada Makefile.in (OUTPUT_OPTION): Define as "-o $@". 2013-09-25 16:10:35 +00:00
c Makefile.in (C_TREE_H): Reference c/c-tree.h. 2013-09-25 16:18:20 +00:00
c-family re PR sanitizer/58413 (ubsan constant folding) 2013-09-25 08:58:57 +00:00
common vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
config vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
cp Make-lang.in (CXX_TREE_H, [...]): Remove. 2013-09-25 16:23:02 +00:00
doc vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
fortran re PR fortran/58436 ([OOP] ICE (segfault) in generate_finalization_wrapper for CLASS(*)) 2013-09-25 21:56:20 +02:00
ginclude
go Make-lang.in (gospec.o): Remove. 2013-09-25 16:27:49 +00:00
java Make-lang.in (jvspec.o): Remove. 2013-09-25 16:24:30 +00:00
lto * Make-lang.in (LTO_H, LINKER_PLUGIN_API_H, LTO_TREE_H) 2013-09-25 16:28:35 +00:00
objc * Make-lang.in (START_HDRS, cc1obj-checksum.o, objc/objc-lang.o) 2013-09-25 16:21:42 +00:00
objcp Make-lang.in (CXX_TREE_H, [...]): Remove. 2013-09-25 16:23:02 +00:00
po
testsuite re PR middle-end/58463 (ICE with -fdump-tree-all-all in vector indexed access) 2013-09-27 16:54:43 +02:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4 (clh 9) 2013-09-25 15:55:01 +00:00
addresses.h
alias.c alias.h (component_uses_parent_alias_set): Rename to ... 2013-09-26 15:15:28 +00:00
alias.h alias.h (component_uses_parent_alias_set): Rename to ... 2013-09-26 15:15:28 +00:00
alloc-pool.c
alloc-pool.h
asan.c gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
asan.h
attribs.c
auto-inc-dec.c
BASE-VER
basic-block.h
bb-reorder.c
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c re PR sanitizer/58411 (no_sanitize_undefined function attribute) 2013-09-18 10:01:40 +00:00
builtins.def
builtins.h
caller-save.c alias.c (addr_side_effect_eval): Use gen_int_mode with the mode of the associated gen_rtx_* call. 2013-09-09 13:06:43 +00:00
calls.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cfg-flags.def
cfg.c
cfganal.c
cfgbuild.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
cfgcleanup.c re PR rtl-optimization/58365 (likely wrong code bug) 2013-09-10 13:47:19 +02:00
cfgexpand.c tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
cfghooks.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cfghooks.h
cfgloop.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cfgloop.h * cfgloop.h (number_of_loops): Fix typo in check for null. 2013-09-27 16:37:48 +02:00
cfgloopanal.c
cfgloopmanip.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cfgrtl.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
cgraph.c cgraph.c (cgraph_resolve_speculation): Use semantical equivalency test. 2013-09-25 09:48:55 +00:00
cgraph.h tree-into-ssa.c (gate_into_ssa): New. 2013-09-14 15:27:21 +00:00
cgraphbuild.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cgraphclones.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
cgraphunit.c tree-into-ssa.c (gate_into_ssa): New. 2013-09-14 15:27:21 +00:00
ChangeLog vectorizer cost model enhancement 2013-09-27 16:48:15 +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-2012
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def re PR ipa/58332 (error: inlined_to pointer is set but no predecessors found) 2013-09-17 17:45:00 +00:00
cilkplus.def
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c
combine.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
common.opt vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
compare-elim.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
conditions.h
config.build
config.gcc c-target.def: New hook 2013-09-13 20:06:41 +02:00
config.host
config.in Makefile.in (OUTPUT_OPTION): Define as "-o $@". 2013-09-25 16:10:35 +00:00
configure Makefile.in (OUTPUT_OPTION): Define as "-o $@". 2013-09-25 16:10:35 +00:00
configure.ac Makefile.in (OUTPUT_OPTION): Define as "-o $@". 2013-09-25 16:10:35 +00:00
context.c
context.h
convert.c
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c coverage.c (get_coverage_counts): Add missing newline. 2013-09-17 14:26:44 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c
cse.c cse.c (count_reg_usage): Handle INT_LIST. 2013-09-27 11:17:34 +00:00
cselib.c
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
DATESTAMP Daily bump. 2013-09-27 00:16:56 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h
DEV-PHASE
df-core.c
df-problems.c
df-scan.c
df.h
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic.c re PR c++/54941 (do not print line/column numbers for <built-in>:0:0) 2013-09-08 14:30:27 +00:00
diagnostic.def
diagnostic.h
dojump.c
dominance.c
domwalk.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
domwalk.h compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
double-int.c
double-int.h
dse.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
dumpfile.c dumpfile.c (dump_loc): Remove newline emission. 2013-09-16 13:40:02 +00:00
dumpfile.h
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c asan.c (asan_emit_stack_protection): Use gen_int_mode instead of GEN_INT. 2013-09-09 13:07:10 +00:00
dwarf2out.c dwarf2out.c (should_emit_struct_debug): Add check for type_decl variable is not NULL. 2013-09-13 15:36:42 -07:00
dwarf2out.h
emit-rtl.c alias.h (component_uses_parent_alias_set): Rename to ... 2013-09-26 15:15:28 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
except.h
exec-tool.in
explow.c gcc/ 2013-09-09 13:07:02 +00:00
expmed.c expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead of an rtx/bitpos pair. 2013-09-09 13:07:18 +00:00
expmed.h
expr.c tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
expr.h
file-find.c
file-find.h
final.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
fixed-value.c
fixed-value.h
flag-types.h vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
flags.h
fold-const.c re PR tree-optimization/58513 (*var and MEM[(const int &)var] (var has int* type) are not treated as the same data ref.) 2013-09-24 11:04:04 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c gcc/ 2013-09-09 13:07:02 +00:00
function.h
fwprop.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
gcc-ar.c
gcc-plugin.h
gcc.c
gcc.h
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c
gcse.h
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genenums.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c gengtype.c (file_rules): Added rule for *.cc files. 2013-09-20 15:50:56 +00:00
gengtype.h
genhooks.c
genmddeps.c
genmddump.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 tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ggc.h
gimple-builder.c gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
gimple-builder.h gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
gimple-fold.c ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check for ipa-devirt. 2013-09-23 16:54:34 +00:00
gimple-fold.h
gimple-iterator.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
gimple-low.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
gimple-pretty-print.c gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
gimple-pretty-print.h
gimple-ssa-strength-reduction.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
gimple-streamer-in.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
gimple-streamer-out.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
gimple-streamer.h
gimple.c gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
gimple.def
gimple.h The gimple builder no longer support normal form. 2013-09-27 12:23:41 -04:00
gimplify.c gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to NULL_TREE before pushing them onto the vector. 2013-09-22 21:57:39 +00:00
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-blocking.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-clast-to-gimple.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-clast-to-gimple.h
graphite-dependences.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-htab.h
graphite-interchange.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-optimize-isl.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-poly.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-poly.h
graphite-scop-detection.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
graphite-sese-to-poly.h
graphite.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c
hard-reg-set.h
hash-table.c
hash-table.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h
hwint.c
hwint.h
ifcvt.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
incpath.c
incpath.h
init-regs.c
input.c
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-cp.c (ipa_get_indirect_edge_target_1): Add sanity check for ipa-devirt. 2013-09-23 16:54:34 +00:00
ipa-devirt.c ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check for ipa-devirt. 2013-09-23 16:54:34 +00:00
ipa-inline-analysis.c re PR ipa/58332 (error: inlined_to pointer is set but no predecessors found) 2013-09-17 17:45:00 +00:00
ipa-inline-transform.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ipa-inline.c re PR ipa/58332 (error: inlined_to pointer is set but no predecessors found) 2013-09-17 17:45:00 +00:00
ipa-inline.h
ipa-profile.c re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11convenience.a/system_error.o, std::error_category::default_error_condition(int) const [clone .localalias.9]).) 2013-09-17 15:46:06 +00:00
ipa-prop.c ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check for ipa-devirt. 2013-09-23 16:54:34 +00:00
ipa-prop.h
ipa-pure-const.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h
ipa-reference.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ipa-reference.h
ipa-split.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ipa-utils.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
ipa-utils.h ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check for ipa-devirt. 2013-09-23 16:54:34 +00:00
ipa.c re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11convenience.a/system_error.o, std::error_category::default_error_condition(int) const [clone .localalias.9]).) 2013-09-17 15:46:06 +00:00
ira-build.c
ira-color.c
ira-conflicts.c
ira-costs.c
ira-emit.c
ira-int.h
ira-lives.c
ira.c ira.c (update_equiv_regs): Only call set_paradoxical_subreg for non-debug insns. 2013-09-08 18:15:49 +00:00
ira.h
is-a.h
jump.c
langhooks-def.h
langhooks.c
langhooks.h
LANGUAGES
lcm.c
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
loop-init.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
loop-invariant.c
loop-iv.c gcc/ 2013-09-09 13:07:02 +00:00
loop-unroll.c gcc/ 2013-09-09 13:07:02 +00:00
loop-unswitch.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
lower-subreg.c
lower-subreg.h
lra-assigns.c
lra-coalesce.c
lra-constraints.c lra-constraints.c (need_for_all_save_p): Use macro HARD_REGNO_CALL_PART_CLOBBERED. 2013-09-18 19:12:16 +00:00
lra-eliminations.c cse.c (count_reg_usage): Handle INT_LIST. 2013-09-27 11:17:34 +00:00
lra-int.h
lra-lives.c lra-constraints.c (need_for_all_save_p): Use macro HARD_REGNO_CALL_PART_CLOBBERED. 2013-09-18 19:12:16 +00:00
lra-spills.c
lra.c lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes. 2013-09-25 18:35:02 +00:00
lra.h
lto-cgraph.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-section-out.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-streamer-in.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-streamer-out.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-streamer.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
lto-streamer.h
lto-wrapper.c
machmode.def
machmode.h
main.c
Makefile.in gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c asan.c (asan_clear_shadow): Use gen_int_mode with the mode of the associated expand_* call. 2013-09-09 13:06:53 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c re PR tree-optimization/58472 (gomp4: ICE in in vectorizable_store, at tree-vect-stmts.c:4192) 2013-09-19 18:56:40 +02:00
ONEWS
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
opts.h
output.h
params.c
params.def Implement --param=vect-max-peeling-for-alignment=.. 2013-09-24 20:44:03 +00:00
params.h
pass_manager.h
passes.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
passes.def re PR middle-end/58402 (FAIL: gcc.dg/tree-ssa/phi-opt-1.c scan-tree-dump-times optimized "if" 0) 2013-09-12 13:19:21 +00:00
plugin.c plugin.c (parse_plugin_arg_opt): Accept equal sign inside plugin argument. 2013-09-20 15:54:47 +00:00
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c
postreload.c
predict.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
print-tree.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
profile.c dumpfile.c (dump_loc): Remove newline emission. 2013-09-16 13:40:02 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c
README.Portability
real.c
real.h
realmpfr.c
realmpfr.h
recog.c
recog.h
ree.c asan.c (asan_emit_stack_protection): Use gen_int_mode instead of GEN_INT. 2013-09-09 13:07:10 +00:00
reg-notes.def rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
reg-stack.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
regcprop.c
reginfo.c cse.c (count_reg_usage): Handle INT_LIST. 2013-09-27 11:17:34 +00:00
regmove.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload1.c cse.c (count_reg_usage): Handle INT_LIST. 2013-09-27 11:17:34 +00:00
reload.c
reload.h
reorg.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
resource.c resource.c (mark_referenced_resources): Handle COND_EXEC. 2013-09-06 18:37:50 +01:00
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
rtl.h rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
rtlanal.c rtlanal.c (must_be_base_p, [...]): Delete. 2013-09-27 11:21:19 +00:00
rtlhooks-def.h
rtlhooks.c
sanitizer.def
sbitmap.c
sbitmap.h
sched-deps.c
sched-ebb.c
sched-int.h
sched-rgn.c
sched-vis.c rtl.texi (REG_NOTES): Say that int_list can also be used. 2013-09-23 17:41:02 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c
sel-sched.h
sese.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
sese.h
simplify-rtx.c simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary for (not (neg ...)) and (neg (not ...)) cases. 2013-09-11 17:40:56 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c re PR middle-end/57134 (ICE with -mstrict-align and inline assembly on ppc64) 2013-09-24 21:02:28 +09:30
stor-layout.c
store-motion.c
streamer-hooks.c
streamer-hooks.h
stringpool.c
symtab.c re PR ipa/58329 (ld: Invalid symbol type for plabel (.libs/libstdc++.lax/libc++11convenience.a/system_error.o, std::error_category::default_error_condition(int) const [clone .localalias.9]).) 2013-09-17 16:07:21 +00:00
sync-builtins.def
system.h
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def
target.h
targhooks.c vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
targhooks.h
timevar.c
timevar.def devirt-11.C: Update template. 2013-09-08 16:42:21 +00:00
timevar.h
tlink.c
toplev.c toplev.c (output_stack_usage): Be prepared for suffixes created by the compiler in the function names. 2013-09-06 15:28:02 +00:00
toplev.h
tracer.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
trans-mem.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
trans-mem.h
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-cfg.c re PR middle-end/58551 (ICE with abort in OpenMP SESE region inside of some loop) 2013-09-27 15:44:10 +02:00
tree-cfgcleanup.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-chrec.c re PR tree-optimization/58417 (Incorrect optimization in SCEV const-prop) 2013-09-18 12:31:45 +00:00
tree-chrec.h re PR tree-optimization/58473 (FAIL: ext/random/normal_mv_distribution/cons/default.cc (test for excess errors)) 2013-09-20 10:19:12 +00:00
tree-complex.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-core.h gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-data-ref.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-data-ref.h tree-data-ref.h (known_dependences_p): Move here ... 2013-09-13 10:58:35 +00:00
tree-dfa.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-emutls.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-flow-inline.h tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c (SSANAMES... 2013-09-12 13:30:31 +00:00
tree-flow.h tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-hasher.h
tree-if-conv.c Introduce -ftree-loop-vectorize option 2013-09-16 19:55:40 +00:00
tree-inline.c tree-inline.h (struct copy_body_data): Add transform_parameter. 2013-09-17 11:05:31 +00:00
tree-inline.h tree-inline.h (struct copy_body_data): Add transform_parameter. 2013-09-17 11:05:31 +00:00
tree-into-ssa.c tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous. 2013-09-26 15:57:39 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/58453 (Revision 202431 results in miscompare for CPU2006 434.zeusmp) 2013-09-20 12:21:08 +00:00
tree-mudflap.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-mudflap.h
tree-nested.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-nomudflap.c
tree-nrv.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-object-size.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-optimize.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-outof-ssa.c tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-outof-ssa.h tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-parloops.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-pass.h
tree-phinodes.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-predcom.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-pretty-print.c gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-pretty-print.h gimple-pretty-print.c (dump_ssaname_info): New function. 2013-09-23 17:13:39 +02:00
tree-profile.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-scalar-evolution.c re PR middle-end/58484 (ICE in chrec_fold_plus_1, at tree-chrec.c:272 building 416.gamess) 2013-09-20 17:49:45 +00:00
tree-scalar-evolution.h
tree-sra.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-address.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-alias.c gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-ssa-alias.h tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c (SSANAMES... 2013-09-12 13:30:31 +00:00
tree-ssa-ccp.c tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy assignment statements. 2013-09-23 16:07:19 +00:00
tree-ssa-coalesce.c tree-ssa-live.c (var_map_base_init): Handle SSA names with DECL_IGNORED_P base VAR_DECLs like anonymous SSA names. 2013-09-26 13:18:31 +00:00
tree-ssa-copy.c gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-ssa-copyrename.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-dce.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-dom.c tree-flow.h (thread_through_all_blocks): Prototype moved into tree-ssa-threadupdate.h. 2013-09-25 21:28:03 -06:00
tree-ssa-dse.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
tree-ssa-forwprop.c re PR tree-optimization/58459 (Loop invariant is not hoisted out of loop after r202525.) 2013-09-27 08:14:53 +00:00
tree-ssa-ifcombine.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-live.c tree-ssa-live.c (var_map_base_init): Handle SSA names with DECL_IGNORED_P base VAR_DECLs like anonymous SSA names. 2013-09-26 13:18:31 +00:00
tree-ssa-live.h tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-ssa-loop-ch.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-im.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
tree-ssa-loop-ivcanon.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-ivopts.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-manip.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-niter.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-prefetch.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop-unswitch.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-loop.c Introduce -ftree-loop-vectorize option 2013-09-16 19:55:40 +00:00
tree-ssa-math-opts.c gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
tree-ssa-operands.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
tree-ssa-phiprop.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-pre.c re PR tree-optimization/58464 (Crashes with SIGSEGV (infinite recursion in phi_translate)) 2013-09-23 12:37:17 +00:00
tree-ssa-propagate.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename. 2013-09-26 13:23:31 +00:00
tree-ssa-sccvn.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-strlen.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
tree-ssa-structalias.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-tail-merge.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-ssa-ter.c tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-ssa-ter.h tree-ssa-live.h (find_replaceable_exprs, [...]): Move prototypes to... 2013-09-26 13:38:54 +00:00
tree-ssa-threadedge.c tree-flow.h (thread_through_all_blocks): Prototype moved into tree-ssa-threadupdate.h. 2013-09-25 21:28:03 -06:00
tree-ssa-threadupdate.c tree-flow.h (thread_through_all_blocks): Prototype moved into tree-ssa-threadupdate.h. 2013-09-25 21:28:03 -06:00
tree-ssa-threadupdate.h tree-flow.h (thread_through_all_blocks): Prototype moved into tree-ssa-threadupdate.h. 2013-09-25 21:28:03 -06:00
tree-ssa-uncprop.c compare-elim.c (find_comparison_dom_walker): New class 2013-09-17 20:39:50 -06:00
tree-ssa-uninit.c tree-flow.h (ssa_undefined_value_p): Remove prototype. 2013-09-17 17:22:05 +00:00
tree-ssa.c tree-ssa.h (walk_use_def_chains_fn, [...]): Delete. 2013-09-26 18:39:28 +02:00
tree-ssa.h tree-ssa.h (walk_use_def_chains_fn, [...]): Delete. 2013-09-26 18:39:28 +02:00
tree-ssanames.c gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-ssanames.h gimple-pretty-print.c: Various whitespace tweaks. 2013-09-24 17:57:00 +02:00
tree-stdarg.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-stdarg.h
tree-streamer-in.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-tailcall.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-vect-data-refs.c vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
tree-vect-generic.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tree-vect-loop-manip.c dumpfile.c (dump_loc): Remove newline emission. 2013-09-16 13:40:02 +00:00
tree-vect-loop.c vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
tree-vect-patterns.c tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug when checking the dot production pattern. 2013-09-17 14:20:08 -04:00
tree-vect-slp.c vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
tree-vect-stmts.c re PR tree-optimization/58472 (gomp4: ICE in in vectorizable_store, at tree-vect-stmts.c:4192) 2013-09-19 18:56:40 +02:00
tree-vectorizer.c Introduce -ftree-loop-vectorize option 2013-09-16 19:55:40 +00:00
tree-vectorizer.h vectorizer cost model enhancement 2013-09-27 16:48:15 +00:00
tree-vrp.c tree-flow.h (thread_through_all_blocks): Prototype moved into tree-ssa-threadupdate.h. 2013-09-25 21:28:03 -06:00
tree.c re PR bootstrap/58521 (bootstrap failure: ICE in mem_ref_in_stmt, at tree-ssa-loop-im.c:677) 2013-09-25 09:51:13 +00:00
tree.def
tree.h re PR tree-optimization/58513 (*var and MEM[(const int &)var] (var has int* type) are not treated as the same data ref.) 2013-09-24 11:04:04 +00:00
treestruct.def
tsan.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
tsan.h
tsystem.h
typeclass.h
ubsan.c re PR sanitizer/58420 (internal compiler error: in ubsan_type_descriptor, at ubsan.c:280) 2013-09-25 09:04:20 +00:00
ubsan.h
valtrack.c alias.c (addr_side_effect_eval): Use gen_int_mode with the mode of the associated gen_rtx_* call. 2013-09-09 13:06:43 +00:00
valtrack.h
value-prof.c dumpfile.c (dump_loc): Remove newline emission. 2013-09-16 13:40:02 +00:00
value-prof.h
var-tracking.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
varasm.c
varpool.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c tree-ssa.h: New. 2013-09-12 13:03:18 +00:00
vtable-verify.h
web.c
xcoff.h
xcoffout.c
xcoffout.h

Copyright (C) 2000-2013 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.