gcc/gcc
Richard Sandiford 597fdf45ed range_int_cst_p handling in extract_range_from_binary_expr_1
extract_range_from_binary_expr_1 had:

      if (range_int_cst_p (&vr0)
          && range_int_cst_p (&vr1)
          && TYPE_OVERFLOW_WRAPS (expr_type))
        ...
      ...
      extract_range_from_multiplicative_op_1 (vr, code, &vr0, &vr1);

but extract_range_from_multiplicative_op_1 also requires range_int_cst_p.
I think we should bail out if either range isn't a constant.

This might only be theoretical with current sources, but it's needed
once polynomial constants are added.

2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
	    Alan Hayward  <alan.hayward@arm.com>
	    David Sherwood  <david.sherwood@arm.com>

gcc/
	* tree-vrp.c (extract_range_from_multiplicative_op_1): Assert
	for VR_RANGE only; don't allow VR_ANTI_RANGE.
	(extract_range_from_binary_expr_1): Don't call
	extract_range_from_multiplicative_op_1 if !range_int_cst_p.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>

From-SVN: r253102
2017-09-22 17:00:56 +00:00
..
ada Tweak 2017-09-21 11:00:21 +00:00
brig Fix gccbrig documentation build 2017-09-17 14:11:40 +02:00
c Fix condition folding in c_parser_omp_for_loop 2017-09-16 13:11:43 +00:00
c-family enable handling of -gno- command-line options as negated prefixes 2017-09-21 02:18:02 +00:00
common [arm] auto-generate arm-isa.h from CPU descriptions 2017-09-22 17:17:11 +01:00
config [arm] Improve error checking in parsecpu.awk 2017-09-22 17:24:46 +01:00
cp C++: underline parameters in mismatching function calls 2017-09-22 14:49:52 +00:00
doc Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
fortran re PR fortran/52832 ([F03] ASSOCIATE construct with proc-pointer selector is rejected) 2017-09-21 18:40:21 +00:00
ginclude
go libgo: fix build when using -enable-static=no 2017-09-20 23:31:00 +00:00
jit Fix crash accessing builtins in sanitizer.def and after (PR jit/82174) 2017-09-14 19:30:26 +00:00
lto Add some changelog entries that went astray during the machmode commits 2017-08-30 11:53:37 +00:00
objc [34/77] Add a SCALAR_INT_TYPE_MODE macro 2017-08-30 11:13:13 +00:00
objcp configure.ac: Set srcdir when sourcing config-lang.in fragments. 2017-07-03 14:16:59 +00:00
po * de.po: Update. 2017-08-21 15:08:22 +01:00
testsuite Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c Turn HARD_REGNO_MODE_OK into a target hook 2017-09-04 10:49:59 +00:00
alias.h
alloc-pool.c
alloc-pool.h re PR other/81667 (trunk/gcc/alloc-pool.h:239: possible missing initialiser ?) 2017-08-02 13:25:12 +00:00
asan.c asan.c (initialize_sanitizer_builtins): Add BT_FN_VOID_UINT8_UINT8... 2017-09-06 16:30:46 +02:00
asan.h asan.h (asan_sanitize_allocas_p): Declare. 2017-07-06 19:05:00 +03:00
attribs.c Reduce lookup_attribute memory footprint. 2017-09-12 14:24:29 +00:00
attribs.h Reduce lookup_attribute memory footprint. 2017-09-12 14:24:29 +00:00
auto-inc-dec.c Fix PR46932: Block auto increment on frame pointer 2017-07-26 10:49:17 +00:00
auto-profile.c Fix indirect call optimization done by autoFDO. 2017-07-27 12:54:17 +00:00
auto-profile.h
backend.h
BASE-VER
basic-block.h asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
bb-reorder.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
bb-reorder.h
bitmap.c use c++ for bitmap_initialize 2017-07-29 01:39:36 +00:00
bitmap.h use c++ for bitmap_initialize 2017-07-29 01:39:36 +00:00
brig-builtins.def
bt-load.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
builtin-attrs.def builtin-attrs.def: Add comments. 2017-08-14 15:32:07 -06:00
builtin-types.def asan.c (initialize_sanitizer_builtins): Add BT_FN_VOID_UINT8_UINT8... 2017-09-06 16:30:46 +02:00
builtins.c Make more use of int_mode_for_size 2017-09-05 19:57:01 +00:00
builtins.def fenv.h builtins 2017-06-27 09:38:28 +00:00
builtins.h [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
caller-save.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
calls.c Make more use of simplify_gen_binary 2017-09-21 11:14:01 +00:00
calls.h
ccmp.c ccmp.c (ccmp_tree_comparison_p): New function. 2017-06-29 18:20:14 +00:00
ccmp.h ccmp.c (ccmp_tree_comparison_p): New function. 2017-06-29 18:20:14 +00:00
cfg-flags.def
cfg.c cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
cfg.h cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
cfganal.c tree-ssa-pre.c (print_pre_expr): Handle NULL expr. 2017-08-01 10:47:14 +00:00
cfganal.h
cfgbuild.c re PR target/81325 (-fcompare-debug failure on ppc64le) 2017-09-14 10:07:30 +02:00
cfgbuild.h
cfgcleanup.c cfgcleanup.c (flow_find_cross_jump): Do not crossjump across hot/cold regions. 2017-07-21 07:17:57 +00:00
cfgcleanup.h
cfgexpand.c Store VECTOR_CST_NELTS directly in tree_node 2017-09-14 15:25:57 +00:00
cfgexpand.h
cfghooks.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
cfghooks.h
cfgloop.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
cfgloop.h [36/77] Use scalar_int_mode in the RTL iv routines 2017-08-30 11:13:59 +00:00
cfgloopanal.c cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
cfgloopmanip.c re PR tree-optimization/81463 (ICE in scale_loop_profile at gcc/cfgloopmanip.c:603) 2017-07-18 13:51:22 +00:00
cfgloopmanip.h cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
cfgrtl.c cfgrtl: Don't crash in rtl_dump_bb if BB_END(bb) is NULL 2017-07-24 21:47:15 +02:00
cfgrtl.h bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Put all BBs reachable only via paths crossing cold region to cold region. 2017-07-21 07:17:22 +00:00
cgraph.c ipa: fix dumping with deleted multiversioning nodes 2017-09-21 15:54:38 +03:00
cgraph.h ipa: fix dumping with deleted multiversioning nodes 2017-09-21 15:54:38 +03:00
cgraphbuild.c cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch profile. 2017-06-10 16:33:07 +00:00
cgraphclones.c cgraph.h (cgraph_edge::clone): Update prototype. 2017-06-10 23:07:11 +00:00
cgraphunit.c PR c/81854 - weak alias of an incompatible symbol accepted 2017-09-19 08:27:32 -06:00
ChangeLog range_int_cst_p handling in extract_range_from_binary_expr_1 2017-09-22 17:00:56 +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-2016
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
chkp-builtins.def
cif-code.def
cilk-builtins.def
cilk-common.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
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-stack-adj.c (combine_stack_adjustments_for_block): Do nothing for stack adjustments with REG_STACK_CHECK. 2017-09-19 23:43:28 -06:00
combine.c re PR rtl-optimization/82192 (gcc produces incorrect code with -O2 and bit-field) 2017-09-15 17:54:04 +02:00
common.md
common.opt enable handling of -gno- command-line options as negated prefixes 2017-09-21 02:18:02 +00:00
compare-elim.c Remove enum before machine_mode 2017-07-05 15:29:27 +00:00
conditions.h
config.build
config.gcc [arm] auto-generate arm-isa.h from CPU descriptions 2017-09-22 17:17:11 +01:00
config.host
config.in Better ISR prologues by supporting GASes __gcc_isr pseudo insn. 2017-07-10 09:49:18 +00:00
configure [ARC] Check the assembler for gdwar2 support. 2017-09-18 15:56:01 +02:00
configure.ac [ARC] Check the assembler for gdwar2 support. 2017-09-18 15:56:01 +02:00
context.c
context.h
convert.c Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
convert.h
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
coretypes.h Turn FUNCTION_ARG_PADDING into a target hook 2017-09-04 10:50:38 +00:00
coverage.c [19/77] Add a smallest_int_mode_for_size helper function 2017-08-30 11:10:44 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c Drop df_ from df_read_modify_subreg_p 2017-08-30 15:28:18 +00:00
cse.c Add a partial_subreg_p predicate 2017-08-30 15:25:38 +00:00
cselib.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
DATESTAMP Daily bump. 2017-09-22 00:16:16 +00:00
dbgcnt.c
dbgcnt.def Add debug counter for loop array prefetching. 2017-06-06 17:00:46 +00:00
dbgcnt.h
dbxout.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
dbxout.h Remove Pascal language in source code. 2017-07-14 07:05:27 +00:00
dce.c
dce.h
ddg.c
ddg.h
debug.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
debug.h re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
defaults.h Turn SLOW_UNALIGNED_ACCESS into a target hook 2017-09-12 13:27:55 +00:00
DEV-PHASE
df-core.c
df-problems.c Drop df_ from df_read_modify_subreg_p 2017-08-30 15:28:18 +00:00
df-scan.c Drop df_ from df_read_modify_subreg_p 2017-08-30 15:28:18 +00:00
df.h Drop df_ from df_read_modify_subreg_p 2017-08-30 15:28:18 +00:00
dfp.c [2/77] Add an E_ prefix to case statements 2017-08-30 11:08:28 +00:00
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h re PR c/81233 (--Wdiscarded-qualifiers and Wincompatible-pointer-types missing important detail) 2017-08-09 11:28:22 +00:00
diagnostic-show-locus.c diagnostic-show-locus.c: remove unused field from class colorizer 2017-08-16 19:08:16 +00:00
diagnostic.c re PR c/81233 (--Wdiscarded-qualifiers and Wincompatible-pointer-types missing important detail) 2017-08-09 11:28:22 +00:00
diagnostic.def
diagnostic.h
dojump.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
dojump.h asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
dominance.c
dominance.h
domwalk.c domwalk: optimize basic block sorting 2017-07-25 13:53:58 +03:00
domwalk.h
double-int.c
double-int.h
dse.c Turn MODES_TIEABLE_P into a target hook 2017-09-04 10:50:23 +00:00
dumpfile.c dumpfile.c: Include profile-count.h 2017-07-02 22:25:59 +00:00
dumpfile.h dumpfile.h (enum tree_dump_index): Rename TDI_generic to TDI_gimple. 2017-06-07 10:57:11 +02:00
dwarf2asm.c dwarf2asm.c (dw2_asm_output_nstring): Encode double quote character for AIX. 2017-07-25 09:11:37 -04:00
dwarf2asm.h
dwarf2cfi.c re PR target/81361 (broken exception handling at -O2) 2017-09-18 09:15:32 +00:00
dwarf2out.c enable handling of -gno- command-line options as negated prefixes 2017-09-21 02:18:02 +00:00
dwarf2out.h
edit-context.c
edit-context.h
emit-rtl.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
emit-rtl.h Update comment about is_leaf 2017-06-15 14:17:04 +00:00
errors.c
errors.h
et-forest.c
et-forest.h
except.c PR82045: Avoid passing machine modes through "..." 2017-09-04 07:30:53 +00:00
except.h
exec-tool.in
explow.c explow.c (compute_stack_clash_protection_loop_data): Use CONST_INT_P instead of explicit test. 2017-09-20 15:59:50 -06:00
explow.h explow.c: Include "params.h". 2017-09-19 23:05:12 -06:00
expmed.c Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
expmed.h [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
expr.c Make more use of simplify_gen_binary 2017-09-21 11:14:01 +00:00
expr.h [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
fibonacci_heap.c
fibonacci_heap.h
file-find.c
file-find.h
final.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
fixed-value.c [67/77] Use scalar_mode in fixed-value.* 2017-08-30 11:19:47 +00:00
fixed-value.h [76/77] Add a scalar_mode_pod class 2017-08-30 11:20:55 +00:00
flag-types.h common.opt (-fstack-clash-protection): New option. 2017-09-19 22:56:54 -06:00
flags.h
fold-const-call.c [34/77] Add a SCALAR_INT_TYPE_MODE macro 2017-08-30 11:13:13 +00:00
fold-const-call.h
fold-const.c Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
fold-const.h re PR c++/82084 (ICE: constructing wstring with -O3) 2017-09-04 14:10:11 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function-tests.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
function.c function.c (dump_stack_clash_frame_info): New function. 2017-09-19 23:23:51 -06:00
function.h function.c (dump_stack_clash_frame_info): New function. 2017-09-19 23:23:51 -06:00
fwprop.c [26/77] Use is_a <scalar_int_mode> in subreg/extract simplifications 2017-08-30 11:11:42 +00:00
gcc-ar.c
gcc-main.c
gcc-plugin.h
gcc-rich-location.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
gcc-rich-location.h diagnostics: support compact printing of secondary locations 2017-07-11 13:43:31 +00:00
gcc-symtab.h
gcc.c Add -static-pie to GCC driver to create static PIE 2017-09-12 09:30:28 -07:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c invoke.texi: Document the -fprofile-abs-path option. 2017-06-05 19:27:30 +00:00
gcov-io.h invoke.texi: Document the -fprofile-abs-path option. 2017-06-05 19:27:30 +00:00
gcov-iov.c
gcov-tool.c
gcov.c Fix segfault in gcov.c (PR gcov-profile/81561). 2017-08-01 14:06:13 +00:00
gcse-common.c
gcse-common.h
gcse.c
gcse.h
gdbasan.in
gdbhooks.py gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces instead of tab. 2017-09-04 10:10:51 +02:00
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c PR c++/80560 - warn on undefined memory operations involving non-trivial types 2017-06-15 21:48:59 -06:00
genautomata.c
gencfn-macros.c
gencheck.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
genchecksum.c
gencodes.c
genconditions.c [3/77] Allow machine modes to be classes 2017-08-30 11:08:36 +00:00
genconfig.c
genconstants.c
genemit.c
genenums.c
generic-match-head.c [Patch match.pd] Fold (A / (1 << B)) to (A >> B) 2017-06-22 08:39:04 +00:00
generic-match.h
genextract.c
genflags.c
gengenrtl.c replace rtx_alloc_stat with c++ 2017-07-29 01:39:17 +00:00
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c
gengtype.h
genhooks.c
genmatch.c match.pd: Remove superfluous :c. 2017-07-28 13:38:01 +00:00
genmddeps.c
genmddump.c
genmodes.c [77/77] Add a complex_mode class 2017-08-30 11:21:04 +00:00
genmultilib genmultilib (combination_space): Accept '+' in option names. 2017-06-28 11:15:59 +02:00
genopinit.c
genoutput.c [1/77] Add an E_ prefix to mode names 2017-08-30 11:08:14 +00:00
genpeep.c
genpreds.c Turn HARD_REGNO_MODE_OK into a target hook 2017-09-04 10:49:59 +00:00
genrecog.c [1/77] Add an E_ prefix to mode names 2017-08-30 11:08:14 +00: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 ggc.h (empty_string): Delete. 2017-06-30 17:00:46 +00:00
gimple-builder.c
gimple-builder.h
gimple-expr.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
gimple-expr.h
gimple-fold.c Add gimple_build_vector* helpers 2017-09-14 16:18:55 +00:00
gimple-fold.h Add gimple_build_vector* helpers 2017-09-14 16:18:55 +00:00
gimple-iterator.c
gimple-iterator.h
gimple-laddress.c
gimple-low.c Make early return predictor more precise. 2017-06-21 12:51:46 +00:00
gimple-low.h
gimple-match-head.c gimple-match-head.c (do_valueize): Return OP if valueize returns NULL_TREE. 2017-07-26 11:35:45 +00:00
gimple-match.h
gimple-predict.h Make early return predictor more precise. 2017-06-21 12:51:46 +00:00
gimple-pretty-print.c PR c/81117 - Improve buffer overflow checking in strncpy - part 1 2017-08-14 12:35:13 -06:00
gimple-pretty-print.h PR c/81117 - Improve buffer overflow checking in strncpy - part 1 2017-08-14 12:35:13 -06:00
gimple-ssa-backprop.c
gimple-ssa-isolate-paths.c Fix profile update in tree-ssa-isolate-paths.c (PR tree-optimization/82059). 2017-09-01 13:02:37 +00:00
gimple-ssa-nonnull-compare.c
gimple-ssa-split-paths.c
gimple-ssa-sprintf.c [20/77] Replace MODE_INT checks with is_int_mode 2017-08-30 11:10:53 +00:00
gimple-ssa-store-merging.c [store-merging] Use store order as tie-breaker in sort_by_bitpos 2017-09-13 13:49:50 +00:00
gimple-ssa-strength-reduction.c 2017-09-06 Richard Biener <rguenther@suse.de> 2017-09-06 12:55:13 +00:00
gimple-ssa-warn-alloca.c
gimple-ssa.h
gimple-streamer-in.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
gimple-streamer-out.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
gimple-streamer.h
gimple-walk.c
gimple-walk.h
gimple.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
gimple.def
gimple.h use c++ for gimple_build_debug_bind{,_source} 2017-07-29 01:39:42 +00:00
gimplify-me.c
gimplify-me.h
gimplify.c Set the call nothrow flag more often 2017-08-29 07:47:05 +00:00
gimplify.h
glimits.h
godump.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
graph.c Save and restore EDGE_DFS_BACK in draw_cfg_edges 2017-07-04 09:44:00 +00:00
graph.h
graphds.c graphds.c (add_edge): Intitialize edge's attached data. 2017-06-07 11:29:37 +00:00
graphds.h graphds.c (add_edge): Intitialize edge's attached data. 2017-06-07 11:29:37 +00:00
graphite-dependences.c
graphite-isl-ast-to-gimple.c graphite-isl-ast-to-gimple.c (graphite_verify): Inline into single caller. 2017-09-22 13:16:21 +00:00
graphite-optimize-isl.c graphite-isl-ast-to-gimple.c (graphite_verify): Inline into single caller. 2017-09-22 13:16:21 +00:00
graphite-poly.c
graphite-scop-detection.c graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Verify both BBs contain loop PHI nodes before dispatching to copy_loop_phi_args. 2017-09-22 07:31:32 +00:00
graphite-sese-to-poly.c graphite-sese-to-poly.c (extract_affine): Properly handle POINTER_PLUS_EXPR, BIT_NOT_EXPR and conversion to signed. 2017-09-20 07:34:55 +00:00
graphite.c graphite-isl-ast-to-gimple.c (graphite_verify): Inline into single caller. 2017-09-22 13:16:21 +00:00
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c Rename existing insn_cost to insn_sched_cost 2017-09-21 16:32:34 +02:00
hard-reg-set.h Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
hash-map-tests.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
hash-map-traits.h
hash-map.h
hash-set-tests.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
hash-set.h
hash-table.c
hash-table.h * hash-table.h (hash_table_mod1): Fix indentation. 2017-07-03 15:06:02 +00:00
hash-traits.h Use base inequality for some vector alias checks 2017-08-04 10:40:35 +00:00
highlev-plugin-common.h
hooks.c Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
hooks.h Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hsa-brig-format.h
hsa-brig.c [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
hsa-builtins.def
hsa-common.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
hsa-common.h
hsa-dump.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
hsa-gen.c Make HSA resilient to side-effects of split_edge 2017-09-11 11:09:26 +02:00
hsa-regalloc.c Make HSA resilient to side-effects of split_edge 2017-09-11 11:09:26 +02:00
hw-doloop.c cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition instead of flag_reorder_blocks_and_partition. 2017-06-08 14:23:43 +00:00
hw-doloop.h
hwint.c
hwint.h
ifcvt.c Add a partial_subreg_p predicate 2017-08-30 15:25:38 +00:00
ifcvt.h
inchash.c
inchash.h
incpath.c Support $SYSROOT for = in -I etc. 2017-06-22 14:37:17 +00:00
incpath.h
init-regs.c
input.c re PR c/81417 (-Wsign-compare should print types being compared) 2017-08-09 08:51:20 +00:00
input.h re PR c/81417 (-Wsign-compare should print types being compared) 2017-08-09 08:51:20 +00:00
insn-addr.h
insn-notes.def
internal-fn.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
internal-fn.def Add missing ECF_NOTHROW flags to internal.def 2017-08-17 16:31:09 +00:00
internal-fn.h
intl.c
intl.h
ipa-chkp.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ipa-chkp.h
ipa-comdats.c ipa-comdats.c: Remove optimize check from gate. 2017-07-07 13:28:35 +00:00
ipa-cp.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ipa-devirt.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ipa-fnsummary.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ipa-fnsummary.h
ipa-hsa.c
ipa-icf-gimple.c Fix IPA ICF with ASM statements (PR inline-asm/82001). 2017-08-30 12:38:31 +00:00
ipa-icf-gimple.h Fix IPA ICF with ASM statements (PR inline-asm/82001). 2017-08-30 12:38:31 +00:00
ipa-icf.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
ipa-icf.h
ipa-inline-analysis.c ipa-comdats.c: Remove optimize check from gate. 2017-07-07 13:28:35 +00:00
ipa-inline-transform.c ipa-inline-transform.c (update_noncloned_frequencies): Update also counts. 2017-06-16 11:41:19 +00:00
ipa-inline.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ipa-inline.h re PR ipa/80565 (ICE at -O2 and -O3 in 32-bit mode (not 64-bit) on x86_64-linux-gnu (in edge_badness, at ipa-inline.c:1028)) 2017-06-29 11:50:21 +03:00
ipa-polymorphic-call.c re PR tree-optimization/81603 (Various compiler UB on very large constant offsets) 2017-07-31 10:22:14 +02:00
ipa-predicate.c
ipa-predicate.h
ipa-profile.c cgraph.c (cgraph_edge::maybe_hot_p): Do not check flag_branch_probabilities. 2017-06-08 15:15:51 +00:00
ipa-prop.c re PR ipa/81112 (internal compiler error: tree check: expected integer_cst, have range_expr in get_len, at tree.h:5321) 2017-06-19 07:17:55 +00:00
ipa-prop.h
ipa-pure-const.c
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
ipa-utils.c ipa-utils.c (ipa_merge_profiles): Fix merging when dst is uninitialized while src is not. 2017-07-04 17:05:26 +00:00
ipa-utils.h Remove Java references in source code. 2017-07-14 07:44:33 +00:00
ipa-visibility.c Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
ipa.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ira-build.c Add a partial_subreg_p predicate 2017-08-30 15:25:38 +00:00
ira-color.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
ira-conflicts.c Turn HARD_REGNO_CALL_PART_CLOBBERED into a target hook 2017-09-04 10:49:21 +00:00
ira-costs.c Make more use of in_hard_reg_set_p 2017-09-12 13:28:37 +00:00
ira-emit.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
ira-int.h Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
ira-lives.c Drop df_ from df_read_modify_subreg_p 2017-08-30 15:28:18 +00:00
ira.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
ira.h Turn HARD_REGNO_MODE_OK into a target hook 2017-09-04 10:49:59 +00:00
is-a.h [59/77] Add a rtx_jump_table_data::get_data_mode helper 2017-08-30 11:18:37 +00:00
jump.c
langhooks-def.h PR c++/70029 - ICE with ref-qualifier and -flto 2017-09-08 18:39:17 -04:00
langhooks.c
langhooks.h PR c++/70029 - ICE with ref-qualifier and -flto 2017-09-08 18:39:17 -04:00
LANGUAGES
lcm.c
lcm.h
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
loop-init.c
loop-invariant.c [25/77] Use is_a <scalar_int_mode> for bitmask optimisations 2017-08-30 11:11:32 +00:00
loop-iv.c [36/77] Use scalar_int_mode in the RTL iv routines 2017-08-30 11:13:59 +00:00
loop-unroll.c Add copy_rtx call to RTL loop unroller 2017-09-21 11:10:48 +00:00
loop-unroll.h
lower-subreg.c Make mode_for_size return an opt_mode 2017-09-05 19:57:18 +00:00
lower-subreg.h [16/77] Add scalar_int_mode_pod 2017-08-30 11:10:18 +00:00
lra-assigns.c lra: make reload_pseudo_compare_func a proper comparator 2017-09-19 13:16:20 +03:00
lra-coalesce.c Add a partial_subreg_p predicate 2017-08-30 15:25:38 +00:00
lra-constraints.c Turn SECONDARY_MEMORY_NEEDED into a hook 2017-09-13 17:05:16 +00:00
lra-eliminations.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
lra-int.h
lra-lives.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
lra-remat.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
lra-spills.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
lra.c Make more use of end_hard_regno 2017-09-12 13:28:27 +00:00
lra.h
lto-cgraph.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
lto-compress.c
lto-compress.h
lto-opts.c Remove Java references in source code. 2017-07-14 07:44:33 +00:00
lto-section-in.c
lto-section-names.h
lto-section-out.c
lto-streamer-in.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
lto-streamer-out.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
lto-streamer.c
lto-streamer.h re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
lto-wrapper.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
machmode.def
machmode.h Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
main.c
Makefile.in Makefile.in (install-mkheaders): Fix typo, where the multi_dir variable was referenced as multidir in command. 2017-08-07 19:55:55 +00:00
match.pd re PR tree-optimization/71026 (Missing division optimizations) 2017-09-15 10:17:55 -06:00
mcf.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
mem-stats-traits.h
mem-stats.h
memmodel.h
memory-block.cc
memory-block.h
mkconfig.sh Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
mode-classes.def
mode-switching.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
modulo-sched.c cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
multiple_target.c Fix removal of ifunc (PR ipa/81214). 2017-06-30 13:51:19 +00:00
omp-builtins.def
omp-expand.c re PR middle-end/81768 (error: control flow in the middle of basic block) 2017-09-05 23:31:39 +02:00
omp-expand.h
omp-general.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
omp-general.h
omp-grid.c
omp-grid.h
omp-low.c re PR middle-end/81768 (error: control flow in the middle of basic block) 2017-09-05 23:32:35 +02:00
omp-low.h
omp-offload.c omp-offload.c (oacc_xform_loop): Enable SIMD vectorization on non-SIMT targets in acc vector loops. 2017-09-18 07:15:37 -07:00
omp-offload.h
omp-simd-clone.c [65/77] Add a SCALAR_TYPE_MODE macro 2017-08-30 11:19:29 +00:00
ONEWS
opt-functions.awk Validate that Init value is within range defined by IntegerRange. 2017-07-27 12:58:07 +00:00
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c [20/77] Replace MODE_INT checks with is_int_mode 2017-08-30 11:10:53 +00:00
optabs-libfuncs.h
optabs-query.c Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
optabs-query.h Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
optabs-tree.c [Patch match.pd] Fold (A / (1 << B)) to (A >> B) 2017-06-22 08:39:04 +00:00
optabs-tree.h [Patch match.pd] Fold (A / (1 << B)) to (A >> B) 2017-06-22 08:39:04 +00:00
optabs.c Make mode_for_vector return an opt_mode 2017-09-05 19:57:39 +00:00
optabs.def re PR middle-end/19706 (Recognize common Fortran usages of copysign.) 2017-08-08 13:15:44 +00:00
optabs.h asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
optc-gen.awk enable handling of -gno- command-line options as negated prefixes 2017-09-21 02:18:02 +00:00
optc-save-gen.awk Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
opth-gen.awk
opts-common.c enable handling of -gno- command-line options as negated prefixes 2017-09-21 02:18:02 +00:00
opts-diagnostic.h
opts-global.c Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
opts.c asan.c (initialize_sanitizer_builtins): Add BT_FN_VOID_UINT8_UINT8... 2017-09-06 16:30:46 +02:00
opts.h Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
output.h re PR target/81979 (Assembler messages: Error: can't resolve .got2' {.got2 section} - .LCF0' {.text.unlikely section}) 2017-09-07 13:20:40 +02:00
params-enum.h
params-list.h
params-options.h
params.c
params.def common.opt (-fstack-clash-protection): New option. 2017-09-19 22:56:54 -06:00
params.h asan.h (asan_sanitize_allocas_p): Declare. 2017-07-06 19:05:00 +03:00
pass_manager.h
passes.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
passes.def passes.def (pass_split_crit_edges): Remove instance before PRE. 2017-09-07 07:44:43 +00:00
plugin.c passes.c: implement pre-ICE emergency dumping 2017-05-31 16:26:54 +03:00
plugin.def
plugin.h passes.c: implement pre-ICE emergency dumping 2017-05-31 16:26:54 +03:00
postreload-gcse.c cgraph.c (cgraph_edge::maybe_hot_p): Do not check flag_branch_probabilities. 2017-06-08 15:15:51 +00:00
postreload.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
predict.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
predict.def Recover GOTO predictor. 2017-07-31 11:16:00 +00:00
predict.h predict.c (propagate_unlikely_bbs_forward): Break out from ... 2017-07-19 18:09:39 +00:00
prefix.c
prefix.h
pretty-print.c PR c/81859 - [8 Regression] valgrind error from warn_about_normalization 2017-08-17 10:50:06 -06:00
pretty-print.h Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
print-rtl-function.c function.c (fndecl_name): Use verbosity 1 (no arguments) for lang_hooks.decl_printable_name. 2017-08-23 13:44:20 +00:00
print-rtl.c print-rtl: NOT is ~, not ! 2017-08-07 12:21:32 +02:00
print-rtl.h
print-tree.c Add warn_if_not_aligned attribute 2017-08-18 02:38:38 -07:00
print-tree.h
profile-count.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
profile-count.h profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +00:00
profile.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
profile.h profile.c (edge_gcov_counts): Turn to pointer. 2017-06-09 11:38:35 +00:00
read-md.c
read-md.h Pass rtx and index to read-md.c iterator routines 2017-08-21 09:51:14 +00:00
read-rtl-function.c tree.h (id_equal): New. 2017-06-11 01:29:14 -04:00
read-rtl-function.h
read-rtl.c Pass rtx and index to read-md.c iterator routines 2017-08-21 09:51:14 +00:00
README.Portability
real.c Reverted r249005 until PowerPC and AIX issues sorted. 2017-06-09 08:10:51 +00:00
real.h (decimal_)float_mode_for_size in real.h 2017-09-05 19:57:09 +00:00
realmpfr.c
realmpfr.h
recog.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
recog.h
ree.c Use hard_regno_nregs instead of HARD_REGNO_NREGS 2017-09-12 13:29:18 +00:00
reg-notes.def combine-stack-adj.c (combine_stack_adjustments_for_block): Do nothing for stack adjustments with REG_STACK_CHECK. 2017-09-19 23:43:28 -06:00
reg-stack.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
regcprop.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
regcprop.h
reginfo.c Turn HARD_REGNO_NREGS into a target hook 2017-09-12 13:29:36 +00:00
regrename.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
regrename.h
regs.h Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
regset.h
regstat.c
reload.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
reload.h
reload1.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
reorg.c profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +00:00
resource.c
resource.h
rtl-chkp.c
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl-tests.c Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
rtl.c replace shallow_copy_rtx_stat with c++ 2017-07-29 01:39:25 +00:00
rtl.def
rtl.h explow.c: Include "params.h". 2017-09-19 23:05:12 -06:00
rtlanal.c Turn CANNOT_CHANGE_MODE_CLASS into a hook 2017-09-15 12:56:34 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h [49/77] Simplify nonzero/num_sign_bits hooks 2017-08-30 11:17:12 +00:00
rtlhooks.c Turn TRULY_NOOP_TRUNCATION into a hook 2017-09-15 13:47:41 +00:00
run-rtl-passes.c
run-rtl-passes.h
sancov.c Fix SPARC bootstrap: sancov.c needs memmodel.h 2017-09-08 08:35:23 +00:00
sanitizer.def asan.c (initialize_sanitizer_builtins): Add BT_FN_VOID_UINT8_UINT8... 2017-09-06 16:30:46 +02:00
sanopt.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
sbitmap.c
sbitmap.h
sched-deps.c combine-stack-adj.c (combine_stack_adjustments_for_block): Do nothing for stack adjustments with REG_STACK_CHECK. 2017-09-19 23:43:28 -06:00
sched-ebb.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
sched-int.h Rename existing insn_cost to insn_sched_cost 2017-09-21 16:32:34 +02:00
sched-rgn.c Rename existing insn_cost to insn_sched_cost 2017-09-21 16:32:34 +02:00
sdbout.c [74/77] Various small scalar_mode changes 2017-08-30 11:20:47 +00:00
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c Rename existing insn_cost to insn_sched_cost 2017-09-21 16:32:34 +02:00
sel-sched-ir.h
sel-sched.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
sel-sched.h
selftest-rtl.c
selftest-rtl.h
selftest-run-tests.c Come up with selftests for predict.c. 2017-06-09 07:38:52 +00:00
selftest.c
selftest.h Come up with selftests for predict.c. 2017-06-09 07:38:52 +00:00
sese.c sese.c: Include cfganal.h. 2017-09-22 10:05:34 +00:00
sese.h graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Verify both BBs contain loop PHI nodes before dispatching to copy_loop_phi_args. 2017-09-22 07:31:32 +00:00
shrink-wrap.c shrink-wrap.c (handle_simple_exit): Update profile. 2017-06-06 08:08:58 +00:00
shrink-wrap.h
signop.h
simplify-rtx.c Fix typo in simplify_binary_operation_1 2017-09-19 17:50:46 +02:00
sparseset.c
sparseset.h
spellcheck-tree.c
spellcheck-tree.h
spellcheck.c
spellcheck.h
sreal.c
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c Fix emission of exception dispatch (PR middle-end/82154). 2017-09-13 19:12:08 +00:00
stmt.h
stor-layout.c * stor-layout.c (bit_from_pos): Do not distribute the conversion. 2017-09-21 15:45:36 +00:00
stor-layout.h Make mode_for_size_tree return an opt_mode 2017-09-05 19:57:56 +00:00
store-motion.c
streamer-hooks.c
streamer-hooks.h
stringpool.c ggc.h (empty_string): Delete. 2017-06-30 17:00:46 +00:00
stringpool.h
substring-locations.c
substring-locations.h
symbol-summary.h
symtab.c Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
sync-builtins.def
system.h Turn FUNCTION_ARG_OFFSET into a hook 2017-09-15 14:37:28 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def retire mem_signal_fence pattern 2017-09-01 17:08:42 +03:00
target.def Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
target.h Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
targhooks.c Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
targhooks.h Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
timevar.c
timevar.def Make expansion of balanced binary trees of switches on tree level. 2017-08-29 14:12:44 +00:00
timevar.h
tlink.c
toplev.c toplev: read from /dev/urandom only when needed 2017-09-21 15:58:14 +03:00
toplev.h toplev: read from /dev/urandom only when needed 2017-09-21 15:58:14 +03:00
tracer.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
tracer.h
trans-mem.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
trans-mem.h
tree-affine.c tree-affine.c (ssa.h): Include header file. 2017-06-07 10:49:09 +00:00
tree-affine.h
tree-call-cdce.c Set the call nothrow flag more often 2017-08-29 07:47:05 +00:00
tree-cfg.c tree-cfg.c (verify_gimple_assign_binary): Add verification for WIDEN_SUM_EXPR... 2017-09-13 08:09:31 +00:00
tree-cfg.h Learn CFG cleanup to transform single case switches to gcond. 2017-09-05 08:12:27 +00:00
tree-cfgcleanup.c Learn CFG cleanup to transform single case switches to gcond. 2017-09-05 08:12:27 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c dumpfile.c: Include profile-count.h 2017-07-02 22:25:59 +00:00
tree-chkp.c Do not instrument void variables with MPX (PR tree-opt/79987). 2017-08-11 10:01:13 +00:00
tree-chkp.h
tree-chrec.c
tree-chrec.h
tree-complex.c * tree-complex.c (expand_complex_div_wide): update profile. 2017-07-02 22:11:14 +00:00
tree-core.h Store VECTOR_CST_NELTS directly in tree_node 2017-09-14 15:25:57 +00:00
tree-data-ref.c Pool alignment information for common bases 2017-08-04 10:42:53 +00:00
tree-data-ref.h Pool alignment information for common bases 2017-08-04 10:42:53 +00:00
tree-dfa.c
tree-dfa.h
tree-diagnostic.c PR c/81117 - Improve buffer overflow checking in strncpy - part 1 2017-08-14 12:35:13 -06:00
tree-diagnostic.h
tree-dump.c Remove TYPE_METHODS. 2017-07-21 00:27:51 +00:00
tree-dump.h
tree-eh.c tree-eh.c (lower_try_finally_switch): Set the location of the finally on the entire header of the finally block in... 2017-08-30 19:10:38 +00:00
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c re PR tree-optimization/82291 (wrong code at -O3 on x86_64-linux-gnu) 2017-09-22 12:00:55 +00:00
tree-if-conv.h
tree-inline.c re PR sanitizer/81715 (asan-stack=1 redzone allocation is too inflexible) 2017-09-21 14:26:34 +02:00
tree-inline.h
tree-into-ssa.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c Fix build of --enable-gather-detailed-mem-stats (PR bootstrap/81864). 2017-08-17 19:56:46 +00:00
tree-nested.c [35/77] Add uses of as_a <scalar_int_mode> 2017-08-30 11:13:29 +00:00
tree-nested.h
tree-nrv.c
tree-object-size.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-object-size.h
tree-outof-ssa.c
tree-outof-ssa.h
tree-parloops.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-parloops.h
tree-pass.h Make expansion of balanced binary trees of switches on tree level. 2017-08-29 14:12:44 +00:00
tree-phinodes.c gimple.h (gimple_phi_result): Add gphi * overload. 2017-07-20 12:37:14 +00:00
tree-phinodes.h
tree-predcom.c re PR tree-optimization/81744 (ICE: verify_ssa failed, at tree-ssa.c:1186) 2017-08-08 11:32:05 +00:00
tree-pretty-print.c function.c (fndecl_name): Use verbosity 1 (no arguments) for lang_hooks.decl_printable_name. 2017-08-23 13:44:20 +00:00
tree-pretty-print.h PR c/81117 - Improve buffer overflow checking in strncpy - part 1 2017-08-14 12:35:13 -06:00
tree-profile.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-scalar-evolution.c re PR tree-optimization/81090 ([graphite] ICE in loop_preheader_edge) 2017-06-16 12:19:24 +00:00
tree-scalar-evolution.h
tree-sra.c Enqueue all SRA links for write flag propagation 2017-09-06 11:25:00 +02:00
tree-ssa-address.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
tree-ssa-address.h
tree-ssa-alias.c re PR tree-optimization/81884 (Invalid code generation with zero size arrays or flexible array members) 2017-08-21 07:37:59 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c Tighten tree-ssa-ccp.c:get_value_for_expr condition 2017-09-21 11:00:43 +00:00
tree-ssa-ccp.h
tree-ssa-coalesce.c
tree-ssa-coalesce.h
tree-ssa-copy.c
tree-ssa-dce.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
tree-ssa-dom.c tree-ssa-dom.c (edge_info::record_simple_equiv): Call derive_equivalences. 2017-08-28 23:03:36 -06:00
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
tree-ssa-ifcombine.c asan.c (initialize_sanitizer_builtins): Add BT_FN_VOID_UINT8_UINT8... 2017-09-06 16:30:46 +02:00
tree-ssa-live.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c re PR middle-end/81832 (ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2273) 2017-08-16 15:02:03 +00:00
tree-ssa-loop-im.c tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member. 2017-08-21 07:21:33 +00:00
tree-ssa-loop-ivcanon.c cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
tree-ssa-loop-ivopts.c [62/77] Big machine_mode to scalar_int_mode replacement 2017-08-30 11:18:59 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c [19/77] Add a smallest_int_mode_for_size helper function 2017-08-30 11:10:44 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c re PR tree-optimization/81913 (wrong code at -O1) 2017-08-24 15:38:39 +00:00
tree-ssa-loop-niter.h tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take struct function as arg. 2017-06-19 07:26:50 +00:00
tree-ssa-loop-prefetch.c Pool alignment information for common bases 2017-08-04 10:42:53 +00:00
tree-ssa-loop-split.c cfg.c (scale_bbs_frequencies): New function. 2017-07-01 20:46:40 +00:00
tree-ssa-loop-unswitch.c re PR tree-optimization/81455 (Compile-time hog w/ -O1 -funswitch-loops) 2017-07-25 13:24:51 +00:00
tree-ssa-loop.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-ssa-loop.h
tree-ssa-math-opts.c [65/77] Add a SCALAR_TYPE_MODE macro 2017-08-30 11:19:29 +00:00
tree-ssa-operands.c re PR tree-optimization/81546 (ICE at -O3 during GIMPLE pass dom) 2017-07-25 11:05:55 +00:00
tree-ssa-operands.h
tree-ssa-phionlycprop.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
tree-ssa-phiopt.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
tree-ssa-phiprop.c re PR tree-optimization/81365 (GCC miscompiles swap) 2017-07-17 11:10:23 +02:00
tree-ssa-pre.c re PR tree-optimization/82157 (ICE on valid code at -O2 and -O3: cannot update SSA form) 2017-09-12 14:15:37 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/64910 (tree reassociation results in poor code) 2017-09-05 23:20:25 -06:00
tree-ssa-sccvn.c re PR tree-optimization/82264 (ICE in vn_phi_lookup at gcc/tree-ssa-sccvn.c:3125) 2017-09-20 11:08:35 +00:00
tree-ssa-sccvn.h
tree-ssa-scopedtables.c re PR tree-optimization/82052 (ICE with "-O3 -m32" on x86_64-linux-gnu (internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c:71)) 2017-09-01 09:32:15 -06:00
tree-ssa-scopedtables.h re PR tree-optimization/81741 (Misoptimisation : replacing a constant field read access by a function call) 2017-08-22 09:13:09 -06:00
tree-ssa-sink.c
tree-ssa-strlen.c Turn SLOW_UNALIGNED_ACCESS into a target hook 2017-09-12 13:27:55 +00:00
tree-ssa-structalias.c tree-ssa-structalias.c (solve_graph): When propagating to successors update the graphs succ edges and avoid duplicate... 2017-08-17 12:10:11 +00:00
tree-ssa-tail-merge.c re PR sanitizer/80998 (Implement -fsanitize=pointer-overflow) 2017-07-28 12:37:51 +02:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadbackward.c tree-ssa-threadbackward.c (fsm_find_thread_path): Make GC vectors heap vectors. 2017-09-12 07:24:32 +00:00
tree-ssa-threadbackward.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c tree-ssa-threadbackward.c (fsm_find_thread_path): Make GC vectors heap vectors. 2017-09-12 07:24:32 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c
tree-ssa-uninit.c tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory accesses where the use is for the first operand of a... 2017-07-25 10:17:46 -07:00
tree-ssa.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-ssa.h
tree-ssanames.c [34/77] Add a SCALAR_INT_TYPE_MODE macro 2017-08-30 11:13:13 +00:00
tree-ssanames.h tree-ssanames.c (set_range_info_raw): Abstract from ... 2017-06-30 15:36:41 +00:00
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c [76/77] Add a scalar_mode_pod class 2017-08-30 11:20:55 +00:00
tree-streamer-out.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c Learn CFG cleanup to transform single case switches to gcond. 2017-09-05 08:12:27 +00:00
tree-tailcall.c Add a type_has_mode_precision_p helper function 2017-08-21 14:50:56 +00:00
tree-vect-data-refs.c Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
tree-vect-generic.c Use vec<> for constant permute masks 2017-09-14 16:04:32 +00:00
tree-vect-loop-manip.c Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
tree-vect-loop.c Move computation of SLP_TREE_NUMBER_OF_VEC_STMTS 2017-09-18 15:50:03 +00:00
tree-vect-patterns.c tree-vect-patterns.c (vect_pattern_recog_1): Use VECTOR_TYPE_P instead of VECTOR_MODE_P check. 2017-08-30 16:16:37 +00:00
tree-vect-slp.c Move computation of SLP_TREE_NUMBER_OF_VEC_STMTS 2017-09-18 15:50:03 +00:00
tree-vect-stmts.c Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
tree-vectorizer.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-vectorizer.h Let the target choose a vectorisation alignment 2017-09-22 16:44:29 +00:00
tree-vrp.c range_int_cst_p handling in extract_range_from_binary_expr_1 2017-09-22 17:00:56 +00:00
tree-vrp.h tree-vrp.h: Add include guard. 2017-08-03 07:42:36 +00:00
tree.c Fix unguarded uses of tree_to_uhwi 2017-09-21 11:06:48 +00:00
tree.def re PR target/81521 (After [r250413] GCC 8.0 doesn't compile for Windows) 2017-07-24 15:02:06 +02:00
tree.h Use vec<> in build_vector 2017-09-14 15:46:08 +00:00
treestruct.def
tsan.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.c
typed-splay-tree.h
ubsan.c [65/77] Add a SCALAR_TYPE_MODE macro 2017-08-30 11:19:29 +00:00
ubsan.h re PR sanitizer/80998 (Implement -fsanitize=pointer-overflow) 2017-07-28 12:37:51 +02:00
valtrack.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
valtrack.h
value-prof.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
value-prof.h asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
var-tracking.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
varasm.c Convert hard_regno_nregs to a function 2017-09-12 13:29:05 +00:00
varasm.h
varpool.c Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
vec.c
vec.h PR c++/80560 - warn on undefined memory operations involving non-trivial types 2017-06-15 21:48:59 -06:00
version.c
version.h
vmsdbg.h
vmsdbgout.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
wide-int-print.h
wide-int.cc Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
wide-int.h [21/77] Replace SCALAR_INT_MODE_P checks with is_a <scalar_int_mode> 2017-08-30 11:11:02 +00:00
xcoff.h
xcoffout.c Remove Pascal language in source code. 2017-07-14 07:05:27 +00:00
xcoffout.h

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

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.