gcc/gcc
Richard Guenther 3b38fb7c7d value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect the case we need to split the edge and not the block.
2010-12-02  Richard Guenther  <rguenther@suse.de>

	* value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
	the case we need to split the edge and not the block.

From-SVN: r167376
2010-12-02 16:21:30 +00:00
..
ada common.opt (flag_stack_check): New Variable entry. 2010-12-01 13:58:52 +00:00
c-family In gcc/c-family/: 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> 2010-11-30 21:55:39 +00:00
config DFA model for Core 2 and Core i7 scheduling. 2010-12-02 15:48:36 +00:00
cp In gcc/objc/: 2010-12-02 Nicola Pero <nicola.pero@meta-innovation.com> 2010-12-02 00:25:42 +00:00
doc rs6000.c (rs6000_reg_live_or_pic_offset_p): Check TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM. 2010-11-30 01:47:54 +00:00
fortran re PR fortran/46753 (ICE: OpenMP - in extract_omp_for_data, at omp-low.c:335) 2010-12-02 15:37:20 +01:00
ginclude
java common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
lto hwint.c: New. 2010-11-30 16:36:19 +00:00
objc In gcc/objc/: 2010-12-02 Nicola Pero <nicola.pero@meta-innovation.com> 2010-12-02 00:25:42 +00:00
objcp In gcc/objc/: 2010-11-23 Nicola Pero <nicola.pero@meta-innovation.com> 2010-11-23 09:47:07 +00:00
po * es.po: Update. 2010-11-29 23:21:08 +00:00
testsuite re PR c++/44871 (Invalid type mismatches while merging C and C++ sources) 2010-12-02 12:24:46 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
auto-inc-dec.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
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 tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. 2010-12-01 16:45:36 +00:00
builtins.def tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. 2010-12-01 16:45:36 +00:00
builtins.h
c-aux-info.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
c-config-lang.in
c-convert.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
c-decl.c In gcc/c-family/: 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> 2010-11-30 21:55:39 +00:00
c-errors.c
c-lang.c
c-lang.h
c-objc-common.c
c-objc-common.h
c-parser.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
c-tree.h
c-typeck.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
caller-save.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
calls.c
cfg.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cfganal.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cfgbuild.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cfgcleanup.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cfgexpand.c re PR middle-end/46629 (Failed to build 200.sixtrack in SPEC CPU 2000) 2010-11-24 09:57:37 +01:00
cfghooks.c
cfghooks.h
cfglayout.c
cfglayout.h
cfgloop.c
cfgloop.h
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c
cgraph.c re PR tree-optimization/46560 (libstdc++ execute FAILs with -flto) 2010-11-26 14:39:25 +00:00
cgraph.h tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro. 2010-11-23 16:06:37 +00:00
cgraphbuild.c
cgraphunit.c cgraphunit.c (process_function_and_variable_attributes): Fix cut'n'pasteo. 2010-11-30 16:52:47 +00:00
ChangeLog value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect the case we need to split the edge and not the block. 2010-12-02 16:21:30 +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.dataflow
ChangeLog.graphite Fix unused warnings. 2010-12-01 17:25:39 +00:00
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def
collect2-aix.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
collect2-aix.h
collect2.c * collect2.c (main): Do not imply verbose output with LTO and linker plugin. 2010-11-29 16:58:59 +00:00
collect2.h
combine-stack-adj.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
combine.c hwint.c: New. 2010-11-30 16:36:19 +00:00
common.opt common.opt (flag_stack_check): New Variable entry. 2010-12-01 13:58:52 +00:00
conditions.h
config.build
config.gcc * config.gcc (sparc*-*-*): Reorder. 2010-11-23 09:32:07 +00:00
config.host
config.in system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
configure system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
configure.ac system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
convert.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro. 2010-11-23 16:06:37 +00:00
coverage.c
coverage.h
cppbuiltin.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cppbuiltin.h
cppdefault.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
cppdefault.h
cppspec.c
crtstuff.c
cse.c
cselib.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2010-12-02 00:20:23 +00:00
dbgcnt.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ddg.h
debug.c
debug.h
defaults.h system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
DEV-PHASE
df-core.c
df-problems.c
df-scan.c re PR bootstrap/44970 (Revision 162270 failed to bootstrap) 2010-11-22 16:20:16 +00:00
df.h re PR bootstrap/44970 (Revision 162270 failed to bootstrap) 2010-11-22 16:20:16 +00:00
dfp.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
dfp.h
diagnostic-core.h diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c
dominance.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
domwalk.c
domwalk.h
double-int.c hwint.c: New. 2010-11-30 16:36:19 +00:00
double-int.h
dse.c
dse.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c Add addresses of DIEs to debug_dwarf_die 2010-11-29 17:29:41 +01:00
dwarf2out.h
ebitmap.c
ebitmap.h
emit-rtl.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
emit-rtl.h
emutls.c
errors.c
errors.h
et-forest.c
et-forest.h system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
except.c target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
except.h
exec-tool.in Check and export LT_RCU_$id instead of LT_RCU. 2010-11-29 14:18:35 -08:00
explow.c hwint.c: New. 2010-11-30 16:36:19 +00:00
expmed.c hwint.c: New. 2010-11-30 16:36:19 +00:00
expmed.h
expr.c target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
expr.h
final.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
fixed-value.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
fixed-value.h
flag-types.h common.opt (user_vect_verbosity_level): New Variable entry. 2010-11-24 13:28:38 +00:00
flags.h common.opt (flag_stack_check): New Variable entry. 2010-12-01 13:58:52 +00:00
fold-const.c hwint.c: New. 2010-11-30 16:36:19 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
function.h tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro. 2010-11-23 16:06:37 +00:00
fwprop.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
gbl-ctors.h
gcc-plugin.h Include coretypes.h in gcc-plugin.h & Add hard-reg-set.h in FUNCTION_H. 2010-11-30 07:13:29 +00:00
gcc.c re PR driver/44986 (-fuse-linker-plugin -save-temps gives resolution file base name of last argument) 2010-11-30 10:00:51 +00: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.c
genattrtab.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genconfig.c
genconstants.c
genemit.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genenums.c
genextract.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c gengtype.c (enum typekind, [...]): Move to gengtype.h. 2010-11-23 15:13:12 +00:00
gengtype-state.c gengtype-state.c (read_state_structures): Initialize "previous". 2010-11-25 22:50:53 +01:00
gengtype.c gentype-state.c: Add new file. 2010-11-25 19:03:27 +00:00
gengtype.h gentype-state.c: Add new file. 2010-11-25 19:03:27 +00:00
genhooks.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
genmddeps.c
genmodes.c
genmultilib
genopinit.c
genoutput.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genpeep.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genpreds.c hwint.c: New. 2010-11-30 16:36:19 +00:00
genrecog.c hwint.c: New. 2010-11-30 16:36:19 +00:00
gensupport.c
gensupport.h
ggc-common.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ggc-internal.h
ggc-none.c ggc-zone.c (ggc_pch_read): Fix conditional compilation. 2010-11-30 04:12:56 +00:00
ggc-page.c hwint.c: New. 2010-11-30 16:36:19 +00:00
ggc-zone.c hwint.c: New. 2010-11-30 16:36:19 +00:00
ggc.h
gimple-fold.c gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p. 2010-11-27 14:32:47 +00:00
gimple-iterator.c
gimple-low.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
gimple-pretty-print.c gimple-pretty-print.c (dump_bb_header): Add check for cfun. 2010-11-22 19:01:20 +00:00
gimple-pretty-print.h
gimple.c re PR c++/44871 (Invalid type mismatches while merging C and C++ sources) 2010-12-02 12:24:46 +00:00
gimple.def
gimple.h re PR tree-optimization/46621 (gimple.h includes tm.h) 2010-11-29 00:50:04 +00:00
gimplify.c tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. 2010-12-01 16:45:36 +00:00
glimits.h
godump.c
graph.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
graph.h
graphds.c
graphds.h
graphite-blocking.c Add a stride parameter to scop_do_strip_mine. 2010-12-01 17:24:37 +00:00
graphite-clast-to-gimple.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
graphite-clast-to-gimple.h
graphite-cloog-compat.h
graphite-cloog-util.c
graphite-cloog-util.h
graphite-dependences.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
graphite-dependences.h
graphite-flattening.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
graphite-interchange.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
graphite-poly.c Postpone the rewrite out of SSA to the end of the translation to polyhedral representation. 2010-12-01 17:25:10 +00:00
graphite-poly.h Postpone the rewrite out of SSA to the end of the translation to polyhedral representation. 2010-12-01 17:25:10 +00:00
graphite-ppl.c
graphite-ppl.h
graphite-scop-detection.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c Fix unused warnings. 2010-12-01 17:25:39 +00:00
graphite-sese-to-poly.h Postpone the rewrite out of SSA to the end of the translation to polyhedral representation. 2010-12-01 17:25:10 +00:00
graphite.c Postpone the rewrite out of SSA to the end of the translation to polyhedral representation. 2010-12-01 17:25:10 +00:00
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.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-solaris.h
gthr-tpf.h
gthr-vxworks.h
gthr-win32.h
gthr.h
haifa-sched.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
hard-reg-set.h
highlev-plugin-common.h
hooks.c target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
hooks.h target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.c hwint.c: New. 2010-11-30 16:36:19 +00:00
hwint.h hwint.c: New. 2010-11-30 16:36:19 +00:00
ifcvt.c hwint.c: New. 2010-11-30 16:36:19 +00:00
implicit-zee.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
incpath.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
incpath.h
init-regs.c
input.c
input.h
insn-addr.h
insn-notes.def
integrate.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
integrate.h
intl.c intl.c: Don't include tm.h. 2010-12-01 17:29:12 +00:00
intl.h
ipa-cp.c
ipa-inline.c
ipa-prop.c
ipa-prop.h
ipa-pure-const.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h
ipa-reference.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ipa-reference.h
ipa-split.c
ipa-struct-reorg.c hwint.c: New. 2010-11-30 16:36:19 +00:00
ipa-struct-reorg.h
ipa-type-escape.c gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p. 2010-11-27 14:32:47 +00:00
ipa-type-escape.h
ipa-utils.c
ipa-utils.h
ipa.c cgraphunit.c (process_function_and_variable_attributes): Mark dllexport-ed function/variables as needed. 2010-11-25 13:30:07 +01:00
ira-build.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ira-color.c hwint.c: New. 2010-11-30 16:36:19 +00:00
ira-conflicts.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ira-costs.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ira-emit.c
ira-int.h
ira-lives.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
ira.c
ira.h
jump.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lambda-code.c
lambda-mat.c
lambda-trans.c
lambda.h
langhooks-def.h
langhooks.c
langhooks.h
LANGUAGES
lcm.c
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-libsystem.ver
libgcc-std.ver
libgcov.c
limitx.h
limity.h
lists.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
longlong.h
loop-doloop.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
loop-init.c
loop-invariant.c
loop-iv.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
loop-unroll.c
loop-unswitch.c
lower-subreg.c
lto-cgraph.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-compress.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-compress.h
lto-opts.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-section-in.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-section-out.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-streamer-in.c lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p. 2010-11-24 15:42:27 +00:00
lto-streamer-out.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-streamer.c
lto-streamer.h lto-streamer.h (LTO_major_version): Bump to 2. 2010-12-02 12:27:57 +00:00
lto-symtab.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
lto-wrapper.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
machmode.def
machmode.h
main.c
Makefile.in intl.c: Don't include tm.h. 2010-12-01 17:29:12 +00:00
matrix-reorg.c hwint.c: New. 2010-11-30 16:36:19 +00:00
mcf.c
mips-tdump.c
mips-tfile.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
mkconfig.sh
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
mode-switching.c
modulo-sched.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c hwint.c: New. 2010-11-30 16:36:19 +00:00
ONEWS
opt-functions.awk options.texi (Enum, EnumValue): Document new record types. 2010-11-26 23:18:28 +00:00
opt-gather.awk
opt-include.awk
optabs.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
optabs.h
optc-gen.awk options.texi (Enum, EnumValue): Document new record types. 2010-11-26 23:18:28 +00:00
opth-gen.awk options.texi (Enum, EnumValue): Document new record types. 2010-11-26 23:18:28 +00:00
opts-common.c options.texi (Enum, EnumValue): Document new record types. 2010-11-26 23:18:28 +00:00
opts-diagnostic.h
opts-global.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
opts.c * opts.c: Expand comment on tm.h include. 2010-12-01 16:01:09 +00:00
opts.h options.texi (Enum, EnumValue): Document new record types. 2010-11-26 23:18:28 +00:00
output.h common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
params.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
params.def revert accidentally committed changes 2010-11-24 23:32:29 +00:00
params.h
passes.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
plugin.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
postreload.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
predict.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-tree.c
profile.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c
README.Portability
real.c hwint.c: New. 2010-11-30 16:36:19 +00:00
real.h
realmpfr.c
realmpfr.h
recog.c hwint.c: New. 2010-11-30 16:36:19 +00:00
recog.h
reg-notes.def
reg-stack.c
regcprop.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
reginfo.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
regmove.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
regrename.c
regs.h
regset.h
regstat.c
reload1.c revert accidentally committed changes 2010-11-24 23:32:29 +00:00
reload.c hwint.c: New. 2010-11-30 16:36:19 +00:00
reload.h
reorg.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
resource.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def
rtl.h common.opt (initial_max_fld_align, [...]): New Variable entries. 2010-11-24 00:54:26 +00:00
rtlanal.c hwint.c: New. 2010-11-30 16:36:19 +00:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c
sbitmap.h
sched-deps.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sched-ebb.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sched-int.h
sched-rgn.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sched-vis.c
sdbout.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sdbout.h
sel-sched-dump.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sel-sched-dump.h
sel-sched-ir.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
sel-sched-ir.h
sel-sched.c
sel-sched.h
sese.c LHS cannot be an ADDR_EXPR. 2010-12-01 17:25:20 +00:00
sese.h Postpone the rewrite out of SSA to the end of the translation to polyhedral representation. 2010-12-01 17:25:10 +00:00
simplify-rtx.c hwint.c: New. 2010-11-30 16:36:19 +00:00
sparseset.c
sparseset.h system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
stor-layout.c hwint.c: New. 2010-11-30 16:36:19 +00:00
store-motion.c
stringpool.c
sync-builtins.def
system.h system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
target-def.h
target-globals.c
target-globals.h
target.def target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
target.h
targhooks.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
targhooks.h common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
timevar.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
timevar.def
timevar.h
tlink.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
toplev.c common.opt (flag_stack_check): New Variable entry. 2010-12-01 13:58:52 +00:00
toplev.h common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
tracer.c
tree-affine.c re PR lto/46664 (Failed to build 481.wrf in SPEC CPU 2006 with LTO) 2010-11-26 12:42:41 +00:00
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
tree-cfgcleanup.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-data-ref.c
tree-data-ref.h
tree-dfa.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
tree-dump.h
tree-eh.c
tree-emutls.c
tree-flow-inline.h
tree-flow.h
tree-if-conv.c
tree-inline.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
tree-inline.h
tree-into-ssa.c
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c
tree-loop-linear.c
tree-mudflap.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-mudflap.h
tree-nested.c bootstrap-lto.mk (BOOT_ADAFLAGS): Delete. 2010-11-27 15:53:23 +00:00
tree-nomudflap.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-nrv.c
tree-object-size.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-optimize.c
tree-outof-ssa.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-parloops.c
tree-pass.h
tree-phinodes.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-predcom.c
tree-pretty-print.c
tree-pretty-print.h
tree-profile.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-scalar-evolution.c
tree-scalar-evolution.h
tree-sra.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-address.c
tree-ssa-alias.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-coalesce.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-copy.c tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops. 2010-11-26 16:51:39 +00:00
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c
tree-ssa-dse.c
tree-ssa-forwprop.c
tree-ssa-ifcombine.c
tree-ssa-live.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c
tree-ssa-loop-manip.c
tree-ssa-loop-niter.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-ssa-loop-prefetch.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-loop-unswitch.c
tree-ssa-loop.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-math-opts.c re PR tree-optimization/46722 (Missed fma for x*x + y) 2010-11-30 16:55:35 +00:00
tree-ssa-operands.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
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 tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work twice. 2010-11-23 09:42:41 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-structalias.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c
tree-ssa-uninit.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
tree-ssa.c
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-switch-conversion.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
tree-tailcall.c target.def (supports_split_stack, [...]): Take gcc_options parameters. 2010-11-25 13:16:03 +00:00
tree-vect-data-refs.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-vect-generic.c
tree-vect-loop-manip.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-vect-loop.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-vect-patterns.c re PR tree-optimization/46663 (ICE: SIGSEGV in vect_recog_pow_pattern (gimple.h:2055) with -O -fexceptions -ftree-vectorize) 2010-12-02 11:47:12 +00:00
tree-vect-slp.c
tree-vect-stmts.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree-vectorizer.c common.opt (user_vect_verbosity_level): New Variable entry. 2010-11-24 13:28:38 +00:00
tree-vectorizer.h common.opt (user_vect_verbosity_level): New Variable entry. 2010-11-24 13:28:38 +00:00
tree-vrp.c hwint.c: New. 2010-11-30 16:36:19 +00:00
tree.c tree.c (build_common_builtin_nodes): Do not initialize BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT. 2010-12-01 16:45:36 +00:00
tree.def
tree.h common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46: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.c (gimple_ic): Use stmt_ends_bb_p to detect the case we need to split the edge and not the block. 2010-12-02 16:21:30 +00:00
value-prof.h
var-tracking.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
varasm.c re PR middle-end/46674 (Weak alias is mistakenly optimized away) 2010-12-02 04:09:58 +00:00
varpool.c
vec.c
vec.h
vecir.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. 2010-11-29 14:09:41 +00:00
web.c diagnostic-core.h: Include bversion.h. 2010-11-30 11:41:24 +00:00
xcoff.h
xcoffout.c common.opt (main_input_filename, [...]): New Variable entries. 2010-12-01 13:46:36 +00:00
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.


free and realloc
----------------

Some implementations crash upon attempts to free or realloc the null
pointer.  Thus if mem might be null, you need to write

  if (mem)
    free (mem);


Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


Suffixes on Integer Constants
-----------------------------

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (int a, int b)
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending.

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.