gcc/gcc
David Malcolm 52ed68f71a C++ FE: handle misspelled identifiers and typenames
gcc/cp/ChangeLog:
	PR c/70339
	PR c/71858
	* name-lookup.c: Include gcc-rich-location.h, spellcheck-tree.h,
	and parser.h.
	(suggest_alternatives_for): If no candidates are found, try
	lookup_name_fuzzy and report if if finds a suggestion.
	(consider_binding_level): New function.
	(lookup_name_fuzzy) New function.
	* parser.c: Include gcc-rich-location.h.
	(cp_lexer_next_token_is_decl_specifier_keyword): Move most of
	logic into...
	(cp_keyword_starts_decl_specifier_p): ...this new function.
	(cp_parser_diagnose_invalid_type_name): When issuing
	"does not name a type" errors, attempt to make a suggestion using
	lookup_name_fuzzy.
	* parser.h (cp_keyword_starts_decl_specifier_p): New prototype.
	* search.c (lookup_field_fuzzy_info::fuzzy_lookup_field): Reject
	types that are not CLASS_TYPE_P, rather than rejecting individual
	tree codes.

gcc/testsuite/ChangeLog:
	PR c/70339
	PR c/71858
	* g++.dg/spellcheck-identifiers.C: New test case, based on
	gcc.dg/spellcheck-identifiers.c.
	* g++.dg/spellcheck-identifiers-2.C: New test case, based on
	gcc.dg/spellcheck-identifiers-2.c.
	* g++.dg/spellcheck-typenames.C: New test case, based on
	gcc.dg/spellcheck-typenames.c

From-SVN: r238538
2016-07-20 18:42:11 +00:00
..
ada decl.c (gnat_to_gnu_entity): Also use the void pointer type if the designated type is incomplete and has no... 2016-07-14 11:12:22 +00:00
c Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
c-family C: convert return type of lookup_name_fuzzy from tree to const char * 2016-07-20 13:42:51 +00:00
common remove mep-* support 2016-06-21 21:57:49 +00:00
config S/390: Remove mode size check in encode_section_info. 2016-07-20 18:33:30 +00:00
cp C++ FE: handle misspelled identifiers and typenames 2016-07-20 18:42:11 +00:00
doc Implement attribute progmem on reduced Tiny cores by adding flash offset 0x4000 to respective symbols. 2016-07-20 14:12:16 +00:00
fortran re PR fortran/71902 (Unneeded temporary on reallocatable character assignment) 2016-07-19 21:25:33 +00:00
ginclude
go escape: Add escape notes to export data. 2016-07-12 20:29:15 +00:00
java builtins.c (java_builtins): Use popcount* and bswap* builtins to implement bitCount() and reverseBytes()... 2016-05-31 11:30:56 +00:00
jit jit: implement gcc_jit_rvalue_set_bool_require_tail_call 2016-05-20 19:12:49 +00:00
lto Makefile.in: Don't cat ../stage_current if it does not exist. 2016-06-28 10:38:38 +02:00
objc C: add fixit hint to misspelled field names 2016-06-07 15:04:22 +00:00
objcp
po * fr.po: Update. 2016-06-06 18:39:12 +01:00
testsuite C++ FE: handle misspelled identifiers and typenames 2016-07-20 18:42:11 +00:00
ABOUT-GCC-NLS
BASE-VER * BASE-VER: Set to 7.0.0. 2016-04-15 16:55:57 +02:00
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog S/390: Remove mode size check in encode_section_info. 2016-07-20 18:33:30 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2016-07-20 00:16:18 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c re PR middle-end/71002 (-fstrict-aliasing breaks Boost's short string optimization implementation) 2016-06-29 07:30:31 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
asan.h
attribs.c Implement C++17 [[maybe_unused]] attribute. 2016-04-25 13:21:49 -04:00
attribs.h Implement C++17 [[maybe_unused]] attribute. 2016-04-25 13:21:49 -04:00
auto-inc-dec.c
auto-profile.c Print indirect call changes in afdo dump file 2016-07-14 02:13:48 +00:00
auto-profile.h
backend.h
basic-block.h
bb-reorder.c * bb-reorder.c (pass_partition_blocks::gate): Update comment. 2016-06-21 20:58:24 -06:00
bb-reorder.h
bitmap.c Selftest framework 2016-06-06 17:11:30 +00:00
bitmap.h
bt-load.c
builtin-attrs.def PR c/71392 - SEGV calling integer overflow built-ins with a null pointer 2016-06-10 11:38:19 -06:00
builtin-types.def
builtins.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
builtins.def PR c/71392 - SEGV calling integer overflow built-ins with a null pointer 2016-06-10 11:38:19 -06:00
builtins.h re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
caller-save.c
calls.c calls.c: fix warning on targets without REG_PARM_STACK_SPACE 2016-05-20 18:52:56 +00:00
calls.h
ccmp.c
ccmp.h
cfg-flags.def
cfg.c cfg.c (check_bb_profile): Do not report mismatched profiles when only edges out of BB are EH edges. 2016-06-05 16:38:12 +00:00
cfg.h
cfganal.c re PR tree-optimization/71253 (ICE during loop distribution w/ -O2 -ftree-loop-distribution) 2016-05-24 12:40:01 +00:00
cfganal.h re PR tree-optimization/71253 (ICE during loop distribution w/ -O2 -ftree-loop-distribution) 2016-05-24 12:40:01 +00:00
cfgbuild.c
cfgbuild.h
cfgcleanup.c cfgcleanup: Handle a branch with just a return in both arms (PR71028) 2016-05-11 01:31:27 +02:00
cfgcleanup.h
cfgexpand.c Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00
cfgexpand.h
cfghooks.c
cfghooks.h
cfgloop.c cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using PRIu64 instead of lu. 2016-06-24 21:36:58 +02:00
cfgloop.h Dump profile-based number of iterations 2016-06-24 16:22:44 +00:00
cfgloopanal.c Introduce new param: AVG_LOOP_NITER 2016-07-12 15:27:36 +00:00
cfgloopmanip.c cfgloop.c (record_niter_bound): Record likely upper bounds. 2016-05-27 12:10:34 +00:00
cfgloopmanip.h
cfgrtl.c re PR rtl-optimization/71916 (ICE at -O3 on valid code on x86_64-linux-gnu in "maybe_record_trace_start") 2016-07-19 21:54:49 +02:00
cfgrtl.h re PR middle-end/70807 (fwprop pass ICE with incoming CDI_DOMINATORS) 2016-05-11 09:33:13 +00:00
cgraph.c re PR middle-end/71387 (ICE in emit_move_insn, at expr.c:3418 with -Og) 2016-06-03 10:03:11 +02:00
cgraph.h Indirect inlining of targets from references of global constants 2016-05-18 18:38:56 +02:00
cgraphbuild.c
cgraphclones.c ipa-inline-transform.c (preserve_function_body_p): Look for first non-thunk clone. 2016-05-18 07:12:46 +00:00
cgraphunit.c handle undefined extern vars in output_in_order 2016-07-15 14:01:23 +03:00
chkp-builtins.def
cif-code.def ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig into instrumentation thunks. 2016-05-16 19:33:02 +00:00
cilk-builtins.def
cilk-common.c
cilk.h
cilkplus.def
collect-utils.c
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c
combine.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
common.md
common.opt PR c++/71814 - mangling sizeof... (sP and sZ) 2016-07-15 14:38:15 -04:00
compare-elim.c re PR c/24414 (Old-style asms don't clobber memory) 2016-06-06 12:31:59 +00:00
conditions.h
config.build
config.gcc config.gcc: Add support for arm*-*-phoenix* targets. 2016-06-23 07:28:17 +00:00
config.host
config.in Call tls_get_addr via GOT for GNU TLS if possible 2016-06-24 10:32:52 -07:00
configure Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
configure.ac Build libbackend.a as a thin archive if possible 2016-07-20 14:09:20 +00:00
context.c
context.h
convert.c
convert.h
coretypes.h Add OVERRIDE and FINAL macros to coretypes.h 2016-05-06 17:02:01 +00:00
coverage.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
coverage.h
cppbuiltin.c re PR sanitizer/64354 (no preprocessor symbol __SANITIZE_THREAD__) 2016-05-19 15:05:59 +03:00
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c
cse.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
cselib.c re PR rtl-optimization/70886 (-frename-registers causes boostrap comparison failures on ia64) 2016-05-02 10:08:59 +00:00
cselib.h re PR rtl-optimization/70886 (-frename-registers causes boostrap comparison failures on ia64) 2016-05-02 10:08:59 +00:00
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h re PR tree-optimization/52171 (memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0) 2016-06-03 14:20:53 +00:00
df-core.c df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
df-problems.c * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET. 2016-06-09 21:50:55 +00:00
df-scan.c Fix PR44281, bad RA with global regs. 2016-05-03 09:35:42 +00:00
df.h df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h C FE: suggest corrections for misspelled identifiers and type names 2016-06-22 15:20:41 +00:00
diagnostic-show-locus.c Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
diagnostic.c C FE: suggest corrections for misspelled identifiers and type names 2016-06-22 15:20:41 +00:00
diagnostic.def
diagnostic.h Implement -fdiagnostics-parseable-fixits 2016-06-22 14:42:30 +00:00
dojump.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
dojump.h
dominance.c Fix segfault on verify_dominators error path 2016-05-28 18:46:00 +09:30
dominance.h
domwalk.c
domwalk.h
double-int.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
double-int.h cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
dse.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
dumpfile.c Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
dumpfile.h Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
dwarf2asm.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
dwarf2asm.h
dwarf2cfi.c
dwarf2out.c re PR debug/71855 (duplicate unspecified_parameters DIE in DWARF for functions with variable arguments) 2016-07-19 19:29:42 +00:00
dwarf2out.h DWARF: turn dw_loc_descr_node field into hash map for frame offset check 2016-04-27 15:03:40 +00:00
emit-rtl.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c Selftest framework 2016-06-06 17:11:30 +00:00
et-forest.h
except.c builtins.c (expand_builtin_memcmp): Do not emit the call here. 2016-05-13 08:49:20 +00:00
except.h
exec-tool.in
explow.c Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00
explow.h Allocate constant size dynamic stack space in the prologue 2016-07-18 13:10:27 +00:00
expmed.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
expmed.h [1/2] Move choose_mult_variant declaration and dependent declarations to expmed.h 2016-07-14 13:57:05 +00:00
expr.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
expr.h re PR middle-end/71310 (Bitfields cause load hit store with smaller store and larger load) 2016-06-14 07:26:52 +00:00
fibonacci_heap.c Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
fibonacci_heap.h Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
file-find.c Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
file-find.h Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
final.c re PR c/24414 (Old-style asms don't clobber memory) 2016-06-06 12:31:59 +00:00
fixed-value.c
fixed-value.h
flag-types.h Move "X +- C1 CMP C2 to X CMP C2 -+ C1" to match.pd 2016-05-02 14:09:07 +00:00
flags.h
fold-const-call.c
fold-const-call.h
fold-const.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
fold-const.h Move "X +- C1 CMP C2 to X CMP C2 -+ C1" to match.pd 2016-05-02 14:09:07 +00:00
fp-test.c
function-tests.c Fix copy&paste bug in function-tests.c 2016-07-19 13:04:32 +00:00
function.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
function.h
fwprop.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
gcc-ar.c Prevent LTO wrappers to process a recursive execution 2016-07-07 12:03:39 +00:00
gcc-main.c
gcc-plugin.h
gcc-rich-location.c C: convert return type of lookup_name_fuzzy from tree to const char * 2016-07-20 13:42:51 +00:00
gcc-rich-location.h C: convert return type of lookup_name_fuzzy from tree to const char * 2016-07-20 13:42:51 +00:00
gcc-symtab.h
gcc.c fix interaction of -S and -x {c,c++}-header 2016-07-04 07:41:32 +00:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c Don't cause ICEs when auto profile file is not found with checking 2016-05-30 18:13:12 +00:00
gcov-io.h
gcov-iov.c
gcov-tool.c c-common.c (get_source_date_epoch): Use int64_t instead of long long. 2016-06-22 01:46:06 +00:00
gcov.c
gcse-common.c
gcse-common.h
gcse.c make stores rtx_insn_list a vec 2016-07-06 23:53:15 +00:00
gcse.h
gdbasan.in
gdbhooks.py
gdbinit.in * gdbinit.in: Skip line-map.h. 2016-04-28 15:04:23 -04:00
gen-pass-instances.awk
genattr-common.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genattr.c genautomata.c cleanup 2016-05-11 21:13:11 +03:00
genattrtab.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genautomata.c genautomata.c cleanup 2016-05-11 21:13:11 +03:00
gencfn-macros.c
gencheck.c
genchecksum.c
gencodes.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genconditions.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genconfig.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genconstants.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genemit.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genenums.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
generic-match-head.c
generic-match.h
genextract.c genextract.c: add [cd]tors to accum_extract 2016-07-13 02:43:23 +00:00
genflags.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c Makefile.in (GTFILES): Add cilk.h and cilk-common.c. 2016-05-19 12:03:30 -06:00
gengtype.h
genhooks.c
genmatch.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
genmddeps.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genmddump.c * genmddump.c (main): Convert argv from char ** to const char **. 2016-05-06 22:42:10 +02:00
genmodes.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
genmultilib
genopinit.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genoutput.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genpeep.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genpreds.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
genrecog.c genrecog.c (special_predicate_operand_p): New function. 2016-07-13 16:18:40 -06:00
gensupport.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
gensupport.h Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
gentarget-def.c Make argv const char ** in read_md_files etc 2016-05-06 15:14:05 +00:00
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c
ggc-tests.c ggc-tests.c (test_finalization): Only test need_finalization_p for GCC_VERSION >= 4003. 2016-06-13 16:27:01 +02:00
ggc.h
gimple-builder.c
gimple-builder.h
gimple-expr.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
gimple-expr.h
gimple-fold.c re PR middle-end/71874 (memmove works wrong) 2016-07-19 19:30:05 +02:00
gimple-fold.h re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
gimple-iterator.c
gimple-iterator.h
gimple-laddress.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
gimple-low.c gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
gimple-low.h
gimple-match-head.c gimple-match.h (maybe_build_generic_op): Adjust prototype. 2016-04-20 12:49:58 +00:00
gimple-match.h gimple-match.h (maybe_build_generic_op): Adjust prototype. 2016-04-20 12:49:58 +00:00
gimple-predict.h
gimple-pretty-print.c Implement CALL_EXPR_MUST_TAIL_CALL 2016-05-20 14:20:03 +00:00
gimple-pretty-print.h
gimple-ssa-backprop.c
gimple-ssa-isolate-paths.c
gimple-ssa-nonnull-compare.c
gimple-ssa-split-paths.c gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa): Handle empty else block. 2016-07-05 13:25:47 +00:00
gimple-ssa-strength-reduction.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
gimple-ssa.h
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c gimple-walk.h (struct walk_stmt_info): Add stmt member. 2016-04-19 12:13:04 +00:00
gimple-walk.h gimple-walk.h (struct walk_stmt_info): Add stmt member. 2016-04-19 12:13:04 +00:00
gimple.c re PR middle-end/71002 (-fstrict-aliasing breaks Boost's short string optimization implementation) 2016-06-29 07:30:31 +00:00
gimple.def
gimple.h gimple.h (stmt_can_terminate_bb_p): New function. 2016-07-14 13:52:21 +00:00
gimplify-me.c
gimplify-me.h
gimplify.c re PR tree-optimization/71104 (ICE: verify_ssa failed (with vfork / error: definition in block 3 does not dominate use in block 7 )) 2016-07-13 08:03:04 +00:00
gimplify.h gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-dependences.c
graphite-isl-ast-to-gimple.c Properly handly PHI stmts in later_of_the_two (PR 2016-07-20 11:16:47 +00:00
graphite-optimize-isl.c
graphite-poly.c
graphite-scop-detection.c Handle NULL def in build_cross_bb_scalars_def 2016-05-07 06:47:07 +00:00
graphite-sese-to-poly.c Fix pdr accesses order 2016-04-09 15:28:24 +00:00
graphite.c re PR bootstrap/70706 (r235082 caused bootstrap failure) 2016-04-17 18:04:51 +00:00
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
hard-reg-set.h Fix PR44281, bad RA with global regs. 2016-05-03 09:35:42 +00:00
hash-map-tests.c Selftest framework 2016-06-06 17:11:30 +00:00
hash-map-traits.h
hash-map.h
hash-set-tests.c Selftest framework 2016-06-06 17:11:30 +00:00
hash-set.h
hash-table.c
hash-table.h
hash-traits.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hsa-brig-format.h
hsa-brig.c hsa: Fix bootstrap with older host compilers 2016-04-18 10:57:01 +02:00
hsa-dump.c
hsa-gen.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
hsa-regalloc.c
hsa.c
hsa.h
hw-doloop.c
hw-doloop.h
hwint.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
hwint.h builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
ifcvt.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
ifcvt.h
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c
input.c input.c: add lexing selftests and a test matrix for line_table states 2016-07-11 16:02:20 +00:00
input.h re PR c/70859 (Bad column number in type-generic function errors) 2016-05-03 18:03:42 +00:00
insn-addr.h
insn-notes.def
internal-fn.c re PR rtl-optimization/71673 (FAIL: c-c++-common/torture/builtin-arith-overflow-p-19.c -O2 (internal compiler error)) 2016-06-28 10:29:11 +02:00
internal-fn.def re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
internal-fn.h
intl.c
intl.h
ipa-chkp.c re PR middle-end/71529 ([CHKP] ICE in expand_expr_real_1) 2016-06-15 15:49:40 +00:00
ipa-chkp.h
ipa-comdats.c
ipa-cp.c [PR 71234] Avoid valgrind warning in ipa-cp 2016-05-23 18:31:14 +02:00
ipa-devirt.c
ipa-hsa.c
ipa-icf-gimple.c [PATCH 1/2] (header usage fix) remove unused system header includes 2016-04-22 10:57:56 +00:00
ipa-icf-gimple.h
ipa-icf.c Set DECL_PT_UID for merged variables in IPA ICF (PR70856). 2016-05-18 11:48:50 +00:00
ipa-icf.h
ipa-inline-analysis.c re PR ipa/71624 ([CHKP] internal compiler error: in duplicate_thunk_for_node) 2016-07-07 11:45:11 +00:00
ipa-inline-transform.c re PR ipa/71633 ([CHKP] internal compiler error: in inline_call) 2016-07-13 11:02:15 +00:00
ipa-inline.c Add option for whether ceil etc. can raise "inexact", adjust x86 conditions. 2016-06-03 16:49:04 +01:00
ipa-inline.h [PR 70646] Store size to inlining predicate conditions 2016-05-18 15:04:23 +02:00
ipa-polymorphic-call.c re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
ipa-profile.c
ipa-prop.c Allow constant global VAR_DECLs in constant jump functions 2016-05-18 18:44:08 +02:00
ipa-prop.h Indirect inlining of targets from references of global constants 2016-05-18 18:38:56 +02:00
ipa-pure-const.c Fix memory leak in ipa-pure-const 2016-05-19 15:06:17 +00:00
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c
ipa-utils.c
ipa-utils.h re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
ipa-visibility.c
ipa.c ipa.c: remove static_{ctors,dtors} globals 2016-07-13 02:43:43 +00:00
ira-build.c re PR rtl-optimization/71634 (Invalid write with in mark_loops_for_removal (ira-build.c:2256) with --param ira-max-loops-num=0) 2016-07-12 14:54:52 +00:00
ira-color.c
ira-conflicts.c
ira-costs.c
ira-emit.c
ira-int.h
ira-lives.c strcpy arg optimised out 2016-07-01 20:45:17 +09:30
ira.c re PR c/24414 (Old-style asms don't clobber memory) 2016-06-06 12:31:59 +00:00
ira.h
is-a.h
jump.c
langhooks-def.h re PR c/70756 (Wrong column number shown for "error: invalid use of flexible array member") 2016-05-12 15:28:08 +00:00
langhooks.c nvptx.c (nvptx_mangle_decl_assembler_name): New. 2016-05-13 15:51:24 +00:00
langhooks.h re PR c/70756 (Wrong column number shown for "error: invalid use of flexible array member") 2016-05-12 15:28:08 +00:00
lcm.c
lcm.h
libfuncs.h builtins.c (expand_builtin_memcmp): Do not emit the call here. 2016-05-13 08:49:20 +00:00
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
loop-init.c loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops. 2016-05-31 10:42:59 +00:00
loop-invariant.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
loop-iv.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
loop-unroll.c loop-unroll.c (decide_unroll_constant_iterations, [...]): Use likely upper bounds. 2016-06-01 12:01:17 +00:00
loop-unroll.h
lower-subreg.c
lower-subreg.h Fix typo in copyright boilerplate 2016-06-14 13:53:50 +00:00
lra-assigns.c
lra-coalesce.c
lra-constraints.c re PR rtl-optimization/71878 (ICE in cselib_record_set) 2016-07-14 16:41:06 +00:00
lra-eliminations.c
lra-int.h
lra-lives.c
lra-remat.c
lra-spills.c re PR rtl-optimization/70596 (-fcompare-debug failure with one extra NOTE_INSN_DELETED) 2016-04-12 19:18:31 +02:00
lra.c
lra.h
lto-cgraph.c ipa-inline-transform.c (preserve_function_body_p): Look for first non-thunk clone. 2016-05-18 07:12:46 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c LTO: display file name if LTO version check fails 2016-05-19 15:02:30 +00:00
lto-section-names.h
lto-section-out.c
lto-streamer-in.c cfgloop.c (record_niter_bound): Record likely upper bounds. 2016-05-27 12:10:34 +00:00
lto-streamer-out.c re PR middle-end/71907 (missing buffer overflow warnings with -flto) 2016-07-19 07:35:05 +00:00
lto-streamer.c LTO: display file name if LTO version check fails 2016-05-19 15:02:30 +00:00
lto-streamer.h LTO: display file name if LTO version check fails 2016-05-19 15:02:30 +00:00
lto-wrapper.c
machmode.def
machmode.h machmode.h (mode_complex): Add support to give the complex mode for a given mode. 2016-05-02 23:23:45 +00:00
main.c
match.pd cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
mcf.c
mem-stats-traits.h
mem-stats.h
memory-block.cc
memory-block.h
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c
multiple_target.c
omp-builtins.def
omp-low.c c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER. 2016-07-15 07:13:48 -07:00
omp-low.h
omp-simd-clone.c Fix memory leak in omp-simd-clone.c 2016-05-19 15:05:26 +00:00
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c builtins.c (expand_builtin_memcmp): Do not emit the call here. 2016-05-13 08:49:20 +00:00
optabs-libfuncs.h
optabs-query.c
optabs-query.h
optabs-tree.c
optabs-tree.h
optabs.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
optabs.def re PR target/49244 (__sync or __atomic builtins will not emit 'lock bts/btr/btc') 2016-05-03 13:37:25 +02:00
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c Fix bogus option suggestions for RejectNegative options (PR driver/71651) 2016-06-30 14:28:50 +00:00
opts-diagnostic.h
opts-global.c
opts.c re PR tree-optimization/23286 (Missed code hoisting optimization) 2016-07-12 13:32:04 +00:00
opts.h Fix bogus option suggestions for RejectNegative options (PR driver/71651) 2016-06-30 14:28:50 +00:00
output.h
params-enum.h
params-list.h
params-options.h Add tests that test boundary values of params 2016-07-12 15:03:07 +00:00
params.c Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
params.def Introduce new param: AVG_LOOP_NITER 2016-07-12 15:27:36 +00:00
params.h Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
pass_manager.h Move name_to_pass_map into class pass_manager 2016-05-06 15:18:59 +00:00
passes.c Move name_to_pass_map into class pass_manager 2016-05-06 15:18:59 +00:00
passes.def tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h. 2016-05-27 10:32:38 -06:00
plugin.c
plugin.def
plugin.h
postreload-gcse.c
postreload.c
predict.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
predict.def predict-12.c: New testcase. 2016-06-26 20:03:35 +00:00
predict.h predict.h (force_edge_cold): Declare. 2016-05-30 10:40:33 +00:00
prefix.c
prefix.h
pretty-print.c pretty-print.c: skip color selftests if GCC_COLORS is set 2016-06-13 21:07:18 +00:00
pretty-print.h
print-rtl.c make avail_stores a vec<rtx_insn *> 2016-04-24 08:45:38 +00:00
print-rtl.h make avail_stores a vec<rtx_insn *> 2016-04-24 08:45:38 +00:00
print-tree.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
print-tree.h
profile.c profile.c: Include cfgloop.h. 2016-06-10 12:46:30 +00:00
profile.h
read-md.c Simplify read-md.c and read-rtl.c using require_char_ws 2016-05-10 18:28:10 +00:00
read-md.h Simplify read-md.c and read-rtl.c using require_char_ws 2016-05-10 18:28:10 +00:00
read-rtl.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
real.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
real.h
realmpfr.c
realmpfr.h
recog.c re PR c/24414 (Old-style asms don't clobber memory) 2016-06-06 12:31:59 +00:00
recog.h
ree.c ree.c: use auto_vec in ext_state 2016-07-13 02:44:28 +00:00
reg-notes.def
reg-stack.c re PR inline-asm/68843 (ICE with "u" input constraint) 2016-06-10 12:22:21 +00:00
regcprop.c
regcprop.h
reginfo.c Fix PR44281, bad RA with global regs. 2016-05-03 09:35:42 +00:00
regrename.c regrename.c (base_reg_class_for_rename): New static function. 2016-05-09 09:44:30 +00:00
regrename.h
regs.h Goodbye REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED 2016-04-30 09:31:52 +09:30
regset.h
regstat.c Goodbye REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED 2016-04-30 09:31:52 +09:30
reload.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
reload.h
reload1.c re PR bootstrap/71435 (sparc bootstrap failure since r235625) 2016-06-18 11:10:10 +00:00
reorg.c reorg.c (try_merge_delay_insns): Declare i and j inside the for loops rather than one for the whole function. 2016-04-26 22:32:05 +02:00
resource.c
resource.h
rtl-chkp.c
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl-tests.c Selftest framework 2016-06-06 17:11:30 +00:00
rtl.c
rtl.def Fix comment in rtl.def 2016-04-27 17:54:42 +00:00
rtl.h maybe_set_first_label_num can take an rtx_code_label * 2016-04-27 18:22:12 +00:00
rtlanal.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sancov.c
sanitizer.def
sanopt.c
sbitmap.c sbitmap: Remove popcount 2016-04-28 20:43:12 +02:00
sbitmap.h sbitmap: Remove popcount 2016-04-28 20:43:12 +02:00
sched-deps.c sched-deps.c (sched_analyze_2): Also force pending loads from memory. 2016-05-19 19:52:56 +02:00
sched-ebb.c
sched-int.h
sched-rgn.c
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c
sel-sched.h
selftest-run-tests.c Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
selftest.c selftest.c: gracefully handle NULL in assert_streq 2016-07-19 16:16:18 +00:00
selftest.h Add selftests for fibonacci_heap 2016-07-20 07:01:48 +00:00
sese.c
sese.h
shrink-wrap.c function: Restructure *logue insertion 2016-05-20 00:17:53 +02:00
shrink-wrap.h function: Restructure *logue insertion 2016-05-20 00:17:53 +02:00
signop.h
simplify-rtx.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
sparseset.c
sparseset.h
spellcheck-tree.c Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
spellcheck-tree.h Enabling work for C++ handling of misspelled identifiers and typenames 2016-07-20 14:03:03 +00:00
spellcheck.c Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
spellcheck.h Offer suggestions for misspelled --param names. 2016-06-30 00:05:39 +00:00
sreal.c Add sreal to selftests 2016-07-20 07:00:50 +00:00
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c
stmt.h
stor-layout.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
stor-layout.h re PR ada/70759 (Ada rts fails to build with -mabi=ilp32) 2016-04-27 07:49:49 +00:00
store-motion.c make antic_stores a vec<rtx_insn *> 2016-07-06 23:53:04 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symbol-summary.h Symbol summary: refactor usage of gcc_checking_asserts 2016-05-02 09:20:01 +00:00
symtab.c cgraph.c (cgraph_node::get_availability): Fix typo in comment. 2016-05-25 07:38:32 +00:00
sync-builtins.def
system.h Remove TARGET_INVALID_PARAMETER_TYPE and TARGET_INVALID_RETURN_TYPE hooks. 2016-05-16 10:22:25 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def
target.def target.def (addr_space): Add new diagnose_usage to hook vector. 2016-07-20 13:07:43 +00:00
target.h re PR tree-optimization/52171 (memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0) 2016-06-03 14:20:53 +00:00
targhooks.c target.def (addr_space): Add new diagnose_usage to hook vector. 2016-07-20 13:07:43 +00:00
targhooks.h target.def (addr_space): Add new diagnose_usage to hook vector. 2016-07-20 13:07:43 +00:00
timevar.c
timevar.def tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h. 2016-05-27 10:32:38 -06:00
timevar.h
tlink.c
toplev.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
toplev.h Selftest framework 2016-06-06 17:11:30 +00:00
tracer.c tracer: Make bb_seen static 2016-04-28 19:08:39 +02:00
tracer.h
trans-mem.c gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
trans-mem.h
tree-affine.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-affine.h
tree-call-cdce.c To... 2016-05-18 14:01:31 +00:00
tree-cfg.c gimple.h (stmt_can_terminate_bb_p): New function. 2016-07-14 13:52:21 +00:00
tree-cfg.h tree-cfg.h (should_remove_lhs_p): New predicate. 2016-05-24 13:34:37 +00:00
tree-cfgcleanup.c tree-cfg.h (should_remove_lhs_p): New predicate. 2016-05-24 13:34:37 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c
tree-chkp.c re PR middle-end/70877 ([MPX] ICE in in convert_move) 2016-05-10 16:06:36 +00:00
tree-chkp.h
tree-chrec.c
tree-chrec.h
tree-complex.c re PR tree-optimization/70497 (Missed CSE of subregs on GIMPLE) 2016-05-10 08:20:43 +00:00
tree-core.h Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-data-ref.c re PR tree-optimization/71872 (ICE in inchash::add_expr, at tree.c:7782 - OEP_ADDRESS_OF asserted for ADDR_EXPR applied to constant) 2016-07-14 20:30:38 +02:00
tree-data-ref.h re PR tree-optimization/56625 (After if-conversion vectorizer doesn't recognize similar loads) 2016-04-20 15:41:45 +00:00
tree-dfa.c To... 2016-05-18 14:01:31 +00:00
tree-dfa.h To... 2016-05-18 14:01:31 +00:00
tree-diagnostic.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c re PR tree-optimization/71503 (gcc ICE at -O3 on valid code on x86_64-linux-gnu in "gen_phi_arg_condition") 2016-07-20 08:31:35 +00:00
tree-inline.c re PR debug/71642 (ICE: in gen_type_die_with_usage, at dwarf2out.c:22729) 2016-06-24 19:28:18 +00:00
tree-inline.h
tree-into-ssa.c gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/71881 (ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form) 2016-07-15 13:05:56 +00:00
tree-nested.c [PR middle-end/71373] Document missing OMP_CLAUSE_* in gcc/tree-nested.c 2016-06-13 18:37:29 +02:00
tree-nested.h
tree-nrv.c
tree-object-size.c
tree-object-size.h
tree-outof-ssa.c
tree-outof-ssa.h
tree-parloops.c loop-dolop.c (doloop_optimize): Us likely max iteration bound. 2016-06-01 15:26:46 +00:00
tree-parloops.h
tree-pass.h tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h. 2016-05-27 10:32:38 -06:00
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c Remove the unused OMP_CLAUSE_DEVICE_RESIDENT 2016-06-01 13:55:35 +02:00
tree-pretty-print.h
tree-profile.c
tree-scalar-evolution.c tree-scalar-evolution.c (simple_iv_with_niters): New funcion. 2016-07-15 09:04:57 +00:00
tree-scalar-evolution.h tree-scalar-evolution.c (simple_iv_with_niters): New funcion. 2016-07-15 09:04:57 +00:00
tree-sra.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-ssa-address.c tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when TMR_INDEX is non-NULL. 2016-05-23 14:44:07 +00:00
tree-ssa-address.h
tree-ssa-alias.c remove unnecessary calls to vec::release 2016-07-13 02:44:59 +00:00
tree-ssa-alias.h re PR middle-end/71062 (r235622 and restrict pointers) 2016-05-12 13:05:13 +00:00
tree-ssa-ccp.c gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
tree-ssa-coalesce.c tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case, allow coalescing if the types are compatible. 2016-05-06 15:54:15 +00:00
tree-ssa-coalesce.h
tree-ssa-copy.c
tree-ssa-dce.c re PR tree-optimization/71253 (ICE during loop distribution w/ -O2 -ftree-loop-distribution) 2016-05-24 12:40:01 +00:00
tree-ssa-dom.c * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment. 2016-04-27 14:52:15 -06:00
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c
tree-ssa-ifcombine.c re PR tree-optimization/70586 (wrong code at -O2 and -O3 on x86_64-linux-gnu in 32-bit and 64-bit modes) 2016-04-09 13:23:51 +02:00
tree-ssa-live.c re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
tree-ssa-live.h
tree-ssa-loop-ch.c invoke.texi (max-loop-headers-insns): Document. 2016-06-08 14:11:51 +00:00
tree-ssa-loop-im.c re PR middle-end/71734 (FAIL: libgomp.fortran/simd4.f90 -O3 -g execution test) 2016-07-18 14:30:20 +00:00
tree-ssa-loop-ivcanon.c pr36648.cc: Disable cunrolli 2016-06-16 12:54:31 +00:00
tree-ssa-loop-ivopts.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c re PR tree-optimization/71462 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with “seg fault”) 2016-06-09 11:36:22 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c tree-scalar-evolution.c (simple_iv_with_niters): New funcion. 2016-07-15 09:04:57 +00:00
tree-ssa-loop-niter.h tree-scalar-evolution.c (simple_iv_with_niters): New funcion. 2016-07-15 09:04:57 +00:00
tree-ssa-loop-prefetch.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-ssa-loop-unswitch.c loop-dolop.c (doloop_optimize): Us likely max iteration bound. 2016-06-01 15:26:46 +00:00
tree-ssa-loop.c
tree-ssa-loop.h
tree-ssa-math-opts.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tree-ssa-operands.c re PR target/29756 (SSE intrinsics hard to use without redundant temporaries appearing) 2016-05-20 09:17:16 +00:00
tree-ssa-operands.h
tree-ssa-phionlycprop.c
tree-ssa-phiopt.c re PR tree-optimization/71887 (wrong code (SIGFPE) at -O1 and above on x86_64-linux-gnu (in both 32-bit and 64-bit modes)) 2016-07-15 12:56:17 +00:00
tree-ssa-phiprop.c re PR tree-optimization/71039 (ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 5) w/ -O1 and above) 2016-05-10 13:13:59 +00:00
tree-ssa-pre.c re PR tree-optimization/71901 (ice in find_or_generate_expression) 2016-07-19 10:19:46 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/71631 (Wrong constant folding) 2016-06-25 19:20:15 +02:00
tree-ssa-sccvn.c gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case, handle all tcc_constant bases and valueize SSA names. 2016-07-19 14:16:54 +00:00
tree-ssa-sccvn.h re PR tree-optimization/71901 (ice in find_or_generate_expression) 2016-07-19 10:19:46 +00:00
tree-ssa-scopedtables.c
tree-ssa-scopedtables.h
tree-ssa-sink.c
tree-ssa-strlen.c re PR tree-optimization/71707 (ICE in get_stridx_plus_constant) 2016-06-30 20:45:18 +02:00
tree-ssa-structalias.c re PR tree-optimization/71908 (ICE at -Os and above in both 32-bit and 64-bit modes on x86_64-linux-gnu (get_constraint_for_component_ref)) 2016-07-19 10:18:25 +00:00
tree-ssa-tail-merge.c re PR tree-optimization/71643 (internal compiler error: in redirect_eh_edge_1, at tree-eh.c:2318 after r237427) 2016-06-25 19:23:02 +02:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadbackward.c re PR tree-optimization/71403 (wrong code (segfault) at -O3 on x86_64-linux-gnu) 2016-06-13 14:55:59 -06:00
tree-ssa-threadbackward.h
tree-ssa-threadedge.c re PR tree-optimization/71077 (gcc -lto raises ICE) 2016-06-01 02:36:27 +00:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.c re PR tree-optimization/71328 (ice in verify_jump_thread) 2016-06-02 23:20:16 -06:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c
tree-ssa-uninit.c re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault)) 2016-06-20 23:41:20 +02:00
tree-ssa.c re PR middle-end/66867 (Suboptimal code generation for atomic_compare_exchange) 2016-06-28 10:27:18 +02:00
tree-ssa.h
tree-ssanames.c gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter default true. 2016-05-03 12:06:19 +00:00
tree-ssanames.h
tree-stdarg.c use auto_vec for more local variables 2016-07-13 02:44:52 +00:00
tree-stdarg.h
tree-streamer-in.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
tree-streamer-out.c re PR middle-end/71907 (missing buffer overflow warnings with -flto) 2016-07-19 07:35:05 +00:00
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c
tree-tailcall.c
tree-vect-data-refs.c tree-vect-data-refs.c (vect_no_alias_p): New function. 2016-07-13 15:06:40 +00:00
tree-vect-generic.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-vect-loop-manip.c tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update comment. 2016-07-19 10:04:02 +00:00
tree-vect-loop.c tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update comment. 2016-07-19 10:04:02 +00:00
tree-vect-patterns.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree-vect-slp.c [6/7] Explicitly classify vector loads and stores 2016-07-06 08:15:28 +00:00
tree-vect-stmts.c remove unnecessary calls to vec::release 2016-07-13 02:44:59 +00:00
tree-vectorizer.c re PR tree-optimization/70729 (Loop marked with omp simd pragma is not vectorized) 2016-07-01 09:42:01 +00:00
tree-vectorizer.h [7/7] Add negative and zero strides to vect_memory_access_type 2016-07-06 08:16:53 +00:00
tree-vrp.c internal-fn.c (expand_arith_set_overflow): New function. 2016-06-24 13:03:27 +02:00
tree.c cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0. 2016-07-20 17:47:33 +02:00
tree.def Fix CASE_CHAIN typos 2016-06-13 18:10:35 +02:00
tree.h builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
treestruct.def
tsan.c Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG. 2016-07-11 15:02:12 +00:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h
ubsan.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
ubsan.h
valtrack.c
valtrack.h
value-prof.c Don't run instrumented value profiler changes with afdo 2016-07-14 02:14:02 +00:00
value-prof.h
var-tracking.c make side_effects a vec<rtx> 2016-07-06 23:53:20 +00:00
varasm.c builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
varasm.h
varpool.c handle undefined extern vars in output_in_order 2016-07-15 14:01:23 +03:00
vec.c Selftest framework 2016-06-06 17:11:30 +00:00
vec.h add some utility methods to vec 2016-04-24 07:47:38 +00:00
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
wide-int-print.h
wide-int.cc builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
wide-int.h builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1... 2016-07-19 18:40:55 +02:00
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

Copyright (C) 2000-2016 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until now has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


String literals
---------------

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

Some compilers like MSVC++ have fairly low limits on the maximum
length of a string literal; 509 is the lowest we've come across.  You
may need to break up a long printf statement into many smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


Avoid unnecessary test before free
----------------------------------

Since SunOS 4 stopped being a reasonable portability target,
(which happened around 2007) there has been no need to guard
against "free (NULL)".  Thus, any guard like the following
constitutes a redundant test:

  if (P)
    free (P);

It is better to avoid the test.[*]
Instead, simply free P, regardless of whether it is NULL.

[*] However, if your profiling exposes a test like this in a
performance-critical loop, say where P is nearly always NULL, and
the cost of calling free on a NULL pointer would be prohibitively
high, consider using __builtin_expect, e.g., like this:

  if (__builtin_expect (ptr != NULL, 0))
    free (ptr);



Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


Suffixes on Integer Constants
-----------------------------

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (int a, int b)
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending.

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.