8sa1-gcc/gcc
Richard Sandiford b5f2d801b1 [9/77] Add SCALAR_FLOAT_TYPE_MODE
This patch adds a macro that extracts the TYPE_MODE and forcibly
converts it to a scalar_float_mode.  The forcible conversion
includes a gcc_checking_assert that the mode is a SCALAR_FLOAT_MODE_P.

This becomes important as more static type checking is added by
later patches.  It has the additional benefit of bypassing the
VECTOR_TYPE_P (...) ? vector_type_mode (...) : ... condition
in TYPE_MODE; in release builds the new macro is a simple
field access.

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

gcc/
	* tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
	* builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
	* fold-const.c (fold_convert_const_real_from_fixed): Likewise.
	(native_encode_real): Likewise.
	(native_interpret_real): Likewise.
	* hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
	* tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.

gcc/cp/
	* mangle.c (write_real_cst): Use SCALAR_FLOAT_TYPE_MODE
	instead of TYPE_MODE.

gcc/fortran/
	* target-memory.c (size_float): Use SCALAR_FLOAT_TYPE_MODE
	instead of TYPE_MODE.

gcc/objc/
	* objc-encoding.c (encode_type): Use SCALAR_FLOAT_TYPE_MODE
	instead of TYPE_MODE.

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

From-SVN: r251460
2017-08-30 11:09:27 +00:00
..
ada [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
brig re PR hsa/81713 (BIT_FIELD_REF produced by Brig FE do not pass new verification) 2017-08-04 15:50:14 +00:00
c C: fix logic within c_expr::get_location 2017-08-24 14:28:16 +00:00
c-family [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
common Better ISR prologues by supporting GASes __gcc_isr pseudo insn. 2017-07-10 09:49:18 +00:00
config [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
cp [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
doc optabs: ensure mem_thread_fence is a compiler barrier 2017-08-28 13:58:45 +03:00
fortran [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
ginclude
go [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
jit jit: fix segfault with autovectorization (PR tree-optimization/46805) 2017-08-18 23:56:28 +00:00
lto re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
objc [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +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 dwarf2out.c (add_dwarf_attr): Check we don't add duplicate attributes. 2017-08-30 09:29:05 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c
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 Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
asan.h asan.h (asan_sanitize_allocas_p): Declare. 2017-07-06 19:05:00 +03:00
attribs.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
attribs.h trans.c: Include header files. 2017-08-08 04:46:51 +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 fenv.h builtins 2017-06-27 09:38:28 +00:00
builtins.c [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
builtins.def fenv.h builtins 2017-06-27 09:38:28 +00:00
builtins.h
caller-save.c
calls.c trans.c: Include header files. 2017-08-08 04:46:51 +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 middle-end/81030 (ICE on valid code at -O1 (only) on x86_64-linux-gnu: verify_flow_info failed) 2017-07-20 11:27:31 +00: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 re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +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 cfgloop.h (struct loop): Add comment. 2017-07-05 11:49:02 +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 Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
cgraph.h cgraph.h (cgraph_edge::clone): Update prototype. 2017-06-10 23:07:11 +00: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 re PR debug/81936 (ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543) 2017-08-24 13:41:51 +00:00
ChangeLog [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +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
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
collect-utils.c
collect-utils.h
combine-stack-adj.c
combine.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
common.md
common.opt common.opt (feliminate-dwarf2-dups): Ignore. 2017-08-22 08:50:37 +00:00
compare-elim.c Remove enum before machine_mode 2017-07-05 15:29:27 +00:00
conditions.h
config.build
config.gcc Part 2/3 for contributing PPC64LE support for X86 SSE instrisics. 2017-08-25 15:11:50 +00:00
config.host Split off powerpcspe from rs6000 port 2017-05-24 21:35:49 +02:00
config.in Better ISR prologues by supporting GASes __gcc_isr pseudo insn. 2017-07-10 09:49:18 +00:00
configure Do not silently continue if config.{build,host,gcc} fails 2017-07-25 13:34:57 +02:00
configure.ac Do not silently continue if config.{build,host,gcc} fails 2017-07-25 13:34:57 +02:00
context.c context.h (context::set_passes): New. 2017-05-19 12:32:48 +00:00
context.h context.h (context::set_passes): New. 2017-05-19 12:32:48 +00:00
convert.c Add a type_has_mode_precision_p helper function 2017-08-21 14:50:56 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
coverage.c invoke.texi: Document the -fprofile-abs-path option. 2017-06-05 19:27:30 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c
cse.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
cselib.c
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
DATESTAMP Daily bump. 2017-08-30 00:16:18 +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 Introduce TARGET_SUPPORTS_ALIASES 2017-08-11 08:14:54 +00:00
DEV-PHASE
df-core.c
df-problems.c
df-scan.c df-scan.c (df_insn_refs_verify): Speedup when not verifying. 2017-05-22 07:14:10 +00:00
df.h
dfp.c [2/77] Add an E_ prefix to case statements 2017-08-30 11:08:28 +00:00
dfp.h
diagnostic-color.c C++ template type diff printing 2017-05-30 20:38:14 +00:00
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 asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +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 [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +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 dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40. 2017-08-24 16:18:57 +02:00
dwarf2out.c [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
dwarf2out.h
edit-context.c
edit-context.h
emit-rtl.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +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 re PR regression/81331 (missed Eh delivery in partitioned function) 2017-07-19 21:06:55 +00:00
except.h
exec-tool.in
explow.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
explow.h
expmed.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
expmed.h [1/77] Add an E_ prefix to mode names 2017-08-30 11:08:14 +00:00
expr.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
expr.h asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
fibonacci_heap.c
fibonacci_heap.h
file-find.c
file-find.h
final.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
fixed-value.c
fixed-value.h
flag-types.h re PR sanitizer/80998 (Implement -fsanitize=pointer-overflow) 2017-07-28 12:37:51 +02:00
flags.h
fold-const-call.c
fold-const-call.h
fold-const.c [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
fold-const.h use c++ for fold_buildN_loc 2017-07-29 01:39:48 +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 (fndecl_name): Use verbosity 1 (no arguments) for lang_hooks.decl_printable_name. 2017-08-23 13:44:20 +00:00
function.h
fwprop.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +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 Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00: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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00: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 Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h 2017-05-22 15:36:02 +00:00
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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +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
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 PR middle-end/81908 - FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O3 -g -m32 2017-08-24 18:25:57 -06:00
gimple-fold.h ASAN: Implement dynamic allocas/VLAs sanitization. 2017-07-06 19:02:06 +03: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 phi arg location in find_implicit_erroneous_behavior 2017-07-20 07:16:01 +00:00
gimple-ssa-nonnull-compare.c
gimple-ssa-split-paths.c
gimple-ssa-sprintf.c PR translation/79998 - typo in diagnostic "specified bound %wu" 2017-08-14 10:47:40 -06:00
gimple-ssa-store-merging.c gimple-ssa-store-merging.c: fix sort_by_bitpos 2017-07-20 18:13:56 +03:00
gimple-ssa-strength-reduction.c re PR tree-optimization/81503 (Wrong code at -O2) 2017-08-29 14:41:53 +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 re PR tree-optimization/80906 (ICE in copy_loop_close_phi_args, at graphite-isl-ast-to-gimple.c:2094) 2017-05-31 07:09:21 +00:00
graphite-optimize-isl.c
graphite-poly.c
graphite-scop-detection.c re PR tree-optimization/79483 ([graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)) 2017-06-09 09:36:06 +00:00
graphite-sese-to-poly.c
graphite.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00:00
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c * haifa-sched.c (sched_create_recovery_edges): Update profile. 2017-07-04 13:42:22 +00:00
hard-reg-set.h
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
hooks.h
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 trans.c: Include header files. 2017-08-08 04:46:51 +00:00
hsa-regalloc.c i386.c (make_resolver_func): Update. 2017-06-04 18:55:08 +00: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 profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +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 [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +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 cgraphunit.c (symbol_table::process_new_functions): Update. 2017-05-23 16:20:53 +00:00
ipa-hsa.c
ipa-icf-gimple.c ICF: properly handle LABEL_DECLs (PR tree-opt/81696). 2017-08-08 11:59:23 +00:00
ipa-icf-gimple.h
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-inline-analysis.c (cgraph_2edge_hook_list, [...]): Remove. 2017-05-23 10:59:35 +00:00
ipa-predicate.h ipa-inline-analysis.c (cgraph_2edge_hook_list, [...]): Remove. 2017-05-23 10:59:35 +00:00
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 Introduce symtab_node::dump_{asm_,}name functions. 2017-05-23 14:39:11 +00:00
ipa-ref.c
ipa-ref.h
ipa-reference.c Introduce symtab_node::dump_{asm_,}name functions. 2017-05-23 14:39:11 +00:00
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
ira-color.c Remove enum before machine_mode 2017-07-05 15:29:27 +00:00
ira-conflicts.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
ira-costs.c ira-costs: avoid missing base registers in record_address_regs 2017-08-29 20:34:21 +03:00
ira-emit.c
ira-int.h
ira-lives.c
ira.c ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again. 2017-06-23 12:44:07 +00:00
ira.h
is-a.h
jump.c
langhooks-def.h toplev.c (general_init): Call register dump lang hook. 2017-05-19 13:10:36 +00:00
langhooks.c toplev.c (general_init): Call register dump lang hook. 2017-05-19 13:10:36 +00:00
langhooks.h Remove Java references in source code. 2017-07-14 07:44:33 +00:00
LANGUAGES
lcm.c
lcm.h
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +00:00
loop-init.c
loop-invariant.c
loop-iv.c
loop-unroll.c profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +00:00
loop-unroll.h
lower-subreg.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
lower-subreg.h
lra-assigns.c lra-assigns.c: fix pseudo_compare_func 2017-07-20 18:15:55 +03:00
lra-coalesce.c
lra-constraints.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +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
lra-remat.c When lra-remat rematerializes an instruction with a clobber, it checks that the clobber does not kill live registers. 2017-05-24 17:06:55 +00:00
lra-spills.c
lra.c [1/77] Add an E_ prefix to mode names 2017-08-30 11:08:14 +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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +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 Add a type_has_mode_precision_p helper function 2017-08-21 14:50:56 +00: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
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 trans.c: Include header files. 2017-08-08 04:46:51 +00: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 [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
omp-low.h
omp-offload.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
omp-offload.h
omp-simd-clone.c trans.c: Include header files. 2017-08-08 04:46:51 +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 [8/77] Simplify gen_trunc/extend_conv_libfunc 2017-08-30 11:09:17 +00:00
optabs-libfuncs.h
optabs-query.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
optabs-query.h
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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +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 Validate that Init value is within range defined by IntegerRange. 2017-07-27 12:58:07 +00:00
optc-save-gen.awk Reorganise machmode.h headers 2017-07-02 09:06:10 +00:00
opth-gen.awk
opts-common.c Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
opts-diagnostic.h
opts-global.c Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
opts.c Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
opts.h Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
output.h Remove the frame size argument from function_prologue/epilogue 2017-08-21 14:51:52 +00:00
params-enum.h
params-list.h
params-options.h
params.c
params.def asan.h (asan_sanitize_allocas_p): Declare. 2017-07-06 19:05:00 +03: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 Make expansion of balanced binary trees of switches on tree level. 2017-08-29 14:12:44 +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 [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00:00
realmpfr.c
realmpfr.h
recog.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
recog.h
ree.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
reg-notes.def profile-count.h (profile_probability::from_reg_br_prob_note, [...]): New functions. 2017-07-16 16:10:58 +00:00
reg-stack.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
regcprop.c
regcprop.h
reginfo.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload1.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
reload.c Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
reload.h
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 Make more use of paradoxical_subreg_p 2017-08-22 16:14:48 +00:00
rtlanal.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
run-rtl-passes.c
run-rtl-passes.h
sancov.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
sanitizer.def re PR sanitizer/80998 (Implement -fsanitize=pointer-overflow) 2017-07-28 12:37:51 +02:00
sanopt.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
sbitmap.c
sbitmap.h
sched-deps.c aarch64.c (aarch_macro_fusion_pair_p): Push the check for CC usage into AARCH64_FUSE_CMP_BRANCH. 2017-06-30 03:50:44 +00:00
sched-ebb.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
sched-int.h
sched-rgn.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00:00
sdbout.c re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c Patch by Alexander Monakov <amonakov@ispras.ru> 2017-07-01 07:47:22 +00:00
sel-sched-ir.h
sel-sched.c
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.h
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 [7/77] Add scalar_float_mode 2017-08-30 11:09:10 +00: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 Transform TDF_{lang,tree,ipa,rtl} to dump_kind enum. 2017-05-18 14:23:46 +00:00
statistics.h
stmt.c Make expansion of balanced binary trees of switches on tree level. 2017-08-29 14:12:44 +00:00
stmt.h
stor-layout.c [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
stor-layout.h Move vector_type_mode to tree.c 2017-08-21 11:14: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 [3/77] Allow machine modes to be classes 2017-08-30 11:08:36 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def
target.def Remove the frame size argument from function_prologue/epilogue 2017-08-21 14:51:52 +00:00
target.h
targhooks.c [2/77] Add an E_ prefix to case statements 2017-08-30 11:08:28 +00:00
targhooks.h c-attribs.c (c_common_attribute_table): Add entry for "patchable_function_entry". 2017-07-25 14:16:10 +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 Fix --help=target (PR other/39851). 2017-08-29 07:46:10 +00:00
toplev.h
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 (gimple_split_edge): Avoid reallocating target PHI nodes. 2017-08-22 09:04:28 +00:00
tree-cfg.h dumpfile.c: Include profile-count.h 2017-07-02 22:25:59 +00:00
tree-cfgcleanup.c tree-cfgcleanup.c (want_merge_blocks_p): New function. 2017-07-03 12:42:07 +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 Add warn_if_not_aligned attribute 2017-08-18 02:38:38 -07: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 C++ template type diff printing 2017-05-30 20:38:14 +00:00
tree-dump.c Remove TYPE_METHODS. 2017-07-21 00:27:51 +00:00
tree-dump.h
tree-eh.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c Set the call nothrow flag more often 2017-08-29 07:47:05 +00:00
tree-if-conv.h
tree-inline.c tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT] to allow for free-lang-data replacements... 2017-08-22 11:10:28 +00: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
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 tree-sra.c (build_access_from_expr_1): Use more precise diagnostics for storage order barriers. 2017-08-11 13:06:43 +00:00
tree-ssa-address.c
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 trans.c: Include header files. 2017-08-08 04:46:51 +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 Add a type_has_mode_precision_p helper function 2017-08-21 14:50:56 +00:00
tree-ssa-ifcombine.c asan.c (asan_emit_stack_protection): Update. 2017-06-29 16:40:53 +00: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 tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle boundary case for the last candidate. 2017-08-08 14:52:25 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use profile_proability for scalling. 2017-07-16 18:25:26 +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 [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +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/81900 (GCC trunk miscompiles Perl / __sigsetjmp issue) 2017-08-21 13:18:35 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c tree-ssa-reassoc.c (should_break_up_subtract): Also break up if the use is in USE - X. 2017-08-03 14:08:15 +00:00
tree-ssa-sccvn.c re PR tree-optimization/81977 (Issue with inline memcpy with optimizations enabled) 2017-08-28 11:42:23 +00:00
tree-ssa-sccvn.h
tree-ssa-scopedtables.c 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-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 PR 81292: ICE on related strlens after r249880 2017-07-04 11:48:44 +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.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c tree-ssa-threadupdate.c (compute_path_counts, [...]): Use profile_probability. 2017-07-16 10:06:00 +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 re PR middle-end/81931 (r251260 breaks many tests on powerpc64) 2017-08-24 11:40:55 +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 re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +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 [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +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 Pool alignment information for common bases 2017-08-04 10:42:53 +00:00
tree-vect-generic.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
tree-vect-loop-manip.c Use base inequality for some vector alias checks 2017-08-04 10:40:35 +00:00
tree-vect-loop.c Add a type_has_mode_precision_p helper function 2017-08-21 14:50:56 +00:00
tree-vect-patterns.c Set the call nothrow flag more often 2017-08-29 07:47:05 +00:00
tree-vect-slp.c tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine life to the active subtree. 2017-08-29 07:04:31 +00:00
tree-vect-stmts.c [4/77] Add FOR_EACH iterators for modes 2017-08-30 11:08:44 +00:00
tree-vectorizer.c trans.c: Include header files. 2017-08-08 04:46:51 +00:00
tree-vectorizer.h Pool alignment information for common bases 2017-08-04 10:42:53 +00:00
tree-vrp.c [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +00:00
tree-vrp.h tree-vrp.h: Add include guard. 2017-08-03 07:42:36 +00:00
tree.c Move vector_type_mode to tree.c 2017-08-21 11:14:56 +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 [9/77] Add SCALAR_FLOAT_TYPE_MODE 2017-08-30 11:09:27 +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 trans.c: Include header files. 2017-08-08 04:46:51 +00:00
ubsan.h re PR sanitizer/80998 (Implement -fsanitize=pointer-overflow) 2017-07-28 12:37:51 +02:00
valtrack.c
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 [6/77] Make GET_MODE_WIDER return an opt_mode 2017-08-30 11:09:01 +00:00
varasm.c Fix bogus CONST_WIDE_INT hash 2017-08-21 09:46: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 * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend. 2017-08-22 08:25:24 +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.