gcc/gcc
Jonathan Wakely 310055e7b4 Handle alignment in __atomic_is_lock_free
gcc:

2015-09-17  Richard Henderson  <rth@redhat.com>

	PR libstdc++/65913
	* builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
	pointers that encode the alignment of the object.

libstdc++-v3:

2015-09-17  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/65913
	* include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
	__atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
	immediate pointer value, not a variable.
	* include/std/atomic (atomic<T>::is_lock_free()): Likewise.
	* testsuite/29_atomics/atomic/65913.cc: New.

From-SVN: r227878
2015-09-17 16:46:04 +01:00
..
ada misc.c (gnat_post_options): Issue a warning if generating STABS debugging information when not the default. 2015-09-14 07:53:49 +00:00
c re PR c/67580 (Improve error message on missing "struct" tag) 2015-09-15 17:19:11 +00:00
c-family Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
common arc-common.c: Remove references to A5. 2015-09-10 10:46:03 +01:00
config re PR middle-end/65958 (-fstack-check breaks alloca on architectures using generic stack checking) 2015-09-17 11:06:57 +00:00
cp cp-tree.h (note_decl_for_pch): Remove. 2015-09-17 07:48:09 +00:00
doc invoke.texi ([Wsubobject-linkage]): Extend documentation. 2015-09-16 15:14:39 +00:00
fortran re PR fortran/52846 ([F2008] Support submodules) 2015-09-17 09:09:34 +00:00
ginclude
go compiler: Issue channel type errors earlier. 2015-09-17 13:57:40 +00:00
java opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't include input.h. 2015-07-15 19:50:23 +00:00
jit Support embedding the driver in-process within libgccjit 2015-08-25 20:25:05 +00:00
lto lto.c (compare_tree_sccs_1): Compare DECL_ABSTRACT_ORIGIN. 2015-08-31 14:01:45 +00:00
objc remove more useless typedefs 2015-08-19 02:48:48 +00:00
objcp tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
po * da.po: Update. 2015-08-17 18:13:16 +01:00
testsuite re PR middle-end/65958 (-fstack-check breaks alloca on architectures using generic stack checking) 2015-09-17 11:06:57 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog Handle alignment in __atomic_is_lock_free 2015-09-17 16:46:04 +01: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.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2015-09-17 00:16:12 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
ONEWS
README.Portability
acinclude.m4 re PR other/66259 (Combined gcc and binutils build from git-master fails, with gas/as-new not existing) 2015-07-24 12:20:44 -06:00
aclocal.m4 This patch syncs zlib.m4 with binutils-gdb and uses AM_ZLIB from zlib.m4 2015-07-14 07:25:35 -07:00
addresses.h
alias.c don't typedef alias_set_entry and unhide pointerness 2015-09-13 16:53:08 +00:00
alias.h alias.h (alias_set_type): Move typedef. 2015-06-25 16:27:12 +00:00
alloc-pool.c Fix BITMAP identifier clash. 2015-06-10 07:57:34 +00:00
alloc-pool.h Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
asan.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
asan.h
attribs.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
attribs.h
auto-inc-dec.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
auto-profile.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
auto-profile.h
backend.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
basic-block.h re PR middle-end/66353 (Missing bb_has_abnormal_call_pred in basic-block.h) 2015-07-11 10:03:38 +00:00
bb-reorder.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
bb-reorder.h
bitmap.c Fallout for new memory statistics infrastructure. 2015-06-16 13:24:54 +00:00
bitmap.h Fix double word typos. 2015-07-13 04:46:34 +00:00
bt-load.c bt-load.c: remove typedefs that hide pointerness 2015-09-13 16:54:15 +00:00
builtin-attrs.def
builtin-types.def
builtins.c Handle alignment in __atomic_is_lock_free 2015-09-17 16:46:04 +01:00
builtins.def re PR middle-end/36757 (__builtin_signbit should be type-generic) 2015-08-18 20:07:57 +00:00
builtins.h
caller-save.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
calls.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
calls.h function.h (struct incoming_args): Move struct. 2015-06-25 16:51:35 +00:00
ccmp.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ccmp.h
cfg-flags.def
cfg.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
cfg.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
cfganal.c cfganal.c (pre_and_rev_post_order_compute_fn): Correctly enter entry and exit blocks for reverse post order. 2015-08-31 13:45:48 +00:00
cfganal.h
cfgbuild.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
cfgbuild.h
cfgcleanup.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
cfgcleanup.h
cfgexpand.c re PR tree-optimization/67253 (ICE at -O3 on x86_64-linux-gnu (verify_gimple failed)) 2015-09-16 14:27:52 +00:00
cfgexpand.h [PR64164] fix regressions reported on m68k and armeb 2015-08-19 17:00:32 +00:00
cfghooks.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
cfghooks.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
cfgloop.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
cfgloop.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
cfgloopanal.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
cfgloopmanip.c Fix double word typos. 2015-07-13 04:46:34 +00:00
cfgloopmanip.h
cfgrtl.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
cfgrtl.h
cgraph.c Fix double word typos. 2015-07-13 04:46:34 +00:00
cgraph.h remove useless typedefs 2015-08-19 02:48:16 +00:00
cgraphbuild.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
cgraphclones.c Fix double word typos. 2015-07-13 04:46:34 +00:00
cgraphunit.c Move check_global_declaration from toplev.c to cgraphunit.c 2015-09-16 21:25:28 +00:00
chkp-builtins.def
cif-code.def
cilk-builtins.def
cilk-common.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
cilk.h
cilkplus.def
collect-utils.c collect-utils.c (collect_wait): Unlink the response file here instead of... 2015-06-23 20:48:07 +00:00
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
collect2.h
combine-stack-adj.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
combine.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
common.md
common.opt remove -floop-* flags 2015-08-27 19:07:04 +00:00
compare-elim.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
conditions.h
config.build * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*. 2015-08-21 17:44:47 +00:00
config.gcc config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and gr6 as possible values, defaulting to gr5. 2015-09-13 17:10:54 +00:00
config.host configure.ac: Remove uwin* cases. 2015-08-21 17:38:01 +00:00
config.in re PR bootstrap/67363 (r227188 breaks build for mingw-w64) 2015-09-10 22:52:08 +00:00
configure configure.ac: [SH] Fix target pattern for TLS support test so to enable more arches. 2015-09-15 00:20:14 +00:00
configure.ac configure.ac: [SH] Fix target pattern for TLS support test so to enable more arches. 2015-09-15 00:20:14 +00:00
context.c
context.h
convert.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
convert.h
coretypes.h Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
coverage.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
coverage.h
cppbuiltin.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
cse.c cse.c (cse_insn): Restoring old behaviour for src_eqv when dest and value in the REG_EQUAL are... 2015-08-05 01:08:49 +00:00
cselib.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
cselib.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
cstamp-h.in
data-streamer-in.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
data-streamer-out.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
data-streamer.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
data-streamer.h
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c Fix double word typos. 2015-07-13 04:46:34 +00:00
dbxout.h
dce.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
dce.h
ddg.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ddg.h
debug.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
debug.h Add DWARF2_LINENO_DEBUGGING_INFO, and use it for nvptx 2015-08-14 12:37:14 +02:00
defaults.h defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions. 2015-09-15 16:25:59 +00:00
df-core.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
df-problems.c re PR rtl-optimization/66790 (Invalid uninitialized register handling in REE) 2015-09-17 15:35:24 +00:00
df-scan.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
df.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
dfp.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
diagnostic.c Change of location_get_source_line signature 2015-09-15 16:53:01 +00:00
diagnostic.def
diagnostic.h The flag diagnostic_context::some_warnings_are_errors controls whether to give... 2015-09-14 19:27:50 +00:00
dojump.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
dojump.h
dominance.c Refactor dominance.c: define dom_info as C++ class 2015-08-22 03:20:13 +00:00
dominance.h
domwalk.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
domwalk.h
double-int.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
double-int.h
dse.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
dumpfile.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
dumpfile.h coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
dwarf2asm.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
dwarf2asm.h
dwarf2cfi.c dwarf2cfi.c: remove typedef that hides pointerness 2015-09-13 16:55:05 +00:00
dwarf2out.c passes.c (rest_of_decl_compilation): Always call early_global_decl debug hook when we created a varpool node. 2015-09-17 09:47:43 +00:00
dwarf2out.h remove useless typedefs 2015-08-19 02:48:16 +00:00
emit-rtl.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
emit-rtl.h function.h (struct incoming_args): Move struct. 2015-06-25 16:51:35 +00:00
errors.c
errors.h
et-forest.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
et-forest.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
except.c target-insns.def (eh_return): New targetm instruction pattern. 2015-07-28 19:54:06 +00:00
except.h
exec-tool.in
explow.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
explow.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
expmed.c rtl.h (rtvec_all_equal_p): Declare. 2015-08-20 19:04:34 +00:00
expmed.h
expr.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
expr.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
fibonacci_heap.h
file-find.c
file-find.h
final.c remove useless typedefs 2015-08-19 02:48:16 +00:00
fixed-value.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
fixed-value.h
flag-types.h coretypes.h (enum symbol_visibility): Relocate here. 2015-08-05 23:18:09 +00:00
flags.h flags.h: Don't include flag-types.h or options.h. 2015-07-09 11:27:35 +00:00
fold-const.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
fold-const.h
fp-test.c
function.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
function.h Wunused-parameter warnings are given from cgraph::finalize_function, 2015-06-29 16:25:26 +00:00
fwprop.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
gcc-ar.c
gcc-main.c Support embedding the driver in-process within libgccjit 2015-08-25 20:25:05 +00:00
gcc-plugin.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gcc-symtab.h
gcc.c Avoid strndup in gcc.c (PR bootstrap/67363) 2015-08-31 11:19:42 +00:00
gcc.h Support embedding the driver in-process within libgccjit 2015-08-25 20:25:05 +00:00
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov-tool.c
gcov.c
gcse-common.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gcse-common.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
gcse.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
gcse.h
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genattr.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genattrtab.c gensupport.h (get_num_insn_codes): Declare. 2015-08-05 15:44:23 +00:00
genautomata.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
gencheck.c
genchecksum.c
gencodes.c gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one. 2015-08-21 17:23:10 +00:00
genconditions.c gensupport.h (get_c_test): Declare. 2015-08-05 15:46:02 +00:00
genconfig.c always define HAVE_peephole2 2015-08-21 01:15:15 +00:00
genconstants.c
genemit.c genemit.c (print_code, [...]): Remove declarations. 2015-07-20 15:57:19 +00:00
genenums.c
generic-match-head.c generic-match-head.c: Include cgraph.h. 2015-07-23 14:31:44 +00:00
generic-match.h
genextract.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genflags.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
gengenrtl.c
gengtype-lex.l
gengtype-parse.c gengtype-parse.c (require_template_declaration): Allow '+' in template parameters. 2015-06-25 17:16:44 +00:00
gengtype-state.c
gengtype.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gengtype.h
genhooks.c
genmatch.c genmatch.c (parser::parse_expr): Improve error message for mis-placed flags. 2015-09-17 11:02:11 +00:00
genmddeps.c
genmddump.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genmodes.c genmodes.c: Add CONST_MODE_UNIT_SIZE modifier. 2015-09-01 12:40:10 +00:00
genmultilib
genopinit.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
genoutput.c gensupport.c (sequence_num): Replace with... 2015-08-05 15:47:31 +00:00
genpeep.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genpreds.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genrecog.c gensupport.h (get_c_test): Declare. 2015-08-05 15:46:02 +00:00
gensupport.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
gensupport.h genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
gentarget-def.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
ggc-common.c hash-traits.h (free_ptr_hash): New class. 2015-06-25 17:06:24 +00:00
ggc-internal.h
ggc-none.c
ggc-page.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
ggc.h
gimple-builder.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gimple-builder.h
gimple-expr.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
gimple-expr.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
gimple-fold.c re PR middle-end/67563 (verify_flow_info failed) 2015-09-15 12:37:19 +00:00
gimple-fold.h
gimple-iterator.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gimple-iterator.h Fix gimple_seq_nondebug_singleton_p 2015-06-09 05:52:52 +00:00
gimple-laddress.c re PR tree-optimization/66718 (Non-invariant ADDR_EXPR not vectorized) 2015-07-09 09:01:51 +00:00
gimple-low.c re PR middle-end/67222 (ICE in gimple_call_arg with bogus posix_memalign) 2015-08-18 13:41:27 +00:00
gimple-low.h
gimple-match-head.c re PR middle-end/67285 (ICE with (rdiv (POW:s @0 REAL_CST@1) @0)) 2015-08-21 08:06:20 +00:00
gimple-match.h
gimple-predict.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gimple-pretty-print.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gimple-pretty-print.h gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
gimple-ssa-isolate-paths.c re PR middle-end/67133 (ICE at -Os and above on x86_64-linux-gnu in gimple_op, at gimple.h:2274) 2015-08-19 14:22:26 +00:00
gimple-ssa-strength-reduction.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
gimple-ssa.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gimple-streamer-in.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
gimple-streamer-out.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
gimple-streamer.h gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
gimple-walk.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gimple-walk.h
gimple.c re PR middle-end/67133 (ICE at -Os and above on x86_64-linux-gnu in gimple_op, at gimple.h:2274) 2015-08-14 16:29:38 +00:00
gimple.def
gimple.h gimple.h (gcall::code_): New constant static member. 2015-08-13 06:59:25 +00:00
gimplify-me.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gimplify-me.h
gimplify.c re PR c++/67523 (ICE with invalid combined simd inside of a template) 2015-09-10 09:35:56 +02:00
gimplify.h
glimits.h
godump.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
graph.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
graph.h
graphds.c
graphds.h
graphite-dependences.c fix PR53852: stop ISL after a given number of operations 2015-09-09 04:20:47 +00:00
graphite-isl-ast-to-gimple.c Remove limit_scops 2015-09-08 22:18:11 +00:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c Remove dead code from graphite-optimize-isl.c 2015-09-11 19:50:48 +00:00
graphite-poly.c remove -floop-* flags 2015-08-27 19:07:04 +00:00
graphite-poly.h remove -floop-* flags 2015-08-27 19:07:04 +00:00
graphite-scop-detection.c Remove limit_scops 2015-09-08 22:18:11 +00:00
graphite-scop-detection.h [graphite] fix pr61929 2015-07-17 16:34:21 +00:00
graphite-sese-to-poly.c remove -floop-* flags 2015-08-27 19:07:04 +00:00
graphite-sese-to-poly.h
graphite.c remove -floop-* flags 2015-08-27 19:07:04 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c remove useless typedefs 2015-08-19 02:48:16 +00:00
hard-reg-set.h hash-table.h: Update comments. 2015-06-25 17:06:13 +00:00
hash-map-traits.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
hash-map.h hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather than the typedef itself. 2015-06-26 16:50:19 +00:00
hash-set.h hash_set: add iterator and remove method. 2015-07-16 14:11:52 +00:00
hash-table.c Fallout for new memory statistics infrastructure. 2015-06-16 13:24:54 +00:00
hash-table.h Fix double word typos. 2015-07-13 04:46:34 +00:00
hash-traits.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
highlev-plugin-common.h
hooks.c target.def (rtx_costs): Remove "code" param, add "mode". 2015-07-08 12:32:27 +09:30
hooks.h target.def (rtx_costs): Remove "code" param, add "mode". 2015-07-08 12:32:27 +09:30
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
hw-doloop.h
hwint.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
hwint.h Avoid signed left shift undefined behaviour in sext_hwi 2015-08-19 13:42:36 +00:00
ifcvt.c [RTL-ifcvt] Make non-conditional execution if-conversion more aggressive 2015-09-01 12:33:51 +00:00
ifcvt.h
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
input.c Change of location_get_source_line signature 2015-09-15 16:53:01 +00:00
input.h Change of location_get_source_line signature 2015-09-15 16:53:01 +00:00
insn-addr.h
insn-notes.def
internal-fn.c Fix double word typos. 2015-07-13 04:46:34 +00:00
internal-fn.def
internal-fn.h
intl.c
intl.h
ipa-chkp.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-chkp.h
ipa-comdats.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-cp.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ipa-devirt.c remove useless typedefs 2015-08-19 02:48:16 +00:00
ipa-icf-gimple.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-icf-gimple.h
ipa-icf.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
ipa-icf.h Fix double word typos. 2015-07-13 04:46:34 +00:00
ipa-inline-analysis.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ipa-inline-transform.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-inline.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-inline.h
ipa-polymorphic-call.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
ipa-profile.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ipa-prop.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ipa-prop.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
ipa-pure-const.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
ipa-ref.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
ipa-ref.h
ipa-reference.c lto-streamer.h: Don't include target.h and alloc-pool.h. 2015-07-09 14:24:20 +00:00
ipa-reference.h
ipa-split.c remove useless typedefs 2015-08-19 02:48:16 +00:00
ipa-utils.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
ipa-utils.h
ipa-visibility.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
ipa.c ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P. 2015-08-27 08:02:57 +00:00
ira-build.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ira-color.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
ira-conflicts.c ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
ira-costs.c ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
ira-emit.c ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
ira-int.h ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
ira-lives.c ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
ira.c Remove redundant use of REG_CLASS_NAMES maros 2015-08-29 16:10:43 +03:00
ira.h Add alternative_mask to ira_implicitly_set_insn_hard_regs 2015-08-07 09:18:09 -07:00
is-a.h
jump.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
langhooks-def.h
langhooks.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
langhooks.h
lcm.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
lcm.h
libfuncs.h hash-traits.h (ggc_hasher): Rename to... 2015-06-25 17:06:36 +00:00
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
loop-init.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
loop-invariant.c re PR debug/67043 (-fcompare-debug failure with -O3) 2015-08-04 02:11:58 +00:00
loop-iv.c Fix PR61657 (undefined behavior in loop-iv.c) 2015-08-21 16:44:30 +00:00
loop-unroll.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
loop-unroll.h
lower-subreg.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
lower-subreg.h
lra-assigns.c re PR rtl-optimization/66626 (gcc.dg/torture/stackalign/non-local-goto-5.c segfaults w/ -mregparm=3 or -miamcu) 2015-07-16 15:26:35 +00:00
lra-coalesce.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
lra-constraints.c Fix endianness assumption in LRA. 2015-09-16 10:46:21 -07:00
lra-eliminations.c [obvious] Use std::swap instead of manually swapping in a few more places 2015-07-24 16:46:04 +00:00
lra-int.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
lra-lives.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
lra-remat.c re PR ipa/66424 (wrong code at -O2 and -O3 on x86_64-linux-gnu in 32-bit mode) 2015-07-21 19:54:23 +00:00
lra-spills.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
lra.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
lra.h
lto-cgraph.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
lto-compress.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
lto-compress.h
lto-opts.c lto-streamer.h: Don't include target.h and alloc-pool.h. 2015-07-09 14:24:20 +00:00
lto-section-in.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
lto-section-names.h
lto-section-out.c lto-streamer.h: Don't include target.h and alloc-pool.h. 2015-07-09 14:24:20 +00:00
lto-streamer-in.c lto-streamer.h (lto_location_cache::cached_location::sysp): Add. 2015-08-31 11:47:30 +00:00
lto-streamer-out.c re PR lto/67568 (lto-streamer-in.c sanitizer runtime error: load of value 255, which is not a valid value for type 'bool') 2015-09-15 08:00:30 +00:00
lto-streamer.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
lto-streamer.h re PR lto/67568 (lto-streamer-in.c sanitizer runtime error: load of value 255, which is not a valid value for type 'bool') 2015-09-15 08:00:30 +00:00
lto-wrapper.c lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret... 2015-09-14 13:25:36 +00:00
machmode.def
machmode.h genmodes.c (emit_mode_unit_size_inline): New function. 2015-08-19 15:23:11 +00:00
main.c Refactoring of timevar API 2015-08-03 20:14:21 +00:00
match.pd re PR tree-optimization/67351 (Missed optimisation on 64-bit field compared to 32-bit) 2015-09-03 10:20:03 +00:00
mcf.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
mem-stats-traits.h Fix BITMAP identifier clash. 2015-06-10 07:57:34 +00:00
mem-stats.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
memory-block.cc Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
memory-block.h Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
mkconfig.sh
mode-classes.def
mode-switching.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
modulo-sched.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
omp-builtins.def
omp-low.c Handle 2 preds for fin_bb in expand_omp_for_static_chunk 2015-09-03 11:01:22 +00:00
omp-low.h
opt-functions.awk options.texi (EnabledBy): Document that the argument must be a Common option. 2015-08-09 19:30:17 +00:00
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-libfuncs.h Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-query.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-query.h Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-tree.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-tree.h Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs.def
optabs.h Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optc-gen.awk options.texi (EnabledBy): Document that the argument must be a Common option. 2015-08-09 19:30:17 +00:00
optc-save-gen.awk
opth-gen.awk opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't include input.h. 2015-07-15 19:50:23 +00:00
opts-common.c Honour DriverOnly for enum values in error messages 2015-07-28 05:51:01 +00:00
opts-diagnostic.h
opts-global.c lto-streamer.h: Don't include target.h and alloc-pool.h. 2015-07-09 14:24:20 +00:00
opts.c common.opt (fstack-protector): Initialize to -1. 2015-08-19 16:07:06 -06:00
opts.h coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
output.h
params-list.h Add copyright in gcc/params-list.h 2015-09-09 14:44:01 +00:00
params.c
params.def fix PR53852: stop ISL after a given number of operations 2015-09-09 04:20:47 +00:00
params.h Prevent unnecessary recompilation for trivial params.def changes 2015-09-08 21:20:51 +00:00
pass_manager.h
passes.c passes.c (rest_of_decl_compilation): Always call early_global_decl debug hook when we created a varpool node. 2015-09-17 09:47:43 +00:00
passes.def [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
plugin.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
plugin.def
plugin.h gcc-plugin.h: Move decls to plugin.h and include it. 2015-06-09 17:53:24 +00:00
postreload-gcse.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
postreload.c re PR rtl-optimization/66838 (Calling multiple SYSV AMD64 ABI functions from MS x64 ABI one results in clobbered parameters) 2015-07-15 09:28:33 +02:00
predict.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h Trivial typo fix in pretty-print.h 2015-09-08 19:59:42 +00:00
print-rtl.c fix -fdump-unnumbered-links 2015-08-21 20:03:33 +00:00
print-rtl.h
print-tree.c * print-tree.c (print_node): Handle TREE_BINFO. 2015-08-18 17:29:12 -04:00
print-tree.h
profile.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
profile.h
read-md.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
read-md.h read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
read-rtl.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
real.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
real.h
realmpfr.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
realmpfr.h
recog.c gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one. 2015-08-21 17:23:10 +00:00
recog.h gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one. 2015-08-21 17:23:10 +00:00
ree.c remove useless typedefs 2015-08-19 02:48:16 +00:00
reg-notes.def
reg-stack.c Fix double word typos. 2015-07-13 04:46:34 +00:00
regcprop.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
regcprop.h
reginfo.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
regrename.c bb-reorder.c: Don't include obstack.h if backend.h is included. 2015-07-10 21:05:42 +00:00
regrename.h regrename.h (regrename_do_replace): Change to return bool. 2015-06-28 16:46:01 -04:00
regs.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
regset.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
regstat.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
reload.c always define WORD_REGISTER_OPERATIONS 2015-07-09 02:51:19 +00:00
reload.h
reload1.c Stop reload1.c warning from breaking bootstrap 2015-09-10 19:17:24 +00:00
reorg.c remove another #if for HAVE_cc0 2015-08-21 01:14:59 +00:00
resource.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
resource.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
rtl-chkp.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
rtl-chkp.h
rtl-error.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
rtl-error.h
rtl-iter.h
rtl.c rtl.h (rtvec_all_equal_p): Declare. 2015-08-20 19:04:34 +00:00
rtl.def
rtl.h rtl.h (rtvec_all_equal_p): Declare. 2015-08-20 19:04:34 +00:00
rtlanal.c c-common.c (warn_for_sign_compare): Cast to unsigned when shifting a negative value. 2015-09-14 10:36:50 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sanitizer.def sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG, [...]): Fix builtin types. 2015-08-21 08:42:57 +00:00
sanopt.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
sbitmap.c
sbitmap.h Fix double word typos. 2015-07-13 04:46:34 +00:00
sched-deps.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
sched-ebb.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
sched-int.h c-common.c (warn_for_sign_compare): Cast to unsigned when shifting a negative value. 2015-09-14 10:36:50 +00:00
sched-rgn.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
sched-vis.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sdbout.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sdbout.h
sel-sched-dump.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sel-sched-dump.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sel-sched-ir.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
sel-sched-ir.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
sel-sched.c ira-int.h: Include recog.h. 2015-08-13 21:39:03 +00:00
sel-sched.h
sese.c Remove limit_scops 2015-09-08 22:18:11 +00:00
sese.h Remove limit_scops 2015-09-08 22:18:11 +00:00
shrink-wrap.c shrink-wrap: Rewrite 2015-09-15 02:38:21 +02:00
shrink-wrap.h Put back requires_stack_frame_p used by i386.c 2015-09-10 12:19:27 -07:00
signop.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
simplify-rtx.c re PR rtl-optimization/67218 (Combine incorrectly folds (double) (float) (unsigned)) 2015-08-18 19:04:41 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssa-iterators.h ssa-iterators.h (has_zero_uses, [...]): Implement as straight loops. 2015-07-21 19:15:13 +00:00
ssa.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
stab.def
stack-ptr-mod.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
statistics.c cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. 2015-06-25 17:06:52 +00:00
statistics.h
stmt.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
stmt.h
stor-layout.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
stor-layout.h
store-motion.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
streamer-hooks.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
streamer-hooks.h
stringpool.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
stringpool.h
symbol-summary.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
symtab.c lto-streamer.h: Don't include target.h and alloc-pool.h. 2015-07-09 14:24:20 +00:00
sync-builtins.def
system.h remove STRUCT_VALUE macro 2015-09-12 22:19:00 +00:00
target-def.h Makefile.in (TARGET_DEF): Add target-insns.def. 2015-06-25 17:18:12 +00:00
target-globals.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
target-globals.h
target-hooks-macros.h
target-insns.def genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
target.def tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New. 2015-09-04 08:51:44 +00:00
target.h
targhooks.c always define HAVE_conditional_execution 2015-08-21 01:14:46 +00:00
targhooks.h
timevar.c Refactoring of timevar API 2015-08-03 20:14:21 +00:00
timevar.def Refactoring of timevar API 2015-08-03 20:14:21 +00:00
timevar.h Refactoring of timevar API 2015-08-03 20:14:21 +00:00
tlink.c
toplev.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
toplev.h Move check_global_declaration from toplev.c to cgraphunit.c 2015-09-16 21:25:28 +00:00
tracer.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
trans-mem.c + * trans-mem.c: Add contributed-by. 2015-09-01 13:52:09 +00:00
trans-mem.h + * trans-mem.c: Add contributed-by. 2015-09-01 13:52:09 +00:00
tree-affine.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-affine.h
tree-call-cdce.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-cfg.c Don't create superfluous parm in expand_omp_taskreg 2015-08-23 09:19:32 +00:00
tree-cfg.h Don't create superfluous parm in expand_omp_taskreg 2015-08-23 09:19:32 +00:00
tree-cfgcleanup.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c re PR middle-end/66807 (--enable-libmpx failed) 2015-07-09 07:47:38 +00:00
tree-chkp.c re PR target/67405 (ICE on invalid use of struct on x86_64-linux-gnu) 2015-09-01 14:38:42 +00:00
tree-chkp.h re PR middle-end/66568 ([CHKP] internal compiler error: in expand_expr_addr_expr_1) 2015-06-18 10:14:38 +00:00
tree-chrec.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-chrec.h
tree-complex.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-core.h * tree-core.h (tree_base): Fix typo. 2015-08-14 17:59:41 +00:00
tree-data-ref.c Remove limit_scops 2015-09-08 22:18:11 +00:00
tree-data-ref.h Remove limit_scops 2015-09-08 22:18:11 +00:00
tree-dfa.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-dfa.h
tree-diagnostic.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-diagnostic.h
tree-dump.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-dump.h
tree-eh.c tree-eh.c (lower_try_finally_dup_block): Clear location information on stack restore statements. 2015-09-15 17:57:49 +00:00
tree-eh.h
tree-emutls.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-hash-traits.h tree-hash-traits.h (tree_hash): New class. 2015-06-25 17:16:15 +00:00
tree-hasher.h
tree-if-conv.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-inline.c gimple-fold.c (fold_gimple_cond): Do not require folding results to pass valid_gimple_rhs_p. 2015-07-23 13:33:43 +00:00
tree-inline.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-into-ssa.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-into-ssa.h
tree-iterator.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-iterator.h
tree-loop-distribution.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-nested.c re PR middle-end/66633 (ICE on valid "verify_gimple failed" with OpenMP) 2015-07-09 23:14:11 +02:00
tree-nested.h
tree-nrv.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-object-size.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-object-size.h
tree-outof-ssa.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
tree-outof-ssa.h
tree-parloops.c Add param parloops-chunk-size 2015-09-03 11:00:46 +00:00
tree-parloops.h
tree-pass.h tree-pass.h (get_current_pass_name): Removed. 2015-07-23 19:01:03 +00:00
tree-phinodes.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-phinodes.h
tree-predcom.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-pretty-print.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-pretty-print.h
tree-profile.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-scalar-evolution.c tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New parameter. 2015-09-17 03:08:41 +00:00
tree-scalar-evolution.h
tree-sra.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
tree-ssa-address.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-ssa-address.h
tree-ssa-alias.c re PR middle-end/67222 (ICE in gimple_call_arg with bogus posix_memalign) 2015-08-18 13:41:27 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c re PR tree-optimization/67055 (Segmentation fault in fold_builtin_alloca_with_align in tree-ssa-ccp.c) 2015-08-05 10:01:12 +00:00
tree-ssa-coalesce.c [PR64164] fix regressions reported on m68k and armeb 2015-08-19 17:00:32 +00:00
tree-ssa-coalesce.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
tree-ssa-copy.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-ssa-dce.c re PR middle-end/67005 (ICE: in verify_loop_structure, at cfgloop.c:1647 (loop with header n not in loop tree)) 2015-08-27 17:07:35 +00:00
tree-ssa-dom.c [PATCH] Pass in avail_expr_stack and setup edge_infos earlier 2015-09-16 21:01:03 -06:00
tree-ssa-dom.h
tree-ssa-dse.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
tree-ssa-forwprop.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-ssa-ifcombine.c re PR tree-optimization/66952 (wrong code at -O2 and -O3 on x86_64-linux-gnu) 2015-07-22 11:31:50 +00:00
tree-ssa-live.c re PR middle-end/67452 (LTO ICE with -fopenmp-simd) 2015-09-04 20:32:00 +02:00
tree-ssa-live.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
tree-ssa-loop-ch.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-ssa-loop-im.c re PR tree-optimization/67470 (ICE at -O3 on x86_64-linux-gnu in compute_live_loop_exits, at tree-ssa-loop-manip.c:235) 2015-09-15 14:10:10 +00:00
tree-ssa-loop-ivcanon.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-ssa-loop-ivopts.c re PR tree-optimization/66388 (Test gcc.target/i386/pr49781-1.c failed because of recent scev overflow patches.) 2015-09-17 03:40:18 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c Reimplement rewrite_virtuals_into_loop_closed_ssa 2015-08-31 13:48:29 +00:00
tree-ssa-loop-manip.h Add rewrite_virtuals_into_loop_closed_ssa 2015-07-07 16:25:12 +00:00
tree-ssa-loop-niter.c tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New parameter. 2015-09-17 03:08:41 +00:00
tree-ssa-loop-niter.h tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New parameter. 2015-09-17 03:08:41 +00:00
tree-ssa-loop-prefetch.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-ssa-loop-unswitch.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-ssa-loop.c fix pr46851 and pr60340: remove unmaintained omega dependence test 2015-07-18 01:11:05 +00:00
tree-ssa-loop.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-ssa-math-opts.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-ssa-operands.c ssa-iterators.h (has_zero_uses, [...]): Implement as straight loops. 2015-07-21 19:15:13 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-ssa-phiprop.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tree-ssa-pre.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
tree-ssa-propagate.c re PR middle-end/66945 (ICE in generic_simplify (generic-match.c:24790)) 2015-07-23 07:23:23 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-ssa-sccvn.c tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for offset and size computations instead of HOST_WIDE_INT. 2015-09-16 10:02:21 +00:00
tree-ssa-sccvn.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-ssa-scopedtables.c [PATCH] Move code out of tree-ssa-dom into tree-ssa-scopedtables 2015-09-16 11:25:51 -06:00
tree-ssa-scopedtables.h [PATCH] Move code out of tree-ssa-dom into tree-ssa-scopedtables 2015-09-16 11:25:51 -06:00
tree-ssa-sink.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
tree-ssa-strlen.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
tree-ssa-structalias.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
tree-ssa-tail-merge.c Fix double word typos. 2015-07-13 04:46:34 +00:00
tree-ssa-ter.c tree-ssa-ter.c: remove typedefs that hide pointerness 2015-09-13 16:54:32 +00:00
tree-ssa-ter.h
tree-ssa-threadedge.c [PATCH] Pass in avail_expr_stack and setup edge_infos earlier 2015-09-16 21:01:03 -06:00
tree-ssa-threadedge.h [PATCH] Pass in avail_expr_stack and setup edge_infos earlier 2015-09-16 21:01:03 -06:00
tree-ssa-threadupdate.c [PATCH][lto/66752] Fix missed FSM jump thread 2015-08-28 10:23:12 -06:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
tree-ssa-uninit.c re PR middle-end/67512 (internal compiler error: in invert_tree_comparison, at fold-const.c:2456) 2015-09-09 17:09:32 +00:00
tree-ssa.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-ssa.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-ssanames.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
tree-ssanames.h re PR tree-optimization/66952 (wrong code at -O2 and -O3 on x86_64-linux-gnu) 2015-07-22 11:31:50 +00:00
tree-stdarg.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
tree-stdarg.h
tree-streamer-in.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
tree-streamer-out.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
tree-streamer.c gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
tree-streamer.h gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
tree-switch-conversion.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-tailcall.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
tree-vect-data-refs.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vect-generic.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vect-loop-manip.c remove more useless typedefs 2015-08-19 02:48:48 +00:00
tree-vect-loop.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vect-patterns.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vect-slp.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vect-stmts.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree-vectorizer.c gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
tree-vectorizer.h tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New. 2015-09-04 08:51:44 +00:00
tree-vrp.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
tree.c Move some comparison simplifications to match.pd 2015-08-31 14:02:00 +00:00
tree.def
tree.h Move some comparison simplifications to match.pd 2015-08-31 14:02:00 +00:00
treestruct.def
tsan.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h jit: add switch statements 2015-06-30 20:39:50 +00:00
ubsan.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
ubsan.h
valtrack.c Fix double word typos. 2015-07-13 04:46:34 +00:00
valtrack.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
value-prof.c value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument and get builtin function code directly from CALL. 2015-08-21 14:34:52 +00:00
value-prof.h
var-tracking.c Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
varasm.c varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree. 2015-09-03 12:45:33 +00:00
varasm.h
varpool.c toplev.c (compile_file): Remove loop calling late_global_decl on all symbols. 2015-08-20 11:02:30 +00:00
vec.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
vec.h Fix double word typos. 2015-07-13 04:46:34 +00:00
version.c
version.h
vmsdbg.h
vmsdbgout.c fix compilation of vmsdbgout.c 2015-07-18 21:09:04 +00:00
vtable-verify.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
vtable-verify.h re PR bootstrap/66521 (xgcc: cc1plus segfaults when compiling libstdc++-v3/src/c++11/ostream-inst.cc) 2015-08-01 18:17:39 -07:00
web.c Revert "replace several uses of the anon namespace with GCC_FINAL" 2015-08-12 20:09:33 +00:00
wide-int-print.cc
wide-int-print.h
wide-int.cc re PR middle-end/66311 (Problems with some integer(16) values) 2015-08-05 14:23:42 +00:00
wide-int.h Fix partial specialization syntax of wide int traits. 2015-07-20 05:30:12 +00:00
xcoff.h
xcoffout.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
xcoffout.h

README.Portability

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