gcc/gcc
Richard Sandiford 36fc37994d tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten overlap check.
gcc/
	* tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
	overlap check.

From-SVN: r176229
2011-07-13 11:17:00 +00:00
..
ada prefix.h: Wrap up in extern "C" block. 2011-07-12 17:23:04 +00:00
c-family cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
common common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't default based on TARGET_ASM_NAMED_SECTION. 2011-07-07 14:22:44 +01:00
config Makefile.in (CRT0STUFF_T_CFLAGS): Remove. 2011-07-13 09:57:08 +00:00
cp tree.h (categorize_ctor_elements): Remove comment. 2011-07-13 11:16:36 +00:00
doc tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. 2011-07-12 14:57:28 +00:00
fortran re PR fortran/49698 (Unmanageable compiler error) 2011-07-11 18:42:29 +02:00
ginclude
go tree.c (build_common_tree_nodes_2): Merge with build_common_tree_nodes. 2011-07-06 10:03:05 +00:00
java tree.c (build_common_tree_nodes_2): Merge with build_common_tree_nodes. 2011-07-06 10:03:05 +00:00
lto tree.c (build_common_tree_nodes_2): Merge with build_common_tree_nodes. 2011-07-06 10:03:05 +00:00
objc In gcc/objc/: 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com> 2011-07-11 09:42:23 +00:00
objcp In gcc/objc/: 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com> 2011-07-11 09:42:23 +00:00
po * EXCLUDES (libgcov.c): Remove. 2011-07-11 14:43:42 +00:00
testsuite tree.h (categorize_ctor_elements): Remove comment. 2011-07-13 11:16:36 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c
alias.h
alloc-pool.c
alloc-pool.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 builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New. 2011-06-27 18:52:23 +02:00
builtins.c re PR middle-end/49545 (New C++ test failures) 2011-06-29 09:42:42 +00:00
builtins.def builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New. 2011-06-27 18:52:23 +02:00
builtins.h
c-aux-info.c
c-config-lang.in
c-convert.c
c-decl.c re PR tree-optimization/49645 (g++.dg/tree-ssa/pr8781.C FAILs on Tru64 UNIX) 2011-07-06 14:05:54 +00:00
c-errors.c
c-lang.c
c-lang.h
c-objc-common.c
c-objc-common.h
c-parser.c
c-tree.h
c-typeck.c re PR c/49644 (post-increment of promoted operand is incorrect.) 2011-07-07 21:11:27 +02:00
caller-save.c
calls.c re PR middle-end/49519 (Revision 175272 miscompiled 447.dealII in SPEC CPU 2006) 2011-07-08 06:12:03 -07:00
cfg.c
cfganal.c
cfgbuild.c
cfgcleanup.c
cfgexpand.c optabs.c (expand_binop): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. 2011-07-08 12:57:50 +00:00
cfghooks.c
cfghooks.h
cfglayout.c
cfglayout.h
cfgloop.c
cfgloop.h
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c
cgraph.c cgraph.h (cgraph_get_node_or_alias): Removed declaration. 2011-07-12 12:29:39 +02:00
cgraph.h cgraph.h (cgraph_get_node_or_alias): Removed declaration. 2011-07-12 12:29:39 +02:00
cgraphbuild.c
cgraphunit.c re PR middle-end/49495 (-O3 causes error message "edge points to wrong declaration:") 2011-07-07 20:08:00 +02:00
ChangeLog tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten overlap check. 2011-07-13 11:17: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.dataflow
ChangeLog.graphite Only update ChangeLog.graphite. 2011-07-08 19:15:18 +00:00
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c
combine.c revert: simplify-rtx.c (simplify_const_binary_operation): Use the shift_truncation_mask hook instead of performing modulo by width. 2011-07-06 23:56:28 +00:00
common.opt common.opt (in_lto_p): New Variable entry. 2011-06-28 18:00:59 +01:00
compare-elim.c
conditions.h
config.build
config.gcc Makefile.in (CRT0STUFF_T_CFLAGS): Remove. 2011-07-13 09:57:08 +00:00
config.host re PR bootstrap/39150 (Configure scripts have no 64-Bit Solaris defined (only i386-solaris*).) 2011-07-07 09:24:16 +00:00
config.in
configure Initial x32 support. 2011-07-07 08:38:34 -07:00
configure.ac Initial x32 support. 2011-07-07 08:38:34 -07:00
convert.c optabs.c (expand_binop): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. 2011-07-08 12:57:50 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h dwarf2out: Split CFI construction routines into a new file. 2011-07-07 16:35:22 -07:00
coverage.c
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cppspec.c
cprop.c re PR rtl-optimization/49474 (ppc ICEs with -O3 (bootstrapping with -O3 and --disable-checking)) 2011-07-12 11:46:10 -07:00
crtstuff.c
cse.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
cselib.c re PR debug/49544 (ICE in new_elt_loc_list) 2011-06-27 18:45:49 +02:00
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2011-07-13 00:18:47 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h dwarf2: Extract cfi creation to a new pass. 2011-07-07 17:05:57 -07:00
defaults.h dwarf2: Move CFI output routines to dwarf2cfi.c. 2011-07-09 13:56:42 -07:00
DEV-PHASE
df-core.c
df-problems.c re PR debug/49522 (Divide by zero in validate_subreg in emit-rtl.c:695) 2011-07-07 18:05:55 +02:00
df-scan.c df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro unconditionally. 2011-06-30 17:56:50 +00:00
df.h
dfp.c
dfp.h
diagnostic-core.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro. 2011-07-06 14:44:30 +00:00
dse.h
dwarf2asm.c Move ASM_COMMENT_START to defaults.h. 2011-07-09 13:18:32 -07:00
dwarf2asm.h
dwarf2cfi.c re PR target/49713 (Conflicting types for 'arm_dbx_register_number') 2011-07-12 11:41:44 -07:00
dwarf2out.c re PR target/49713 (Conflicting types for 'arm_dbx_register_number') 2011-07-12 11:41:44 -07:00
dwarf2out.h re PR target/49713 (Conflicting types for 'arm_dbx_register_number') 2011-07-12 11:41:44 -07:00
ebitmap.c
ebitmap.h
emit-rtl.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
emit-rtl.h
emutls.c
errors.c
errors.h
et-forest.c
et-forest.h
except.c
except.h
exec-tool.in
explow.c explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. 2011-07-06 23:16:39 +00:00
expmed.c optabs.c (expand_binop): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. 2011-07-08 12:57:50 +00:00
expmed.h
expr.c tree.h (categorize_ctor_elements): Remove comment. 2011-07-13 11:16:36 +00:00
expr.h
final.c Move ASM_COMMENT_START to defaults.h. 2011-07-09 13:18:32 -07:00
fixed-value.c
fixed-value.h
flag-types.h
flags.h common.opt (in_lto_p): New Variable entry. 2011-06-28 18:00:59 +01:00
fold-const.c fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index folding. 2011-07-08 14:08:17 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. 2011-07-12 14:57:28 +00:00
function.h dwarf2out: Convert fde_table to a VEC. 2011-07-07 16:57:26 -07:00
fwprop.c Don't propagate hard registers in forward_propagate_subreg. 2011-07-05 05:47:35 -07:00
gbl-ctors.h
gcc-plugin.h
gcc.c gcc.c (%[Spec]): Don't document. 2011-07-07 14:24:21 +01:00
gcc.h
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c
gcse.h
gdbinit.in
genattr-common.c genattr-common.c: New. 2011-06-28 11:28:09 +01:00
genattr.c genattr-common.c: New. 2011-06-28 11:28:09 +01:00
genattrtab.c genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined in terms of another. 2011-07-08 16:08:13 +00:00
genautomata.c genautomata.c (add_arc): Return void. 2011-07-11 19:41:11 +00:00
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 dwarf2out: Split CFI construction routines into a new file. 2011-07-07 16:35:22 -07:00
gengtype.h
genhooks.c
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
gimple-fold.h
gimple-iterator.c
gimple-low.c
gimple-pretty-print.c
gimple-pretty-print.h
gimple.c
gimple.def
gimple.h
gimplify.c tree.h (categorize_ctor_elements): Remove comment. 2011-07-13 11:16:36 +00:00
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-blocking.c Fix PR47654: Loop blocking should strip-mine at least two loops. 2011-07-05 14:50:34 +00:00
graphite-clast-to-gimple.c Fix computation of precision. 2011-07-05 14:50:27 +00:00
graphite-clast-to-gimple.h
graphite-cloog-compat.h
graphite-cloog-util.c
graphite-cloog-util.h
graphite-dependences.c Remove continue from loop, add one more assert. 2011-07-08 19:15:11 +00:00
graphite-dependences.h
graphite-flattening.c
graphite-interchange.c Fix PR47654: Loop blocking should strip-mine at least two loops. 2011-07-05 14:50:34 +00:00
graphite-poly.c
graphite-poly.h Fix PR47654: Loop blocking should strip-mine at least two loops. 2011-07-05 14:50:34 +00:00
graphite-ppl.c
graphite-ppl.h Correct computation of max. 2011-07-05 14:50:21 +00:00
graphite-scop-detection.c
graphite-scop-detection.h
graphite-sese-to-poly.c
graphite-sese-to-poly.h
graphite.c
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-lynx.h
gthr-mipssde.h
gthr-nks.h
gthr-posix95.h
gthr-posix.c
gthr-posix.h
gthr-rtems.h
gthr-single.h
gthr-tpf.h
gthr-vxworks.h
gthr-win32.h
gthr.h
haifa-sched.c sched-int.h (struct _dep): Add member cost. 2011-07-13 10:18:32 +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 hw-doloop.c: New file. 2011-07-07 15:42:41 +00:00
hw-doloop.h hw-doloop.c: New file. 2011-07-07 15:42:41 +00:00
hwint.c
hwint.h
ifcvt.c
implicit-zee.c
incpath.c
incpath.h
init-regs.c
input.c
input.h
insn-addr.h
insn-notes.def dwarf2out: Move insn scanning out of final.c. 2011-07-07 16:42:41 -07:00
integrate.c
integrate.h
internal-fn.c
internal-fn.def
internal-fn.h
intl.c
intl.h
ipa-cp.c
ipa-inline-analysis.c
ipa-inline-transform.c
ipa-inline.c
ipa-inline.h
ipa-prop.c
ipa-prop.h
ipa-pure-const.c
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c
ipa-utils.c
ipa-utils.h
ipa.c cgraph.c (cgraph_add_to_same_comdat_group): New. 2011-07-08 23:33:44 -04: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.h
jump.c
langhooks-def.h
langhooks.c
langhooks.h
LANGUAGES
lcm.c
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-libsystem.ver
limitx.h
limity.h
lists.c
longlong.h t-avr (intfuncs16): Add _clrsbXX2. 2011-07-04 10:02:34 +00:00
loop-doloop.c explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. 2011-07-06 23:16:39 +00:00
loop-init.c
loop-invariant.c
loop-iv.c
loop-unroll.c
loop-unswitch.c
lower-subreg.c
lto-cgraph.c
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-out.c
lto-streamer-in.c dwarf2: Extract cfi creation to a new pass. 2011-07-07 17:05:57 -07:00
lto-streamer-out.c tree.h (TYPE_ARTIFICIAL): New flag. 2011-07-02 18:13:47 +00:00
lto-streamer.c
lto-streamer.h
lto-symtab.c cgraph.h (cgraph_get_node_or_alias): Removed declaration. 2011-07-12 12:29:39 +02:00
lto-wrapper.c
machmode.def
machmode.h machmode.h (HWI_COMPUTABLE_MODE_P): New macro. 2011-07-06 23:12:45 +00:00
main.c
Makefile.in Makefile.in (CRT0STUFF_T_CFLAGS): Remove. 2011-07-13 09:57:08 +00:00
matrix-reorg.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
mcf.c
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
mode-switching.c
modulo-sched.c
omega.c
omega.h
omp-builtins.def
omp-low.c
ONEWS
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c optabs.c (expand_binop): Tighten conditions for doubleword expansions. 2011-07-08 13:03:38 +00: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 (finish_options): Do not disable IPA-PTA during ltrans. 2011-06-30 14:03:25 +00:00
opts.h
output.h
params.c
params.def Add --param case-values-threshold 2011-07-05 17:45:38 +00:00
params.h
passes.c passes.c (init_optimization_passes): Add invariant motion pass after induction variable optimization. 2011-07-11 10:23:57 +00:00
plugin.c
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
postreload.c machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro. 2011-07-06 14:44:30 +00:00
predict.c
predict.def
predict.h
prefix.c
prefix.h prefix.h: Wrap up in extern "C" block. 2011-07-12 17:23:04 +00:00
pretty-print.c
pretty-print.h
print-rtl.c Dump NOTE_INSN_CFI notes. 2011-07-07 17:13:02 -07:00
print-tree.c
profile.c
profile.h
read-md.c
read-md.h
read-rtl.c
README.Portability
real.c
real.h
realmpfr.c
realmpfr.h
recog.c optabs.c (expand_binop): Tighten conditions for doubleword expansions. 2011-07-08 13:03:38 +00:00
recog.h
reg-notes.def dwarf2out: Add REG_CFA_FLUSH_QUEUE. 2011-06-30 14:04:23 -07:00
reg-stack.c
regcprop.c
reginfo.c
regmove.c machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro. 2011-07-06 14:44:30 +00:00
regrename.c
regs.h
regset.h
regstat.c
reload1.c reload1.c (choose_reload_regs): Use mode sizes to check whether an old reload register completely defines the... 2011-07-07 15:05:42 +00:00
reload.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
reload.h
reorg.c reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the forward scan as well. 2011-06-27 12:59:56 +00:00
resource.c
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def
rtl.h dwarf2out: Move insn scanning out of final.c. 2011-07-07 16:42:41 -07:00
rtlanal.c defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default. 2011-07-08 16:21:58 +00:00
rtlhooks-def.h
rtlhooks.c machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro. 2011-07-06 14:44:30 +00:00
sbitmap.c
sbitmap.h
sched-deps.c sched-int.h (struct _dep): Add member cost. 2011-07-13 10:18:32 +00:00
sched-ebb.c
sched-int.h sched-int.h (struct _dep): Add member cost. 2011-07-13 10:18:32 +00:00
sched-rgn.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
sched-vis.c
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
sese.h
simplify-rtx.c revert: simplify-rtx.c (simplify_const_binary_operation): Use the shift_truncation_mask hook instead of performing modulo by width. 2011-07-06 23:56:28 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c Add --param case-values-threshold 2011-07-05 17:45:38 +00:00
stor-layout.c optabs.c (expand_binop): Tighten conditions for doubleword expansions. 2011-07-08 13:03:38 +00:00
store-motion.c
stringpool.c
sync-builtins.def
system.h
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. 2011-07-12 14:57:28 +00:00
target.h
targhooks.c tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. 2011-07-12 14:57:28 +00:00
targhooks.h tm.texi.in (FUNCTION_ARG_PADDING): Mention TARGET_FUNCTION_ARG_ROUND_BOUNDARY. 2011-07-12 14:57:28 +00:00
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c Move ASM_COMMENT_START to defaults.h. 2011-07-09 13:18:32 -07:00
toplev.h
tracer.c
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c 07-05-2011 Razya Ladelsky <razya@il.ibm.com> 2011-07-05 13:08:01 +00:00
tree-cfgcleanup.c re PR tree-optimization/49615 (internal compiler error: verify_stmts failed / LHS in noreturn call with pointer-to-never-returning-member) 2011-07-04 12:06:17 +00:00
tree-chrec.c invoke.texi: Document -scev dump modifier. 2011-06-29 14:29:22 +00:00
tree-chrec.h
tree-complex.c
tree-data-ref.c re PR tree-optimization/46787 (Does not vectorize loop with load from scalar variable) 2011-06-30 13:27:43 +00:00
tree-data-ref.h
tree-dfa.c
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c invoke.texi: Document -scev dump modifier. 2011-06-29 14:29:22 +00:00
tree-dump.h
tree-eh.c re PR tree-optimization/49618 (When building uClibc with GCC 4.6.1 old_atexit is miscompiled) 2011-07-05 20:43:04 +02:00
tree-emutls.c
tree-flow-inline.h
tree-flow.h
tree-if-conv.c
tree-inline.c
tree-inline.h
tree-into-ssa.c re PR debug/49602 (verify_ssa failed (definition does not dominate use) with "-O2 -g") 2011-07-04 19:19:52 +02:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c
tree-mudflap.c
tree-mudflap.h
tree-nested.c
tree-nomudflap.c
tree-nrv.c
tree-object-size.c tree-object-size.c (pass_through_call): Handle BUILT_IN_ASSUME_ALIGNED. 2011-07-01 23:15:05 +02:00
tree-optimize.c
tree-outof-ssa.c
tree-parloops.c 07-05-2011 Razya Ladelsky <razya@il.ibm.com> 2011-07-05 13:08:01 +00:00
tree-pass.h dwarf2: Extract cfi creation to a new pass. 2011-07-07 17:05:57 -07:00
tree-phinodes.c
tree-predcom.c
tree-pretty-print.c tree-pretty-print.c (dump_generic_code): Print [idx]= and [idx1 ... 2011-07-01 10:21:09 +02:00
tree-pretty-print.h
tree-profile.c
tree-scalar-evolution.c invoke.texi: Document -scev dump modifier. 2011-06-29 14:29:22 +00:00
tree-scalar-evolution.h
tree-sra.c tree-sra.c (analyze_all_variable_accesses): Dump that a struture is too big for total scalarization. 2011-07-08 12:16:51 +02:00
tree-ssa-address.c Use pointer_mode for address computation. 2011-07-06 06:19:04 -07:00
tree-ssa-alias.c builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New. 2011-06-27 18:52:23 +02:00
tree-ssa-alias.h
tree-ssa-ccp.c re PR middle-end/49545 (New C++ test failures) 2011-06-29 09:42:42 +00:00
tree-ssa-coalesce.c
tree-ssa-copy.c
tree-ssa-copyrename.c tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics. 2011-07-12 14:38:41 +00:00
tree-ssa-dce.c builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New. 2011-06-27 18:52:23 +02:00
tree-ssa-dom.c re PR tree-optimization/49572 (gcc.dg/tree-ssa/20030709-2.c scan-tree-dump-times cddce2 ".rtmem" 0) 2011-06-30 19:32:23 +00:00
tree-ssa-dse.c
tree-ssa-forwprop.c tree-ssa-forwprop.c (truth_valued_ssa_name): New function. 2011-07-07 16:16:44 +02:00
tree-ssa-ifcombine.c
tree-ssa-live.c
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c re PR tree-optimization/49712 (internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048) 2011-07-12 11:13:06 +02:00
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c
tree-ssa-loop-manip.c
tree-ssa-loop-niter.c
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-math-opts.c tree-ssa-math-opts.c (execute_optimize_bswap): Search within BB from last to first. 2011-06-28 12:36:48 +02:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phiopt.c
tree-ssa-phiprop.c
tree-ssa-pre.c
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c
tree-ssa-sccvn.c re PR tree-optimization/49645 (g++.dg/tree-ssa/pr8781.C FAILs on Tru64 UNIX) 2011-07-06 14:05:54 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-structalias.c opts.c (finish_options): Do not disable IPA-PTA during ltrans. 2011-06-30 14:03:25 +00:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c
tree-ssa-uninit.c
tree-ssa.c
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-switch-conversion.c
tree-tailcall.c
tree-vect-data-refs.c re PR tree-optimization/49518 (ICE in vect_enhance_data_refs_alignment, at tree-vect-data-refs.c:1555) 2011-07-05 11:24:26 +00:00
tree-vect-generic.c
tree-vect-loop-manip.c tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten overlap check. 2011-07-13 11:17:00 +00:00
tree-vect-loop.c re PR tree-optimization/49610 (Segfault with -ftree-vectorize (or -O3)) 2011-07-03 10:14:55 +00:00
tree-vect-patterns.c tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern and original statements if necessary. 2011-06-30 06:37:41 +00:00
tree-vect-slp.c tree-vect-loop.c (vect_determine_vectorization_factor): Handle both pattern and original statements if necessary. 2011-06-30 06:37:41 +00:00
tree-vect-stmts.c re PR middle-end/49603 (177.mesa in SPEC CPU 2000 failed to build) 2011-07-01 06:56:18 +00:00
tree-vectorizer.c
tree-vectorizer.h
tree-vrp.c tree-vrp.c (simplify_conversion_using_ranges): Make sure the final type is integral. 2011-07-13 10:32:55 +00:00
tree.c cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. 2011-07-12 20:07:09 +00:00
tree.def
tree.h tree.h (categorize_ctor_elements): Remove comment. 2011-07-13 11:16:36 +00:00
treestruct.def
tsystem.h
typeclass.h
unwind-c.c
unwind-compat.c
unwind-compat.h
unwind-dw2-fde-compat.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c
unwind-dw2.h
unwind-generic.h
unwind-pe.h
unwind-sjlj.c
unwind.inc
value-prof.c
value-prof.h
var-tracking.c
varasm.c cgraph.h (cgraph_get_node_or_alias): Removed declaration. 2011-07-12 12:29:39 +02:00
varpool.c
vec.c
vec.h
vecir.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c Move ASM_COMMENT_START to defaults.h. 2011-07-09 13:18:32 -07:00
web.c
xcoff.h
xcoffout.c
xcoffout.h

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

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

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

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

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


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

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

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

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

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


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

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

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

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

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

needs to be coded in some other way.


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.