gcc/gcc
Uros Bizjak 0b013847f8 mmx.md (*vec_extract* splitters): Simplify post-reload splitter preparation statements.
* config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
	splitter preparation statements.
	* config/i386/sse.md (*vec_extract* splitters): Ditto.
	(*avx_vperm_broadcast_<mode>): Use adjust_address instead of
	adjust_address_nv.

From-SVN: r198718
2013-05-08 20:05:41 +02:00
..
ada Minor tweaks 2013-05-08 09:51:25 +00:00
c c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. 2013-04-24 16:35:17 +00:00
c-family cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
common Enable REE pass by default for AArch64 at O2 or higher 2013-04-29 15:59:19 +00:00
config mmx.md (*vec_extract* splitters): Simplify post-reload splitter preparation statements. 2013-05-08 20:05:41 +02:00
cp re PR c++/51226 ([c++0x] ICE with opaque enum and invalid template) 2013-05-08 15:22:03 +00:00
doc cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
fortran resolve.c (conformable_arrays): Avoid segfault when ar.start[i] == NULL. 2013-05-05 16:04:07 +02:00
ginclude
go
java re PR libgcj/57074 (libgcj regression on 32bit Power architecture) 2013-05-06 17:09:41 +02:00
lto Fix lto report names 2013-04-23 03:10:29 +00:00
objc
objcp
po * sv.po: Update. 2013-04-28 15:43:12 +01:00
testsuite re PR c++/51226 ([c++0x] ICE with opaque enum and invalid template) 2013-05-08 15:22:03 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog mmx.md (*vec_extract* splitters): Simplify post-reload splitter preparation statements. 2013-05-08 20:05:41 +02:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012 Fix non-ASCII characters in names. 2013-04-09 09:29:32 +02:00
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2013-05-08 00:16:44 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in re PR tree-optimization/57081 (Segmentation fault in simple_iv (tree-scalar-evolution.c:3151)) 2013-04-29 09:09:08 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c alias.c (find_base_term): Fix thinko in previous change. 2013-04-08 09:50:48 +00:00
alias.h
alloc-pool.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
alloc-pool.h
asan.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
asan.h
attribs.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
auto-inc-dec.c
basic-block.h This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
bb-reorder.c re PR middle-end/43631 (var-tracking inserts notes with non-NULL BLOCK_FOR_INSN in between basic blocks) 2013-04-16 06:24:47 +00:00
bb-reorder.h
bitmap.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
bitmap.h
bt-load.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
builtin-attrs.def
builtin-types.def
builtins.c re PR tree-optimization/57066 (std::logb(-inf) returns wrong value) 2013-04-25 15:51:57 +00:00
builtins.def calls.c (special_function_p): setjmp-like functions are leaf. 2013-05-07 13:02:36 +00:00
builtins.h
caller-save.c
calls.c calls.c (special_function_p): setjmp-like functions are leaf. 2013-05-07 13:02:36 +00:00
cfg-flags.def
cfg.c Follow-on patch to r197595 to complete the replacement of truncating divides in... 2013-05-02 13:20:47 +00:00
cfganal.c
cfgbuild.c First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
cfgcleanup.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
cfgexpand.c cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
cfghooks.c re PR tree-optimization/57122 (ICE in verify_loop_structure, at cfgloop.c:1647 (loop n’s latch does not have an edge to its header !)) 2013-04-30 15:03:58 +00:00
cfghooks.h
cfgloop.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloop.h function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloopanal.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloopmanip.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgrtl.c cfgrtl.c (cfg_layout_merge_blocks): Revert r184005... 2013-04-16 06:26:18 +00:00
cgraph.c re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 12:59:21 +00:00
cgraph.h re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 12:59:21 +00:00
cgraphbuild.c
cgraphclones.c re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 12:59:21 +00:00
cgraphunit.c
cif-code.def cif-code.def (OVERWRITABLE): Correct the comment for overwritable function. 2013-04-10 09:22:04 +00:00
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
combine.c combine.c (combine_simplify_rtx): If nonzero_bits on op shows all bits zero in mode of a lowpart subreg, return zero. 2013-05-04 14:41:52 +02:00
common.opt cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
compare-elim.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
conditions.h
config.build
config.gcc config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default. 2013-05-05 20:47:24 +00:00
config.host
config.in re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) 2013-05-08 09:22:14 -04:00
configure re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) 2013-05-08 09:22:14 -04:00
configure.ac re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) 2013-05-08 09:22:14 -04:00
convert.c
convert.h
coretypes.h coretypes.h (gimple_stmt_iterator): Add struct to make compatible with C. 2013-04-23 09:05:31 +00:00
coverage.c coverage.c (coverage_obj_init): Move the construction of gcov constructor to 2013-05-04 01:26:52 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
cse.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
cselib.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
data-streamer.c
data-streamer.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h
df-core.c df-core.c (df_find_def): Compare register numbers. 2013-04-12 17:53:55 +00:00
df-problems.c
df-scan.c lower-subreg.c (resolve_simple_move): If called self-recursive... 2013-04-17 23:05:59 +00:00
df.h
dfp.c
dfp.h
diagnostic-color.c Makefile.in (toplev.o): Depend on diagnostic-color.h. 2013-04-26 08:55:56 +02:00
diagnostic-color.h opts.c: Include diagnostic-color.h. 2013-04-12 08:20:36 +02:00
diagnostic-core.h opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
diagnostic.c diagnostic.h (file_name_as_prefix): Add context argument. 2013-04-26 08:54:54 +02:00
diagnostic.def opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
diagnostic.h diagnostic.h (file_name_as_prefix): Add context argument. 2013-04-26 08:54:54 +02:00
dojump.c
dominance.c
domwalk.c
domwalk.h
double-int.c double-int.h (rshift): New overload. 2013-05-07 11:26:58 +00:00
double-int.h double-int.h (rshift): New overload. 2013-05-07 11:26:58 +00:00
dse.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
dumpfile.c
dumpfile.h
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
dwarf2out.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
dwarf2out.h
emit-rtl.c emit-rtl.c (reset_insn_used_flags): New function. 2013-04-18 08:28:10 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
except.h
exec-tool.in
explow.c explow.c (plus_constant): Pass "mode" to immed_double_int_const. 2013-04-30 16:15:55 +00:00
expmed.c expmed.c (init_expmed_rtl): Remove unused fields reg_fld... 2013-05-06 22:26:53 +00:00
expmed.h
expr.c re PR debug/57184 (ICE in expand_expr_real_1, at expr.c:10478) 2013-05-07 10:28:01 +02:00
expr.h
file-find.c
file-find.h
final.c Support {, } and | in assembly output 2013-05-06 12:35:44 -07:00
fixed-value.c double-int.h (lshift): New overload without precision and arith argument. 2013-05-03 11:09:59 +00:00
fixed-value.h
flag-types.h
flags.h
fold-const.c tree.c (integer_all_onesp): Test that both components are all 1s. 2013-05-06 21:14:59 +00:00
fp-test.c
function.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
function.h function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
fwprop.c
gcc-ar.c
gcc-plugin.h
gcc.c cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
gcc.h
gcov-dump.c This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-io.c This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-io.h This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-iov.c
gcov.c
gcse.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
gcse.h
gdbinit.in
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.h
genhooks.c
genmddeps.c
genmddump.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c 013-05-06 Graham Stott <grahams@btinternet.com> 2013-05-06 22:08:56 +00:00
gensupport.h
ggc-common.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
ggc-internal.h
ggc-none.c
ggc-page.c
ggc.h
gimple-fold.c [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
gimple-fold.h
gimple-iterator.c
gimple-low.c
gimple-pretty-print.c gimple-pretty-print.c (debug_gimple_stmt): Do not print extra newline. 2013-04-08 12:35:26 +00:00
gimple-pretty-print.h
gimple-ssa-strength-reduction.c gimple-ssa-strength-reduction.c (count_candidates): Change return value to int. 2013-05-08 17:05:59 +00:00
gimple-streamer-in.c This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
gimple-streamer-out.c
gimple-streamer.h
gimple.c Simplified GIMPLE IL builder functions. 2013-04-18 10:29:54 -04:00
gimple.def
gimple.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
gimplify.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
glimits.h
godump.c
graph.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
graph.h
graphds.c graphds.h (struct graph): Add obstack member. 2013-05-02 13:59:38 +00:00
graphds.h graphds.h (struct graph): Add obstack member. 2013-05-02 13:59:38 +00:00
graphite-blocking.c
graphite-clast-to-gimple.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
graphite-clast-to-gimple.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-dependences.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-htab.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-interchange.c
graphite-optimize-isl.c
graphite-poly.c
graphite-poly.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-scop-detection.c
graphite-scop-detection.h
graphite-sese-to-poly.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
graphite-sese-to-poly.h
graphite.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
hard-reg-set.h
hash-table.c
hash-table.h This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
highlev-plugin-common.h
hooks.c [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
hooks.h [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h
hwint.c hwint.c (sext_hwi, zext_hwi): New functions. 2013-04-03 20:24:07 +00:00
hwint.h hwint.c (sext_hwi, zext_hwi): New functions. 2013-04-03 20:24:07 +00:00
ifcvt.c ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well. 2013-04-12 05:38:27 +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 re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) 2013-05-08 09:22:14 -04:00
ipa-cp.c re PR middle-end/56988 (ipa-cp incorrectly propagates a field of an aggregate) 2013-05-02 16:03:02 +02:00
ipa-inline-analysis.c Follow-on patch to r197595 to complete the replacement of truncating divides in... 2013-05-02 13:20:47 +00:00
ipa-inline-transform.c
ipa-inline.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
ipa-inline.h
ipa-prop.c re PR middle-end/56988 (ipa-cp incorrectly propagates a field of an aggregate) 2013-05-02 16:03:02 +02:00
ipa-prop.h re PR middle-end/56988 (ipa-cp incorrectly propagates a field of an aggregate) 2013-05-02 16:03:02 +02:00
ipa-pure-const.c
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
ipa-utils.c
ipa-utils.h
ipa.c re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 12:59:21 +00:00
ira-build.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-color.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
ira-conflicts.c
ira-costs.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
ira-emit.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-int.h
ira-lives.c
ira.c ira.c (update_equiv_regs): Add insn having equiv memory even if it is not lhs of the insn. 2013-05-07 19:29:05 +00:00
ira.h
is-a.h
jump.c mips.c: Include tree-pass.h. 2013-05-06 19:02:12 +00:00
langhooks-def.h
langhooks.c diagnostic.h (file_name_as_prefix): Add context argument. 2013-04-26 08:54:54 +02:00
langhooks.h
lcm.c
libfuncs.h
limitx.h
limity.h
lists.c
loop-doloop.c
loop-init.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
loop-invariant.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
loop-iv.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
loop-unroll.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
loop-unswitch.c Follow-on patch to r197595 to complete the replacement of truncating divides in... 2013-05-02 13:20:47 +00:00
lower-subreg.c lower-subreg.c (resolve_simple_move): If called self-recursive... 2013-04-17 23:05:59 +00:00
lower-subreg.h
lra-assigns.c lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p to check the register content is equal or not. 2013-04-23 17:38:59 +00:00
lra-coalesce.c [multiple changes] 2013-04-19 03:57:22 +00:00
lra-constraints.c ira.c (update_equiv_regs): Add insn having equiv memory even if it is not lhs of the insn. 2013-05-07 19:29:05 +00:00
lra-eliminations.c ira.c (update_equiv_regs): Add insn having equiv memory even if it is not lhs of the insn. 2013-05-07 19:29:05 +00:00
lra-int.h lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p to check the register content is equal or not. 2013-04-23 17:38:59 +00:00
lra-lives.c
lra-spills.c rtl.h (struct rtx_def): Add comment for field jump. 2013-04-26 18:11:35 +00:00
lra.c rtl.h (struct rtx_def): Add comment for field jump. 2013-04-26 18:11:35 +00:00
lra.h
lto-cgraph.c re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 12:59:21 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-out.c
lto-streamer-in.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
lto-streamer-out.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
lto-streamer.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
lto-streamer.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
lto-symtab.c re PR lto/54095 (Unnecessary static variable renaming) 2013-05-08 11:00:55 +00:00
lto-wrapper.c
machmode.def
machmode.h
main.c
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c re PR middle-end/57089 (ICE in verify_loop_structure, at cfgloop.c:1647) 2013-04-29 11:31:33 +00:00
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c
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 opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
opts.h
output.h
params.c
params.def re PR tree-optimization/48184 (ICE: SIGFPE (division by zero) in compute_alignments () at final.c:731 with --param align-threshold=0 on basic code) 2013-04-11 16:20:26 +00:00
params.h
passes.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
plugin.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
postreload.c
predict.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
pretty-print.h opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
print-rtl.c
print-tree.c
profile.c First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
profile.h This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
read-md.c
read-md.h
read-rtl.c
real.c
real.h
realmpfr.c
realmpfr.h
recog.c rtl.h (struct rtx_def): Add comment for field jump. 2013-04-26 18:11:35 +00:00
recog.h
ree.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
reg-notes.def rtl.texi (sequence): Rewrite documentation to match the current use of SEQUENCE rtl objects. 2013-04-08 19:59:57 +00:00
reg-stack.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
regcprop.c re PR rtl-optimization/57003 (gcc breaks -O2 optimization with Wine(64) - links/info/bisect of commits included) 2013-04-25 23:49:22 +02:00
reginfo.c
regmove.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload.c
reload.h
reload1.c
reorg.c mips.c: Include tree-pass.h. 2013-05-06 19:02:12 +00:00
resource.c reorg.c (fill_simple_delay_slots): Reindent block of code. 2013-04-14 09:46:02 +00:00
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def rtl.texi (sequence): Rewrite documentation to match the current use of SEQUENCE rtl objects. 2013-04-08 19:59:57 +00:00
rtl.h mips.c: Include tree-pass.h. 2013-05-06 19:02:12 +00:00
rtlanal.c
rtlhooks-def.h
rtlhooks.c
sanitizer.def
sbitmap.c
sbitmap.h
sched-deps.c sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn notes, they are emitted only just before final. 2013-04-13 18:08:19 +00:00
sched-ebb.c
sched-int.h sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn notes, they are emitted only just before final. 2013-04-13 18:08:19 +00:00
sched-rgn.c re PR bootstrap/57154 (Bootstrap broken for powerpc64-unknown-linux-gnu) 2013-05-03 16:48:24 +00:00
sched-vis.c sched-vis.c (print_pattern): Print SEQUENCE of insns as insns. 2013-04-09 15:02:41 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c emit-rtl.c (remove_insn): Do not call df_insn_delete here. 2013-04-13 10:04:09 +00:00
sel-sched-ir.h re PR rtl-optimization/56957 (ICE in add_insn_after, at emit-rtl.c:3783) 2013-04-30 14:55:52 +04:00
sel-sched.c re PR rtl-optimization/56957 (ICE in add_insn_after, at emit-rtl.c:3783) 2013-04-30 14:55:52 +04:00
sel-sched.h
sese.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
sese.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
simplify-rtx.c
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c
statistics.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
statistics.h
stmt.c First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
stor-layout.c stor-layout.c (finalize_size_functions): Allocate a structure and reset cfun before dumping the functions. 2013-04-28 17:29:01 +00:00
store-motion.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
symtab.c
sync-builtins.def
system.h
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
target.h Improve cstore code generation on 64-bit sparc. 2013-04-10 12:41:57 -07:00
targhooks.c Improve cstore code generation on 64-bit sparc. 2013-04-10 12:41:57 -07:00
targhooks.h Improve cstore code generation on 64-bit sparc. 2013-04-10 12:41:57 -07:00
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c Makefile.in (toplev.o): Depend on diagnostic-color.h. 2013-04-26 08:55:56 +02:00
toplev.h
tracer.c
trans-mem.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
trans-mem.h
tree-affine.c
tree-affine.h
tree-browser.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-browser.def
tree-call-cdce.c
tree-cfg.c re PR middle-end/57147 (setjmp call and if body wrongly elided (function runs off early end)) 2013-05-06 11:27:29 +00:00
tree-cfgcleanup.c re PR middle-end/57147 (setjmp call and if body wrongly elided (function runs off early end)) 2013-05-06 11:27:29 +00:00
tree-chrec.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-chrec.h
tree-complex.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-data-ref.c
tree-data-ref.h
tree-dfa.c double-int.h (lshift): New overload without precision and arith argument. 2013-05-03 11:09:59 +00:00
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c re PR tree-optimization/57190 (verify_ssa failed: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set) 2013-05-07 11:23:39 +00:00
tree-emutls.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-flow-inline.h tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF. 2013-04-03 12:54:50 +00:00
tree-flow.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-hasher.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-if-conv.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-inline.c calls.c (special_function_p): setjmp-like functions are leaf. 2013-05-07 13:02:36 +00:00
tree-inline.h
tree-into-ssa.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-mudflap.c
tree-mudflap.h
tree-nested.c
tree-nomudflap.c
tree-nrv.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-object-size.c
tree-optimize.c This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
tree-outof-ssa.c
tree-parloops.c re PR tree-optimization/57185 (ICE: Segmentation fault in add_field_for_reduction with -ftree-parallelize-loops=2 -fipa-pta) 2013-05-06 15:06:41 +00:00
tree-pass.h tree-pass.h (TODO_do_not_ggc_collect): New. 2013-04-12 09:50:28 +00:00
tree-phinodes.c
tree-predcom.c
tree-pretty-print.c
tree-pretty-print.h
tree-profile.c
tree-scalar-evolution.c tree-scalar-evolution.c (scev_info_hasher): Remove. 2013-05-02 12:23:20 +00:00
tree-scalar-evolution.h function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-sra.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-address.c
tree-ssa-alias.c double-int.h (lshift): New overload without precision and arith argument. 2013-05-03 11:09:59 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-ssa-coalesce.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-ssa-copy.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-dse.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-ssa-forwprop.c tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function. 2013-04-21 20:59:00 -06:00
tree-ssa-ifcombine.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-ssa-live.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-loop-im.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-loop-ivcanon.c re PR tree-optimization/56817 (ICE in hide_evolution_in_other_loops_than_loop) 2013-04-03 13:41:13 +00:00
tree-ssa-loop-ivopts.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-loop-manip.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-loop-niter.c re PR tree-optimization/57200 (aggressive-loop-optimizations notes appear even when warning itself is suppressed) 2013-05-08 09:09:52 +00:00
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-math-opts.c re PR tree-optimization/57027 (ICE in gimple_assign_rhs_code, at gimple.h:2022) 2013-05-03 12:18:37 +01:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phiopt.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-ssa-phiprop.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-ssa-pre.c re PR tree-optimization/56718 (Early inlining prevents type based devirtualization) 2013-04-19 14:00:27 +02:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-ssa-sccvn.c double-int.h (rshift): New overload. 2013-05-07 11:26:58 +00:00
tree-ssa-sccvn.h This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-ssa-sink.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-ssa-strlen.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-structalias.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-ssa-tail-merge.c Preserve loops in tail-merge 2013-04-29 13:08:24 +00:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-ssa-uninit.c re PR tree-optimization/57149 (wrong -Wmaybe-uninitialized warning with -Os) 2013-05-07 12:30:13 +02:00
tree-ssa.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c
tree-streamer-out.c
tree-streamer.c tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New. 2013-04-17 11:22:07 +00:00
tree-streamer.h
tree-switch-conversion.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-tailcall.c
tree-vect-data-refs.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-vect-generic.c
tree-vect-loop-manip.c First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
tree-vect-loop.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-vect-patterns.c
tree-vect-slp.c re PR tree-optimization/56270 (loop over array of struct float causes compiler error: segmentation fault) 2013-04-19 13:37:12 +00:00
tree-vect-stmts.c re PR tree-optimization/56270 (loop over array of struct float causes compiler error: segmentation fault) 2013-04-19 13:37:12 +00:00
tree-vectorizer.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-vectorizer.h This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-vrp.c re PR tree-optimization/57411 (ICE: verify_ssa failed: definition in block 4 does not dominate use in block 11 with -fno-tree-dce -ftree-vectorize) 2013-05-03 10:35:04 -06:00
tree.c tree.c (integer_all_onesp): Test that both components are all 1s. 2013-05-06 21:14:59 +00:00
tree.def
tree.h tree.c (integer_all_onesp): Test that both components are all 1s. 2013-05-06 21:14:59 +00:00
treestruct.def
tsan.c re PR sanitizer/57104 (ICE: in expand_expr_addr_expr_1, at expr.c:7594 with -fsanitize=thread and hardreg variable) 2013-04-30 10:52:39 +02:00
tsan.h
tsystem.h
typeclass.h
valtrack.c
valtrack.h
value-prof.c Remove the trayed debug_gimple_stmt 2013-04-30 08:53:03 -07:00
value-prof.h
var-tracking.c This patch is part of a consolodation of the hash_table patches to the... 2013-04-26 00:30:32 +00:00
varasm.c
varpool.c ipa.c (cgraph_externally_visible_p, [...]): Drop aliased parameter. 2013-04-09 22:45:38 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

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.