gcc/gcc
Prathamesh Kulkarni f6cdf42f64 pr70920-4.c: Move dg-require-effective-target before dg-options.
2016-08-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

testsuite/
	* gcc.dg/pr70920-4.c: Move dg-require-effective-target before
	dg-options.

From-SVN: r239150
2016-08-04 20:51:32 +00:00
..
ada decl.c (gnat_to_gnu_entity): Also use the void pointer type if the designated type is incomplete and has no... 2016-07-14 11:12:22 +00:00
c Rework C/C++ OpenACC routine parsing 2016-08-04 15:35:30 +02:00
c-family re PR c/71926 (wrong location for -Wparentheses warning) 2016-07-29 17:39:39 +00:00
common re PR target/70677 (Suboptimal cond on AVR: unneeded stack frame) 2016-08-04 07:52:38 +00:00
config aarch64.c (thunderx_vector_cost): New variable. 2016-08-04 09:00:24 -07:00
cp re PR c++/72800 (ICE on invalid C++14 code with initialized lambda capture: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in add_capture, at cp/lambda.c:505) 2016-08-04 19:22:58 +00:00
doc extend.texi (AVR Built-in Functions): Document __builtin_avr_nops. 2016-08-01 12:23:17 +00:00
fortran lang.opt: New option -fdec-intrinsic-ints. 2016-08-03 14:55:26 +00:00
ginclude
go runtime: fix incorrectly commented out code in heapdump.c 2016-08-04 17:21:23 +00:00
java expr.c (push_value): Only call flush_quick_stack for non-constant arguments. 2016-08-02 18:01:14 +00:00
jit
lto cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
objc Rename TYPE_ANONYMOUS_P to TYPE_UNNAMED_P. 2016-08-04 12:06:17 -04:00
objcp
po * sv.po: Update. 2016-07-28 22:15:06 +01:00
testsuite pr70920-4.c: Move dg-require-effective-target before dg-options. 2016-08-04 20:51:32 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog Designate the widest case label to be the default label 2016-08-04 18:11:08 +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-2014
ChangeLog-2015
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2016-08-04 00:16:13 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c re PR middle-end/71002 (-fstrict-aliasing breaks Boost's short string optimization implementation) 2016-06-29 07:30:31 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c re PR sanitizer/71953 (ICE using address sanitizers with PCH) 2016-07-21 18:17:58 +02:00
asan.h
attribs.c
attribs.h
auto-inc-dec.c
auto-profile.c Print indirect call changes in afdo dump file 2016-07-14 02:13:48 +00:00
auto-profile.h
backend.h
basic-block.h
bb-reorder.c
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
builtin-attrs.def 016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de> 2016-07-21 19:11:26 +00:00
builtin-types.def
builtins.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
builtins.def 016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de> 2016-07-21 19:11:26 +00:00
builtins.h re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
caller-save.c
calls.c re PR middle-end/71876 (longjmp is miscompiled with -ffreestanding) 2016-08-03 19:05:45 +00:00
calls.h 016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de> 2016-07-21 19:06:02 +00:00
ccmp.c
ccmp.h
cfg-flags.def
cfg.c
cfg.h
cfganal.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
cfganal.h
cfgbuild.c
cfgbuild.h
cfgcleanup.c
cfgcleanup.h
cfgexpand.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
cfgexpand.h
cfghooks.c
cfghooks.h
cfgloop.c cfgloop.h (struct loop): New field constraints. 2016-07-29 15:44:00 +00:00
cfgloop.h cfgloop.h (struct loop): New field constraints. 2016-07-29 15:44:00 +00:00
cfgloopanal.c Handle loops with loop->latch == NULL (PR gcov-profile/71868) 2016-07-25 10:56:08 +00:00
cfgloopmanip.c cfgloop.h (struct loop): New field constraints. 2016-07-29 15:44:00 +00:00
cfgloopmanip.h
cfgrtl.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
cfgrtl.h
cgraph.c cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
cgraph.h
cgraphbuild.c
cgraphclones.c
cgraphunit.c function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. 2016-07-21 12:25:00 +00:00
chkp-builtins.def
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
collect2.h
combine-stack-adj.c
combine.c re PR rtl-optimization/71976 (insn-combiner deletes a live 64-bit shift) 2016-07-29 12:34:21 +00:00
common.md
common.opt common.opt (funsafe-loop-optimizations): Mark ignore. 2016-07-22 13:25:59 +00:00
compare-elim.c
conditions.h
config.build
config.gcc [AArch64][7/10] ARMv8.2-A FP16 one operand scalar intrinsics 2016-07-25 16:00:28 +00:00
config.host
config.in Call tls_get_addr via GOT for GNU TLS if possible 2016-06-24 10:32:52 -07:00
configure Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
configure.ac Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
context.c
context.h
convert.c
convert.h
coretypes.h
coverage.c Consider functions with xloc.file == NULL (PR 2016-07-22 10:19:57 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c
cse.c re PR target/70903 (wrong code with bfi @ aarch64 with -Os) 2016-08-04 13:20:57 +00:00
cselib.c re PR middle-end/71732 (FAIL: gcc.dg/torture/pr71532.c at -O2 and above) 2016-07-25 17:32:44 +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 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
dbxout.h
dce.c
dce.h
ddg.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
ddg.h
debug.c
debug.h
defaults.h defaults.h (LOG2_BITS_PER_UNIT): Move from here... 2016-07-27 20:35:35 +00:00
df-core.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
df-problems.c
df-scan.c
df.h
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h C FE: suggest corrections for misspelled identifiers and type names 2016-06-22 15:20:41 +00:00
diagnostic-show-locus.c Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
diagnostic.c C FE: suggest corrections for misspelled identifiers and type names 2016-06-22 15:20:41 +00:00
diagnostic.def
diagnostic.h Implement -fdiagnostics-parseable-fixits 2016-06-22 14:42:30 +00:00
dojump.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
dojump.h
dominance.c
dominance.h
domwalk.c
domwalk.h
double-int.c hwint.h (HOST_WIDE_INT_0): New define. 2016-07-20 23:59:44 +02:00
double-int.h cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
dse.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
dumpfile.c
dumpfile.h
dwarf2asm.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
dwarf2asm.h
dwarf2cfi.c
dwarf2out.c re PR debug/71855 (duplicate unspecified_parameters DIE in DWARF for functions with variable arguments) 2016-07-19 19:29:42 +00:00
dwarf2out.h
emit-rtl.c 016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de> 2016-08-04 13:23:36 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
except.h
exec-tool.in
explow.c Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00
explow.h Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00
expmed.c re PR tree-optimization/72517 (436.cactusADM: More than 40% regression in O3 and Ofast on AMD bdver4 m/c.) 2016-07-26 14:07:05 +00:00
expmed.h [1/2] Move choose_mult_variant declaration and dependent declarations to expmed.h 2016-07-14 13:57:05 +00:00
expr.c defaults.h (LOG2_BITS_PER_UNIT): Move from here... 2016-07-27 20:35:35 +00:00
expr.h
fibonacci_heap.c Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
fibonacci_heap.h Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
file-find.c Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
file-find.h Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
final.c
fixed-value.c
fixed-value.h
flag-types.h
flags.h
fold-const-call.c
fold-const-call.h
fold-const.c re PR tree-optimization/34114 (Missed optimization: cannot determine loop termination) 2016-08-02 10:09:33 +00:00
fold-const.h
fp-test.c
function-tests.c function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. 2016-07-21 12:25:00 +00:00
function.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
function.h
fwprop.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
gcc-ar.c Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
gcc-main.c
gcc-plugin.h
gcc-rich-location.c C: convert return type of lookup_name_fuzzy from tree to const char * 2016-07-20 13:42:51 +00:00
gcc-rich-location.h C: convert return type of lookup_name_fuzzy from tree to const char * 2016-07-20 13:42:51 +00:00
gcc-symtab.h
gcc.c fix interaction of -S and -x {c,c++}-header 2016-07-04 07:41:32 +00:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h Adapt the numbering scheme (PR gcov-profile/64874) 2016-07-25 08:42:42 +00:00
gcov-iov.c Adapt the numbering scheme (PR gcov-profile/64874) 2016-07-25 08:42:42 +00:00
gcov-tool.c
gcov.c Fix GNU coding style in gcov.c 2016-08-04 15:05:35 +00:00
gcse-common.c
gcse-common.h
gcse.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
gcse.h
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c
genautomata.c
gencfn-macros.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genenums.c
generic-match-head.c
generic-match.h
genextract.c genextract.c: add [cd]tors to accum_extract 2016-07-13 02:43:23 +00:00
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c
gengtype.h
genhooks.c
genmatch.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
genmddeps.c
genmddump.c
genmodes.c Teach VRP to register assertions along default switch labels (PR18046) 2016-07-26 15:19:58 +00:00
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c genrecog.c (special_predicate_operand_p): New function. 2016-07-13 16:18:40 -06:00
gensupport.c
gensupport.h
gentarget-def.c
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c
ggc-tests.c
ggc.h
gimple-builder.c
gimple-builder.h
gimple-expr.c
gimple-expr.h
gimple-fold.c re PR middle-end/71874 (memmove works wrong) 2016-07-19 19:30:05 +02:00
gimple-fold.h re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
gimple-iterator.c
gimple-iterator.h
gimple-laddress.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
gimple-low.c
gimple-low.h
gimple-match-head.c
gimple-match.h
gimple-predict.h
gimple-pretty-print.c
gimple-pretty-print.h
gimple-ssa-backprop.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
gimple-ssa-isolate-paths.c
gimple-ssa-nonnull-compare.c
gimple-ssa-split-paths.c gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa): Handle empty else block. 2016-07-05 13:25:47 +00:00
gimple-ssa-strength-reduction.c gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead and unnecessary call to gimple_bb. 2016-07-26 14:13:52 +00:00
gimple-ssa.h
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c
gimple-walk.h
gimple.c Designate the widest case label to be the default label 2016-08-04 18:11:08 +00:00
gimple.def
gimple.h gimple.h (stmt_can_terminate_bb_p): New function. 2016-07-14 13:52:21 +00:00
gimplify-me.c
gimplify-me.h
gimplify.c re PR tree-optimization/71104 (ICE: verify_ssa failed (with vfork / error: definition in block 3 does not dominate use in block 7 )) 2016-07-13 08:03:04 +00:00
gimplify.h
glimits.h
godump.c
graph.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
graph.h
graphds.c
graphds.h
graphite-dependences.c
graphite-isl-ast-to-gimple.c Properly handly PHI stmts in later_of_the_two (PR 2016-07-20 11:16:47 +00:00
graphite-optimize-isl.c
graphite-poly.c
graphite-scop-detection.c
graphite-sese-to-poly.c
graphite.c
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c merge adjust_cost and adjust_cost_2 target hooks 2016-07-28 11:01:49 +00:00
hard-reg-set.h
hash-map-tests.c
hash-map-traits.h
hash-map.h
hash-set-tests.c
hash-set.h
hash-table.c
hash-table.h
hash-traits.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hsa-brig-format.h
hsa-brig.c
hsa-dump.c
hsa-gen.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
hsa-regalloc.c
hsa.c
hsa.h
hw-doloop.c
hw-doloop.h
hwint.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
hwint.h hwint.h (HOST_WIDE_INT_0): New define. 2016-07-20 23:59:44 +02:00
ifcvt.c [Patch 2/2 ifcvt costs] Introduce a new cost model for ifcvt. 2016-07-21 15:40:24 +00:00
ifcvt.h
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c
input.c Move make_location from tree.h/c to input.h/c 2016-07-27 17:21:20 +00:00
input.h Move make_location from tree.h/c to input.h/c 2016-07-27 17:21:20 +00:00
insn-addr.h
insn-notes.def
internal-fn.c re PR rtl-optimization/71673 (FAIL: c-c++-common/torture/builtin-arith-overflow-p-19.c -O2 (internal compiler error)) 2016-06-28 10:29:11 +02:00
internal-fn.def re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
internal-fn.h
intl.c
intl.h
ipa-chkp.c
ipa-chkp.h
ipa-comdats.c
ipa-cp.c ipa-cp.c (determine_versionability): Do not create constprop clones, when target_clones attribute is set. 2016-07-22 15:00:42 +00:00
ipa-devirt.c
ipa-hsa.c
ipa-icf-gimple.c
ipa-icf-gimple.h
ipa-icf.c
ipa-icf.h
ipa-inline-analysis.c re PR ipa/71624 ([CHKP] internal compiler error: in duplicate_thunk_for_node) 2016-07-07 11:45:11 +00:00
ipa-inline-transform.c re PR ipa/71633 ([CHKP] internal compiler error: in inline_call) 2016-07-13 11:02:15 +00:00
ipa-inline.c
ipa-inline.h
ipa-polymorphic-call.c
ipa-profile.c
ipa-prop.c
ipa-prop.h
ipa-pure-const.c
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c
ipa-utils.c
ipa-utils.h
ipa-visibility.c
ipa.c function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. 2016-07-21 12:25:00 +00:00
ira-build.c re PR rtl-optimization/71634 (Invalid write with in mark_loops_for_removal (ira-build.c:2256) with --param ira-max-loops-num=0) 2016-07-12 14:54:52 +00:00
ira-color.c
ira-conflicts.c
ira-costs.c
ira-emit.c
ira-int.h
ira-lives.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
ira.c
ira.h
is-a.h
jump.c
langhooks-def.h
langhooks.c
langhooks.h
lcm.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
lcm.h
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
loop-init.c
loop-invariant.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
loop-iv.c common.opt (funsafe-loop-optimizations): Mark ignore. 2016-07-22 13:25:59 +00:00
loop-unroll.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
loop-unroll.h
lower-subreg.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
lower-subreg.h
lra-assigns.c re PR rtl-optimization/69847 (Spec 2006 403.gcc slows down with -mlra vs. reload on PowerPC) 2016-08-02 16:07:36 +00:00
lra-coalesce.c
lra-constraints.c re PR rtl-optimization/69847 (Spec 2006 403.gcc slows down with -mlra vs. reload on PowerPC) 2016-08-02 16:07:36 +00:00
lra-eliminations.c
lra-int.h re PR rtl-optimization/69847 (Spec 2006 403.gcc slows down with -mlra vs. reload on PowerPC) 2016-08-02 16:07:36 +00:00
lra-lives.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
lra-remat.c re PR rtl-optimization/69847 (Spec 2006 403.gcc slows down with -mlra vs. reload on PowerPC) 2016-08-02 16:07:36 +00:00
lra-spills.c re PR rtl-optimization/72778 (internal compiler error: in create_pre_exit, at mode-switching.c:451) 2016-08-03 18:54:49 +00:00
lra.c re PR rtl-optimization/69847 (Spec 2006 403.gcc slows down with -mlra vs. reload on PowerPC) 2016-08-02 16:07:36 +00:00
lra.h
lto-cgraph.c Don't call get_working_sets w/ LTO and -fauto-profile (PR 2016-07-25 11:28:52 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-names.h
lto-section-out.c
lto-streamer-in.c cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
lto-streamer-out.c cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
lto-streamer.c
lto-streamer.h cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
lto-wrapper.c
machmode.def
machmode.h
main.c
match.pd re PR middle-end/71078 (x/abs(x) -> sign(1.0,x)) 2016-07-27 15:09:10 +00:00
mcf.c
mem-stats-traits.h
mem-stats.h
memory-block.cc
memory-block.h
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
multiple_target.c
omp-builtins.def
omp-low.c function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. 2016-07-21 12:25:00 +00:00
omp-low.h
omp-simd-clone.c
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c
optabs-libfuncs.h
optabs-query.c
optabs-query.h
optabs-tree.c
optabs-tree.h
optabs.c [Patch 3/2 ifcvt costs] Don't expand a conditional move between identical sources 2016-07-21 15:41:59 +00:00
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c Fix bogus option suggestions for RejectNegative options (PR driver/71651) 2016-06-30 14:28:50 +00:00
opts-diagnostic.h
opts-global.c
opts.c re PR tree-optimization/23286 (Missed code hoisting optimization) 2016-07-12 13:32:04 +00:00
opts.h Fix bogus option suggestions for RejectNegative options (PR driver/71651) 2016-06-30 14:28:50 +00:00
output.h
params-enum.h
params-list.h
params-options.h Add tests that test boundary values of params 2016-07-12 15:03:07 +00:00
params.c Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
params.def Teach VRP to register assertions along default switch labels (PR18046) 2016-07-26 15:19:58 +00:00
params.h Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
pass_manager.h
passes.c
passes.def
plugin.c
plugin.def
plugin.h
postreload-gcse.c
postreload.c
predict.c predict.c (set_even_probabilities): Make nedges unsigned. 2016-07-27 10:33:02 +00:00
predict.def predict-12.c: New testcase. 2016-06-26 20:03:35 +00:00
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-rtl.h
print-tree.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
print-tree.h
profile.c
profile.h
read-md.c
read-md.h
read-rtl.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
real.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
real.h
realmpfr.c
realmpfr.h
recog.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
recog.h
ree.c ree.c: use auto_vec in ext_state 2016-07-13 02:44:28 +00:00
reg-notes.def
reg-stack.c
regcprop.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
regcprop.h
reginfo.c
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
reload.h
reload1.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
reorg.c
resource.c
resource.h
rtl-chkp.c
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl-tests.c
rtl.c
rtl.def
rtl.h
rtlanal.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sancov.c
sanitizer.def
sanopt.c
sbitmap.c
sbitmap.h add auto_sbitmap class 2016-07-26 10:43:58 +00:00
sched-deps.c
sched-ebb.c
sched-int.h
sched-rgn.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
sel-sched.h
selftest-run-tests.c Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
selftest.c selftest.c: gracefully handle NULL in assert_streq 2016-07-19 16:16:18 +00:00
selftest.h Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
sese.c
sese.h
shrink-wrap.c
shrink-wrap.h
signop.h
simplify-rtx.c re PR rtl-optimization/71984 (wrong code with -O -mavx512cd) 2016-07-26 14:11:21 +00:00
sparseset.c
sparseset.h
spellcheck-tree.c Fix build of spellcheck-tree.c with older gccs 2016-07-21 17:21:12 +00:00
spellcheck-tree.h Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
spellcheck.c Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
spellcheck.h Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
sreal.c Add sreal to selftests 2016-07-20 07:00:50 +00:00
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c
stmt.h
stor-layout.c defaults.h (LOG2_BITS_PER_UNIT): Move from here... 2016-07-27 20:35:35 +00:00
stor-layout.h
store-motion.c make pattern_regs a vec 2016-07-28 11:01:34 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symbol-summary.h
symtab.c
sync-builtins.def
system.h Use static_assert for STATIC_ASSERT for C++11 onwards 2016-07-27 14:49:06 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def
target.def merge adjust_cost and adjust_cost_2 target hooks 2016-07-28 11:01:49 +00:00
target.h
targhooks.c [Patch 1/2 ifcvt costs] New target hook: max_noce_ifcvt_seq_cost 2016-07-21 15:37:50 +00:00
targhooks.h [Patch 1/2 ifcvt costs] New target hook: max_noce_ifcvt_seq_cost 2016-07-21 15:37:50 +00:00
timevar.c
timevar.def Improving concepts performance and diagnostics. 2016-07-21 02:05:24 -04:00
timevar.h Improving concepts performance and diagnostics. 2016-07-21 02:05:24 -04:00
tlink.c
toplev.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
toplev.h
tracer.c
tracer.h
trans-mem.c
trans-mem.h
tree-affine.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-affine.h
tree-call-cdce.c
tree-cfg.c gimple.h (stmt_can_terminate_bb_p): New function. 2016-07-14 13:52:21 +00:00
tree-cfg.h
tree-cfgcleanup.c
tree-cfgcleanup.h
tree-chkp-opt.c
tree-chkp.c re PR middle-end/72657 ([CHKP] internal compiler error: in ix86_expand_builtin) 2016-07-28 12:58:37 +00:00
tree-chkp.h
tree-chrec.c tree-chrec.c (convert_affine_scev): New parameter. 2016-07-21 10:52:13 +00:00
tree-chrec.h tree-chrec.c (convert_affine_scev): New parameter. 2016-07-21 10:52:13 +00:00
tree-complex.c
tree-core.h Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-data-ref.c re PR tree-optimization/71872 (ICE in inchash::add_expr, at tree.c:7782 - OEP_ADDRESS_OF asserted for ADDR_EXPR applied to constant) 2016-07-14 20:30:38 +02:00
tree-data-ref.h
tree-dfa.c
tree-dfa.h
tree-diagnostic.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c re PR tree-optimization/71503 (gcc ICE at -O3 on valid code on x86_64-linux-gnu in "gen_phi_arg_condition") 2016-07-20 08:31:35 +00:00
tree-inline.c tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before accessing SSA_NAME_PTR_INFO. 2016-08-04 09:15:03 +00:00
tree-inline.h
tree-into-ssa.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/71881 (ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form) 2016-07-15 13:05:56 +00:00
tree-nested.c
tree-nested.h
tree-nrv.c
tree-object-size.c * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1. 2016-07-21 09:47:44 +02:00
tree-object-size.h
tree-outof-ssa.c add a constructor to elim_graph 2016-07-26 10:44:25 +00:00
tree-outof-ssa.h
tree-parloops.c function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. 2016-07-21 12:25:00 +00:00
tree-parloops.h
tree-pass.h
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c
tree-pretty-print.h
tree-profile.c Introduce no_profile_instrument_function attribute 2016-07-28 08:45:29 +00:00
tree-scalar-evolution.c tree-chrec.c (convert_affine_scev): New parameter. 2016-07-21 10:52:13 +00:00
tree-scalar-evolution.h tree-scalar-evolution.c (simple_iv_with_niters): New funcion. 2016-07-15 09:04:57 +00:00
tree-sra.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-ssa-address.c
tree-ssa-address.h
tree-ssa-alias.c remove unnecessary calls to vec::release 2016-07-13 02:44:59 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c
tree-ssa-coalesce.c
tree-ssa-coalesce.h
tree-ssa-copy.c
tree-ssa-dce.c
tree-ssa-dom.c
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c
tree-ssa-ifcombine.c
tree-ssa-live.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c re PR middle-end/71734 (FAIL: libgomp.fortran/simd4.f90 -O3 -g execution test) 2016-07-28 14:19:18 +00:00
tree-ssa-loop-ivcanon.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-ssa-loop-ivopts.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c re PR tree-optimization/34114 (Missed optimization: cannot determine loop termination) 2016-08-02 10:13:28 +00:00
tree-ssa-loop-niter.h tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New Parameter. 2016-07-22 13:22:03 +00:00
tree-ssa-loop-prefetch.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-loop.h
tree-ssa-math-opts.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phionlycprop.c
tree-ssa-phiopt.c re PR tree-optimization/71887 (wrong code (SIGFPE) at -O1 and above on x86_64-linux-gnu (in both 32-bit and 64-bit modes)) 2016-07-15 12:56:17 +00:00
tree-ssa-phiprop.c
tree-ssa-pre.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/71994 (ICE: verify_gimple failed) 2016-07-27 22:45:46 +00:00
tree-ssa-sccvn.c gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case, handle all tcc_constant bases and valueize SSA names. 2016-07-19 14:16:54 +00:00
tree-ssa-sccvn.h re PR tree-optimization/71901 (ice in find_or_generate_expression) 2016-07-19 10:19:46 +00:00
tree-ssa-scopedtables.c
tree-ssa-scopedtables.h
tree-ssa-sink.c
tree-ssa-strlen.c tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo in comment. 2016-07-21 12:12:05 +00:00
tree-ssa-structalias.c add [cd]tors to scc_info 2016-07-26 10:44:31 +00:00
tree-ssa-tail-merge.c re PR tree-optimization/71643 (internal compiler error: in redirect_eh_edge_1, at tree-eh.c:2318 after r237427) 2016-06-25 19:23:02 +02:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadbackward.c
tree-ssa-threadbackward.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c
tree-ssa-threadupdate.h
tree-ssa-uncprop.c
tree-ssa-uninit.c
tree-ssa.c re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
tree-ssa.h
tree-ssanames.c
tree-ssanames.h
tree-stdarg.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-stdarg.h
tree-streamer-in.c cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
tree-streamer-out.c cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
tree-streamer.c
tree-streamer.h cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 12:35:08 +00:00
tree-switch-conversion.c
tree-tailcall.c
tree-vect-data-refs.c re PR tree-optimization/72517 (436.cactusADM: More than 40% regression in O3 and Ofast on AMD bdver4 m/c.) 2016-07-27 11:10:25 +00:00
tree-vect-generic.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-vect-loop-manip.c re PR tree-optimization/71818 (ICE in as_a, at is-a.h:192 w/ -O2 -ftree-vectorize) 2016-08-01 14:33:23 +00:00
tree-vect-loop.c re PR tree-optimization/57558 (Loop not vectorized if iteration count could be infinite) 2016-07-29 15:48:25 +00:00
tree-vect-patterns.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-vect-slp.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
tree-vect-stmts.c remove unnecessary calls to vec::release 2016-07-13 02:44:59 +00:00
tree-vectorizer.c re PR tree-optimization/57558 (Loop not vectorized if iteration count could be infinite) 2016-07-29 15:48:25 +00:00
tree-vectorizer.h re PR tree-optimization/57558 (Loop not vectorized if iteration count could be infinite) 2016-07-29 15:48:25 +00:00
tree-vrp.c tree-vrp.c (set_value_range): Use vrp_equiv_obstack with BITMAP_ALLOC. 2016-08-04 04:20:01 +00:00
tree.c Move make_location from tree.h/c to input.h/c 2016-07-27 17:21:20 +00:00
tree.def
tree.h defaults.h (LOG2_BITS_PER_UNIT): Move from here... 2016-07-27 20:35:35 +00:00
treestruct.def
tsan.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h
ubsan.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
ubsan.h
valtrack.c
valtrack.h
value-prof.c Don't run instrumented value profiler changes with afdo 2016-07-14 02:14:02 +00:00
value-prof.h
var-tracking.c use auto_sbitmap in various places 2016-07-26 10:44:08 +00:00
varasm.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
varasm.h
varpool.c handle undefined extern vars in output_in_order 2016-07-15 14:01:23 +03:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
wide-int-print.h
wide-int.cc builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
wide-int.h builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

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