gcc/gcc
Alan Lawrence 20924b4c5b [AArch64] Temporarily remove aarch64_gimple_fold_builtin code for reduction operations
* config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
	* config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
	Remove using preprocessor directives.

From-SVN: r216734
2014-10-27 12:28:30 +00:00
..
ada * gcc-interface/utils.c (create_subprog_decl): Adjust condition. 2014-10-27 11:42:01 +00:00
c In cp/error.c... 2014-10-26 21:21:58 +00:00
c-family In cp/error.c... 2014-10-26 21:21:58 +00:00
common remove score-* support 2014-10-04 14:53:41 +00:00
config [AArch64] Temporarily remove aarch64_gimple_fold_builtin code for reduction operations 2014-10-27 12:28:30 +00:00
cp In cp/error.c... 2014-10-26 21:21:58 +00:00
doc In cp/error.c... 2014-10-26 21:21:58 +00:00
fortran check.c (check_co_collective): Reject coindexed A args. 2014-10-24 22:52:41 +02:00
ginclude C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
go compiler: Use MPC library for complex numbers. 2014-10-24 05:01:50 +00:00
java gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
lto lto-object.c (lto_obj_begin_section): In the event that pointer sizes aren't powers of two... 2014-10-16 17:06:34 -04:00
objc gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
objcp
po
testsuite utils.c (create_var_decl_1): For a variable declared in the unit... 2014-10-27 11:33:21 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog [AArch64] Temporarily remove aarch64_gimple_fold_builtin code for reduction operations 2014-10-27 12:28: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-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2014-10-27 00:16:26 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV) to genmatch BUILD_LIBS instead. 2014-10-24 11:09:30 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c New syntax for -fsanitize-recover. 2014-10-22 11:07:10 +00:00
asan.h
attribs.c
attribs.h
auto-inc-dec.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
auto-profile.c auto-profile.c: Change order of header files. 2014-10-22 17:11:17 +00:00
auto-profile.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
basic-block.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
bb-reorder.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
builtin-attrs.def
builtin-types.def machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
builtins.c Makefile.in (OBJS): Add gimple-match.o and generic-match.o. 2014-10-22 08:42:37 +00:00
builtins.def
builtins.h Makefile.in (OBJS): Add gimple-match.o and generic-match.o. 2014-10-22 08:42:37 +00:00
caller-save.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
calls.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
calls.h
cfg-flags.def
cfg.c
cfg.h cfg.h: New. 2014-10-21 15:17:12 +00:00
cfganal.c
cfganal.h cfg.h: New. 2014-10-21 15:17:12 +00:00
cfgbuild.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cfgbuild.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgcleanup.c cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgcleanup.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgexpand.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cfgexpand.h
cfghooks.c re PR tree-optimization/63168 (loop header copying fails - not vectorized: latch block not empty) 2014-10-16 10:13:52 +00:00
cfghooks.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgloop.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cfgloop.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgloopanal.c cfgloopanal.c (seq_cost): Delete. 2014-10-21 03:38:37 +00:00
cfgloopmanip.c
cfgloopmanip.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgrtl.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cfgrtl.h cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
cgraph.c cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cgraph.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cgraphbuild.c
cgraphclones.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cgraphunit.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
cif-code.def
cilk-builtins.def
cilk-common.c
cilk.h
cilkplus.def
collect-utils.c
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c Fix bootstrap/PR63632 2014-10-24 06:39:24 +00:00
collect2.h
combine-stack-adj.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
combine.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
common.md
common.opt New syntax for -fsanitize-recover. 2014-10-22 11:07:10 +00:00
compare-elim.c
conditions.h
config.build
config.gcc config.gcc (sparc*-*-*): Accept mcpu=leon3v7 processor. 2014-10-24 14:34:49 +02:00
config.host
config.in
configure Set SECTION_EXCLUDE flag for LTO sections. 2014-10-19 19:40:59 +00:00
configure.ac Set SECTION_EXCLUDE flag for LTO sections. 2014-10-19 19:40:59 +00:00
context.c
context.h
convert.c convert.c (convert_to_integer): Do not introduce useless conversions between integral types. 2014-10-03 10:28:50 +00:00
convert.h
coretypes.h gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
coverage.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cse.c re PR target/63534 (Bootstrap failure on x86_64/i686-linux) 2014-10-23 16:52:11 +00:00
cselib.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
dbxout.h
dce.c re PR target/63534 (Bootstrap failure on x86_64/i686-linux) 2014-10-23 16:52:11 +00:00
dce.h
ddg.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
ddg.h
debug.c
debug.h
defaults.h
df-core.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
df-problems.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
df-scan.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
df.h
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
diagnostic.def
diagnostic.h
dojump.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
dominance.c
dominance.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c
dumpfile.c
dumpfile.h
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
dwarf2out.c dwarf2out.c (declare_in_namespace): Only emit external declarations in the local scope once. 2014-10-25 00:08:41 +00:00
dwarf2out.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
emit-rtl.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
except.h
exec-tool.in
explow.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
expmed.c
expmed.h
expr.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
expr.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
file-find.c
file-find.h
final.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
fixed-value.c
fixed-value.h
flag-types.h flag-types.h (sanitize_code): Don't assume targets have 32-bit integers. 2014-10-16 16:58:16 -04:00
flags.h
fold-const.c genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
fold-const.h
fp-test.c
function.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
function.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
fwprop.c
gcc-ar.c
gcc-plugin.h gcc-plugin.h: Add tm.h and flattened includes from function.h. 2014-10-17 13:21:52 +00:00
gcc-symtab.h
gcc.c re PR lto/63603 (Linking with -fno-lto still invokes LTO) 2014-10-22 22:51:00 +02:00
gcc.h
gcov-counter.def Makefile.in: Fix dependence. 2014-10-07 04:02:31 +00:00
gcov-dump.c
gcov-io.c
gcov-io.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
gcov-iov.c
gcov-tool.c Add overlap functionality to gcov-tool. 2014-10-08 21:51:41 +00:00
gcov.c
gcse.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
gcse.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
genattrtab.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genautomata.c gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
gencheck.c
genchecksum.c
gencodes.c
genconditions.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genconfig.c
genconstants.c
genemit.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genenums.c
generic-match-head.c genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
generic-match.h genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
gengtype.h gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
genhooks.c
genmatch.c genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
genmddeps.c
genmddump.c
genmodes.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
genmultilib
genopinit.c cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
genoutput.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genpeep.c
genpreds.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genrecog.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
gensupport.c
gensupport.h
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ggc.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-builder.c
gimple-builder.h
gimple-expr.c
gimple-expr.h
gimple-fold.c genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
gimple-fold.h genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
gimple-iterator.c
gimple-iterator.h
gimple-low.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
gimple-low.h
gimple-match-head.c Makefile.in (OBJS): Add gimple-match.o and generic-match.o. 2014-10-22 08:42:37 +00:00
gimple-match.h Makefile.in (OBJS): Add gimple-match.o and generic-match.o. 2014-10-22 08:42:37 +00:00
gimple-pretty-print.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
gimple-pretty-print.h
gimple-ssa-isolate-paths.c
gimple-ssa-strength-reduction.c
gimple-ssa.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
gimple-walk.c
gimple-walk.h
gimple.c re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-17 12:54:54 +02:00
gimple.def
gimple.h re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-17 12:54:54 +02:00
gimplify-me.c
gimplify-me.h
gimplify.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
gimplify.h
glimits.h
godump.c gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
graph.c
graph.h
graphds.c
graphds.h
graphite-blocking.c
graphite-clast-to-gimple.c
graphite-clast-to-gimple.h
graphite-dependences.c
graphite-htab.h
graphite-interchange.c
graphite-isl-ast-to-gimple.c
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c
graphite-poly.c
graphite-poly.h
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
gtm-builtins.def
haifa-sched.c Disable max_issue when scheduling for register pressure 2014-10-24 08:22:49 +00:00
hard-reg-set.h
hash-map.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
hash-set.h
hash-table.c hash-table.c: Include bconfig.h if building for the host. 2014-10-15 09:55:19 +00:00
hash-table.h hash-table.c: Include bconfig.h if building for the host. 2014-10-15 09:55:19 +00:00
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h
hwint.c
hwint.h
ifcvt.c cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
ifcvt.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
input.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
input.h
insn-addr.h
insn-notes.def
internal-fn.c asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
internal-fn.def asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
internal-fn.h
intl.c
intl.h
ipa-comdats.c
ipa-cp.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ipa-devirt.c ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE when speculation is added. 2014-10-02 07:03:15 +00:00
ipa-icf-gimple.c re PR tree-optimization/63583 (ICF does not check that the template strings are the same) 2014-10-20 10:44:54 +00:00
ipa-icf-gimple.h IPA ICF pass, part 3/5 2014-10-16 10:47:55 +00:00
ipa-icf.c re PR tree-optimization/63595 (Segmentation faults inside kernel) 2014-10-24 11:57:58 +00:00
ipa-icf.h IPA ICF pass, part 3/5 2014-10-16 10:47:55 +00:00
ipa-inline-analysis.c
ipa-inline-transform.c ipa-inline-transform.c (master_clone_with_noninline_clones_p): New. 2014-10-17 19:53:18 +00:00
ipa-inline.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
ipa-inline.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
ipa-polymorphic-call.c re PR bootstrap/63496 (../../gcc/ipa-polymorphic-call.c:2117:1: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]) 2014-10-13 12:44:00 +00:00
ipa-profile.c
ipa-prop.c ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive sanity check. 2014-10-05 19:51:39 +00:00
ipa-prop.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ipa-pure-const.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ipa-ref.c
ipa-ref.h
ipa-reference.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ipa-reference.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
ipa-split.c
ipa-utils.c
ipa-utils.h ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE when speculation is added. 2014-10-02 07:03:15 +00:00
ipa-visibility.c
ipa.c ipa.c (walk_polymorphic_call_targets): Avoid ICE when dumping during WPA. 2014-10-02 05:49:32 +00:00
ira-build.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-color.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-conflicts.c
ira-costs.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
ira-emit.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-int.h ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-lives.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
ira.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
ira.h ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
is-a.h
jump.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
langhooks-def.h PR debug/63239 Add DWARF representation for C++11 deleted member function. 2014-10-05 15:25:03 +00:00
langhooks.c Set SECTION_EXCLUDE flag for LTO sections. 2014-10-19 19:40:59 +00:00
langhooks.h PR debug/63239 Add DWARF representation for C++11 deleted member function. 2014-10-05 15:25:03 +00:00
lcm.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lcm.h cfg.h: New. 2014-10-21 15:17:12 +00:00
libfuncs.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c loop-doloop.c: Include loop-unroll.h. 2014-10-21 16:29:55 +00:00
loop-init.c cfg.h: New. 2014-10-21 15:17:12 +00:00
loop-invariant.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
loop-iv.c
loop-unroll.c cfg.h: New. 2014-10-21 15:17:12 +00:00
loop-unroll.h cfg.h: New. 2014-10-21 15:17:12 +00:00
lower-subreg.c
lower-subreg.h
lra-assigns.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lra-coalesce.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lra-constraints.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
lra-eliminations.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lra-int.h md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
lra-lives.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lra-spills.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lra.c lra.c (lra): Remove call to recog_init. 2014-10-22 12:03:00 +00:00
lra.h
lto-cgraph.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lto-compress.c
lto-compress.h
lto-opts.c lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. 2014-10-07 07:56:43 +00:00
lto-section-in.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lto-section-names.h
lto-section-out.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lto-streamer-in.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lto-streamer-out.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
lto-streamer.c
lto-streamer.h IPA ICF pass, part 3/5 2014-10-16 10:47:55 +00:00
lto-wrapper.c lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. 2014-10-07 07:56:43 +00:00
machmode.def machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
machmode.h machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
main.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
match.pd match.pd (0 % X): Properly use the iterator iterating over all modulo operators. 2014-10-27 11:41:14 +00:00
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
modulo-sched.c cfg.h: New. 2014-10-21 15:17:12 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
omp-low.h
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-17 12:54:54 +02:00
optabs.def
optabs.h re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-17 12:54:54 +02:00
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c New syntax for -fsanitize-recover. 2014-10-22 11:07:10 +00:00
opts.h
output.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
params.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
params.def params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
params.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
pass_manager.h
passes.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
passes.def Add AutoFDO. 2014-10-21 17:59:30 +00:00
plugin.c
plugin.def
plugin.h
postreload-gcse.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
postreload.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
predict.c cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
predict.def
predict.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-rtl.h
print-tree.c
print-tree.h
profile.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
profile.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
read-md.c
read-md.h
read-rtl.c
real.c
real.h
realmpfr.c
realmpfr.h
recog.c recog.h (recog_data_d): Remove enabled_alternatives. 2014-10-22 12:02:39 +00:00
recog.h recog.h (recog_data_d): Remove enabled_alternatives. 2014-10-22 12:02:39 +00:00
ree.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
reg-notes.def
reg-stack.c recog.h (extract_constrain_insn): Declare. 2014-10-22 12:01:59 +00:00
regcprop.c recog.h (extract_constrain_insn): Declare. 2014-10-22 12:01:59 +00:00
regcprop.h
reginfo.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
regrename.c recog.h (extract_constrain_insn): Declare. 2014-10-22 12:01:59 +00:00
regrename.h
regs.h
regset.h
regstat.c
reload.c recog.h (recog_data_d): Remove enabled_alternatives. 2014-10-22 12:02:39 +00:00
reload.h
reload1.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
reorg.c recog.h (constrain_operands): Add an alternative_mask parameter. 2014-10-22 12:02:26 +00:00
resource.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
resource.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl.c
rtl.def
rtl.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
rtlanal.c Handle SCRATCH in decompose_address 2014-10-24 08:23:01 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sanitizer.def
sbitmap.c
sbitmap.h
sched-deps.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
sched-ebb.c cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
sched-int.h Improve scheduler dumps of ready list 2014-10-24 08:22:24 +00:00
sched-rgn.c cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
sched-vis.c
sdbout.c
sdbout.h
sel-sched-dump.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
sel-sched-dump.h
sel-sched-ir.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
sel-sched-ir.h
sel-sched.c recog.h (extract_constrain_insn): Declare. 2014-10-22 12:01:59 +00:00
sel-sched.h
sese.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
sese.h
shrink-wrap.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
shrink-wrap.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
signop.h
simplify-rtx.c re PR rtl-optimization/63615 (FAIL: gcc.target/i386/addr-sel-1.c) 2014-10-25 17:15:52 +10:30
sparseset.c
sparseset.h
sreal.c
sreal.h
ssa-iterators.h
stab.def
stack-ptr-mod.c
statistics.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
statistics.h
stmt.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
stmt.h
stor-layout.c fold-const.c (fold_binary_loc): Preserve side-effects of X - X when simplifying to 0. 2014-10-23 08:25:55 +00:00
stor-layout.h
store-motion.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
stringpool.h
symtab.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
sync-builtins.def
system.h
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
target.h
targhooks.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
targhooks.h
timevar.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
timevar.def Add AutoFDO. 2014-10-21 17:59:30 +00:00
timevar.h timevar.h: Add an auto_timevar class 2014-10-15 21:26:02 +00:00
tlink.c
toplev.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
toplev.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
tracer.c cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
trans-mem.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
trans-mem.h
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-cfg.h cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
tree-cfgcleanup.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-cfgcleanup.h
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-core.h AVX-512. 81.1/n. Extend `function_code' field `tree_var_decl' structure. 2014-10-23 11:44:12 +00:00
tree-data-ref.c
tree-data-ref.h
tree-dfa.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-eh.h
tree-emutls.c
tree-hasher.h
tree-if-conv.c
tree-inline.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-inline.h
tree-into-ssa.c tree-into-ssa.c (is_old_name): Replace "new" with "old". 2014-10-17 08:26:33 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c
tree-nested.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-nested.h
tree-nrv.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-object-size.c
tree-object-size.h
tree-outof-ssa.c
tree-outof-ssa.h
tree-parloops.c
tree-parloops.h
tree-pass.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
tree-pretty-print.h tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
tree-profile.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
tree-scalar-evolution.c
tree-scalar-evolution.h
tree-sra.c re PR rtl-optimization/63375 (reordering of reads across fences) 2014-10-02 18:49:14 +02:00
tree-ssa-address.c
tree-ssa-address.h
tree-ssa-alias.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-coalesce.c
tree-ssa-coalesce.h
tree-ssa-copy.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-copyrename.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-dce.c
tree-ssa-dom.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h. 2014-10-27 11:30:23 +00:00
tree-ssa-ifcombine.c
tree-ssa-live.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c
tree-ssa-loop-ivcanon.c cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
tree-ssa-loop-ivopts.c cfgloopanal.c (seq_cost): Delete. 2014-10-21 03:38:37 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-loop.h
tree-ssa-math-opts.c tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of MARKER_BYTE_UNKNOWN markers when handling casts. 2014-10-21 12:38:36 +00:00
tree-ssa-operands.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c tree-ssa-phiopt.c (value_replacement): Properly verify we are the non-singleton PHI. 2014-10-21 12:31:52 +00:00
tree-ssa-phiprop.c
tree-ssa-pre.c re PR tree-optimization/63512 (ICE: error: virtual use of statement not up-to-date) 2014-10-14 07:36:02 +00:00
tree-ssa-propagate.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/63641 (Invalid shift leads to incorrect code on 32-bit system) 2014-10-25 22:21:47 +02:00
tree-ssa-sccvn.c
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-strlen.c
tree-ssa-structalias.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-tail-merge.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadedge.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa-uninit.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-ssa.h
tree-ssanames.c
tree-ssanames.h
tree-stdarg.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-stdarg.h
tree-streamer-in.c
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-17 12:54:54 +02:00
tree-tailcall.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tree-vect-data-refs.c re PR tree-optimization/63530 (GCC generates incorrect aligned store on ARM after the loop is unrolled.) 2014-10-22 15:56:59 +00:00
tree-vect-generic.c
tree-vect-loop-manip.c
tree-vect-loop.c
tree-vect-patterns.c
tree-vect-slp.c tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping operands to get a def operand kind match. 2014-10-20 12:28:10 +00:00
tree-vect-stmts.c
tree-vectorizer.c
tree-vectorizer.h
tree-vrp.c * tree-vrp.c (extract_range_from_assert): Fix typo in comment. 2014-10-23 22:48:40 +00:00
tree.c fold-const.c (fold_comparison): Remove redundant constant folding and operand swapping. 2014-10-17 11:32:12 +00:00
tree.def
tree.h AVX-512. 81.1/n. Extend `function_code' field `tree_var_decl' structure. 2014-10-23 11:44:12 +00:00
treestruct.def
tsan.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
tsan.h
tsystem.h
typeclass.h
ubsan.c New syntax for -fsanitize-recover. 2014-10-22 11:07:10 +00:00
ubsan.h asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
valtrack.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
valtrack.h
value-prof.c Add AutoFDO. 2014-10-21 17:59:30 +00:00
value-prof.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
var-tracking.c re PR debug/63623 (Lots of functions get -fvar-tracking silently turned off unnecessarily) 2014-10-23 23:58:41 +02:00
varasm.c varasm.c (const_alias_set): Remove. 2014-10-20 11:21:09 +02:00
varasm.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
varpool.c
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
vtable-verify.c
vtable-verify.h
web.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

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