gcc/gcc
Nathan Sidwell 6e91acf8bb target-insns.def (oacc_fork, oacc_join): Define.
* target-insns.def (oacc_fork, oacc_join): Define.
	* target.def (goacc.validate_dims): Adjust doc to avoid warning.
	(goacc.fork_join): New GOACC hook.
	* targhooks.h (default_goacc_fork_join): Declare.
	* omp-low.c (default_goacc_forkjoin): New.
	* doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
	* doc/tm.texi: Regenerate.

From-SVN: r229465
2015-10-27 22:16:19 +00:00
..
ada [multiple changes] 2015-10-27 12:56:12 +01:00
c c-parser.c (c_parser_oacc_shape_clause): New. 2015-10-27 20:21:31 +00:00
c-family [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++ 2015-10-27 09:39:15 +01:00
common Properly handle -miamcu and -march=lakemont 2015-10-20 08:12:37 -07:00
config re PR rtl-optimization/67609 (Generates wrong code for SSE2 _mm_load_pd) 2015-10-27 12:59:41 -07:00
cp parser.c (cp_parser_omp_clause_name): Add auto, gang, seq, vector, worker. 2015-10-27 20:19:24 +00:00
doc target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +00:00
fortran [PR fortran/63865] OpenACC cache directive: match Fortran support with C/C++ 2015-10-27 17:54:52 +01:00
ginclude
go Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
java function.h (MINIMUM_METHOD_BOUNDARY): New macro. 2015-10-26 10:50:37 +01:00
jit builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
lto Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
objc
objcp
po * tr.po: Update. 2015-09-25 18:05:49 +01:00
testsuite c-parser.c (c_parser_oacc_shape_clause): New. 2015-10-27 20:21:31 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +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 Fix old ChangeLog entry to include global variable name that was changed. 2015-09-25 16:55:10 +00:00
ChangeLog-2014
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2015-10-27 00:16:12 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def and builtins.def. 2015-10-23 11:08:10 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c re PR rtl-optimization/67443 (DSE removes required store instruction) 2015-10-26 15:24:45 +00:00
alias.h
alloc-pool.c
alloc-pool.h alloc-pool.h (base_pool_allocator): Use placement new. 2015-10-26 09:48:32 +00:00
asan.c libsanitizer merge from upstream r250806, compiler part. 2015-10-21 10:40:54 +03:00
asan.h
attribs.c
attribs.h
auto-inc-dec.c [auto-inc-dec.c] Account for cost of move operation in FORM_PRE_ADD and FORM_POST_ADD cases 2015-10-26 11:51:47 +00:00
auto-profile.c
auto-profile.h
backend.h
basic-block.h
bb-reorder.c bb-reorder: Improve the simple algorithm for -Os (PR67864) 2015-10-11 11:03:09 +02:00
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
builtins.c Move ldexp, scalbn and scalbln folds to match.pd 2015-10-27 12:00:34 +00:00
builtins.def Implement N4514, C++ Extensions for Transactional Memory. 2015-10-04 15:17:19 -04:00
builtins.h
caller-save.c
calls.c Properly handle -fno-plt in ix86_expand_call 2015-10-27 07:29:31 -07:00
calls.h
ccmp.c
ccmp.h
cfg-flags.def
cfg.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfg.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfganal.c Check no unreachable blocks in inverted_post_order_compute 2015-10-13 22:10:45 +00:00
cfganal.h Check no unreachable blocks in inverted_post_order_compute 2015-10-13 22:10:45 +00:00
cfgbuild.c
cfgbuild.h
cfgcleanup.c
cfgcleanup.h
cfgexpand.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfgexpand.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
cfghooks.c
cfghooks.h
cfgloop.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfgloop.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfgloopanal.c
cfgloopmanip.c
cfgloopmanip.h
cfgrtl.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
cfgrtl.h
cgraph.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cgraph.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
cgraphbuild.c Skip local error_mark_node decls 2015-10-20 08:20:29 -07:00
cgraphclones.c Correctly fill up cgraph_node::local.versionable flag. 2015-10-20 11:59:51 +00:00
cgraphunit.c Fix PR68002, add -fkeep-static-functions 2015-10-19 10:24:37 +00:00
chkp-builtins.def
cif-code.def
cilk-builtins.def
cilk-common.c
cilk.h
cilkplus.def
collect-utils.c
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c
combine.c re PR rtl-optimization/67736 (Wrong optimization with -fexpensive-optimizations on mips64el) 2015-10-23 15:56:15 +00:00
common.md
common.opt Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
compare-elim.c remove many typedefs 2015-10-01 15:12:31 +00:00
conditions.h
config.build
config.gcc config.gcc: Handle --enable-fdpic. 2015-10-27 13:36:47 +00:00
config.host
config.in [PATCH 1/9] ENABLE_CHECKING refactoring 2015-10-21 15:16:31 -06:00
configure [PATCH 1/9] ENABLE_CHECKING refactoring 2015-10-21 15:16:31 -06:00
configure.ac [PATCH 1/9] ENABLE_CHECKING refactoring 2015-10-21 15:16:31 -06:00
context.c
context.h
convert.c Move fold_trunc_transparent_mathfn to match.pd 2015-10-23 10:01:47 +00:00
convert.h
coretypes.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
coverage.c remove many typedefs 2015-10-01 15:12:31 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c Remove REAL_VALUE_FROM_CONST_DOUBLE 2015-10-05 11:37:49 +00:00
cse.c Remove remaining uses of CONST_DOUBLE_FROM_REAL_VALUE 2015-10-05 11:36:08 +00:00
cselib.c
cselib.h
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
dbgcnt.c
dbgcnt.def re PR target/65105 ([i386] XMM registers are not used for 64bit computations on 32bit target) 2015-09-29 09:32:40 +00:00
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h always define REVERSE_CONDITION 2015-10-11 00:48:28 +00:00
df-core.c
df-problems.c REE: fix uninitialized registers handling 2015-10-19 23:47:35 +00:00
df-scan.c remove many typedefs 2015-10-01 15:12:31 +00:00
df.h REE: fix uninitialized registers handling 2015-10-19 23:47:35 +00:00
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic-show-locus.c
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c re PR middle-end/68079 (hppa: pointers to method types need canonicalization before comparison) 2015-10-25 15:18:48 +00:00
dojump.h
dominance.c
dominance.h
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c
dumpfile.c
dumpfile.h
dwarf2asm.c dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition. 2015-09-26 11:31:35 -04:00
dwarf2asm.h
dwarf2cfi.c
dwarf2out.c Remove REAL_VALUE_FROM_CONST_DOUBLE 2015-10-05 11:37:49 +00:00
dwarf2out.h
emit-rtl.c Remove remaining uses of CONST_DOUBLE_FROM_REAL_VALUE 2015-10-05 11:36:08 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c always define SETUP_FRAME_ADDRESSES 2015-10-11 00:48:02 +00:00
except.h
exec-tool.in
explow.c Remove remaining uses of REAL_ARITHMETIC 2015-10-05 11:35:07 +00:00
explow.h
expmed.c re PR middle-end/67966 (ICE in convert_move, at expr.c:282) 2015-10-21 18:00:30 +00:00
expmed.h
expr.c Change default of non-overlapping address space conversion 2015-10-21 13:31:26 -07:00
expr.h
fibonacci_heap.h
file-find.c
file-find.h
final.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
fixed-value.c
fixed-value.h
flag-types.h bb-reorder: Add -freorder-blocks-algorithm= and wire it up 2015-10-01 08:38:24 +02:00
flags.h
fold-const.c Move min(max...) and max(min...) folds to match.pd 2015-10-27 11:56:18 +00:00
fold-const.h Move fold_trunc_transparent_mathfn to match.pd 2015-10-23 10:01:47 +00:00
fp-test.c
function.c re PR target/67745 ([ARM] wrong alignments when __attribute__ ((optimize,target,align) is used) 2015-10-16 15:52:51 +02:00
function.h function.h (MINIMUM_METHOD_BOUNDARY): New macro. 2015-10-26 10:50:37 +01:00
fwprop.c
gcc-ar.c
gcc-main.c
gcc-plugin.h
gcc-symtab.h
gcc.c Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov-tool.c
gcov.c
gcse-common.c
gcse-common.h
gcse.c
gcse.h
gdbasan.in
gdbhooks.py update a few places for the change from gimple_statement_base to gimple 2015-09-28 06:26:21 +00:00
gdbinit.in
gen-pass-instances.awk
genattr-common.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
genattr.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
genattrtab.c [PATCH] Fix abort in write_eligible_delay 2015-10-22 13:18:05 -06:00
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c re PR c/67819 (-Wduplicated-cond should take macros into account) 2015-10-02 17:49:15 +00:00
genenums.c
generic-match-head.c PR67945: Fix oscillation between pow representations 2015-10-15 09:50:07 +00:00
generic-match.h
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c Fix crash in gengtype debug dump 2015-10-18 23:33:21 +00:00
gengtype.h
genhooks.c
genmatch.c Move cexp simplifications to match.pd 2015-10-26 09:18:30 +00:00
genmddeps.c
genmddump.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
gentarget-def.c
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c system.h (ROUND_UP): New macro definition. 2015-10-02 20:08:59 +02:00
ggc.h
gimple-builder.c
gimple-builder.h
gimple-expr.c re PR middle-end/67966 (ICE in convert_move, at expr.c:282) 2015-10-21 18:00:30 +00:00
gimple-expr.h
gimple-fold.c Allow more complex call replacements in gimple-fold.c 2015-10-26 14:59:36 +00:00
gimple-fold.h Move fold_trunc_transparent_mathfn to match.pd 2015-10-23 10:01:47 +00:00
gimple-iterator.c
gimple-iterator.h
gimple-laddress.c
gimple-low.c tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
gimple-low.h
gimple-match-head.c Don't create SSA names until in SSA form 2015-10-27 09:07:44 +00:00
gimple-match.h re PR middle-end/67891 (FAIL: gcc.dg/pr43300.c (internal compiler error) on alpha-linux-gnu) 2015-10-09 08:12:18 +00:00
gimple-predict.h
gimple-pretty-print.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
gimple-pretty-print.h
gimple-ssa-backprop.c Add a pass to back-propagate use information 2015-10-21 20:11:33 +00:00
gimple-ssa-isolate-paths.c
gimple-ssa-strength-reduction.c
gimple-ssa.h [PATCH] Update SSA_NAME manager to use two lists 2015-09-30 11:43:26 -06:00
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
gimple-walk.h
gimple.c internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
gimple.def builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
gimple.h internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
gimplify-me.c
gimplify-me.h
gimplify.c [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++ 2015-10-27 09:39:15 +01:00
gimplify.h
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-dependences.c add dump of data dependences 2015-10-10 14:53:16 +00:00
graphite-isl-ast-to-gimple.c avoid generation of empty guards in trivial cases 2015-10-21 18:53:35 +00:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c isl schedule tree 2015-10-27 15:58:05 +00:00
graphite-poly.c Refactoring sese.h and graphite-poly.h 2015-10-21 18:53:17 +00:00
graphite-poly.h Refactor graphite-sese-to-poly, sese.h, graphite-poly.h 2015-10-21 18:53:26 +00:00
graphite-scop-detection.c a scalar depending on vdefs in the current region is not invariant 2015-10-21 21:18:27 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c a scalar depending on vdefs in the current region is not invariant 2015-10-21 21:18:27 +00:00
graphite-sese-to-poly.h move param detection to scop detection 2015-10-05 16:03:09 +00:00
graphite.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
hard-reg-set.h
hash-map-traits.h
hash-map.h
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
hw-doloop.c
hw-doloop.h
hwint.c
hwint.h
ifcvt.c [RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block don't clobber a reg used in condition 2015-10-02 08:36:45 +00:00
ifcvt.h
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
internal-fn.def internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
internal-fn.h internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
intl.c
intl.h
ipa-chkp.c
ipa-chkp.h
ipa-comdats.c
ipa-cp.c Correctly fill up cgraph_node::local.versionable flag. 2015-10-20 11:59:51 +00:00
ipa-devirt.c
ipa-icf-gimple.c revert: ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors. 2015-10-16 11:06:14 +00:00
ipa-icf-gimple.h
ipa-icf.c ipa-icf.c (sem_item::compare_symbol_references): Fix use of availability. 2015-10-08 23:20:06 +00:00
ipa-icf.h
ipa-inline-analysis.c Correctly fill up cgraph_node::local.versionable flag. 2015-10-20 11:59:51 +00:00
ipa-inline-transform.c
ipa-inline.c
ipa-inline.h
ipa-polymorphic-call.c PR ipa/pr67600 2015-10-23 23:33:58 +00:00
ipa-profile.c
ipa-prop.c Correctly fill up cgraph_node::local.versionable flag. 2015-10-20 11:59:51 +00:00
ipa-prop.h Correctly fill up cgraph_node::local.versionable flag. 2015-10-20 11:59:51 +00:00
ipa-pure-const.c
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c
ipa-utils.c
ipa-utils.h
ipa-visibility.c
ipa.c
ira-build.c
ira-color.c re PR target/61578 (Code size increase for ARM thumb compared to 4.8.x when compiling with -Os) 2015-09-24 20:40:30 +00:00
ira-conflicts.c
ira-costs.c
ira-emit.c
ira-int.h
ira-lives.c
ira.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
ira.h
is-a.h
jump.c always define REVERSE_CONDITION 2015-10-11 00:48:28 +00:00
langhooks-def.h
langhooks.c
langhooks.h
lcm.c
lcm.h
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c
loop-init.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
loop-invariant.c loop-invariant.c (struct def): New field can_prop_to_addr_uses. 2015-10-27 05:26:27 +00:00
loop-iv.c
loop-unroll.c
loop-unroll.h
lower-subreg.c
lower-subreg.h
lra-assigns.c
lra-coalesce.c
lra-constraints.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
lra-eliminations.c
lra-int.h
lra-lives.c
lra-remat.c
lra-spills.c re PR rtl-optimization/67609 (Generates wrong code for SSE2 _mm_load_pd) 2015-10-20 16:26:05 +00:00
lra.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
lra.h
lto-cgraph.c re PR lto/67699 (ICE (segfault) compiling a const array with -flto) 2015-09-24 11:01:14 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-names.h
lto-section-out.c
lto-streamer-in.c
lto-streamer-out.c
lto-streamer.c
lto-streamer.h
lto-wrapper.c [PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup 2015-10-05 16:07:50 +02:00
machmode.def
machmode.h
main.c
match.pd Move ldexp, scalbn and scalbln folds to match.pd 2015-10-27 12:00:34 +00:00
mcf.c
mem-stats-traits.h
mem-stats.h
memory-block.cc
memory-block.h
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c
omp-builtins.def builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
omp-low.c target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +00:00
omp-low.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c
optabs-libfuncs.h
optabs-query.c
optabs-query.h
optabs-tree.c
optabs-tree.h
optabs.c [optabs.c] Fix PR 67989: Handle const0_rtx target in expand_atomic_compare_and_swap 2015-10-26 10:28:12 +00:00
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c fdiagnostics-color=never does not disable color for some diagnostics 2015-09-24 16:37:43 +00:00
opts-diagnostic.h
opts-global.c [c-family/49654/49655] reject invalid options in pragma diagnostic 2015-09-23 13:07:07 +00:00
opts.c Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
opts.h [c-family/49654/49655] reject invalid options in pragma diagnostic 2015-09-23 13:07:07 +00:00
output.h
params-enum.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params-list.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params.c Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params.def Improve --help output to generate references to option aliases. 2015-10-21 16:24:41 -06:00
params.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
pass_manager.h
passes.c [PATCH] Call flush_ssaname_freelist more often 2015-10-23 16:34:04 -06:00
passes.def Add a pass to back-propagate use information 2015-10-21 20:11:33 +00:00
plugin.c
plugin.def
plugin.h
postreload-gcse.c
postreload.c
predict.c
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c PR pretty-print/67567 do not pass NULL as a string 2015-09-25 14:24:11 +00:00
pretty-print.h PR pretty-print/67567 do not pass NULL as a string 2015-09-25 14:24:11 +00:00
print-rtl.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
print-rtl.h [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
print-tree.c
print-tree.h
profile.c
profile.h
read-md.c re PR other/57195 (Mode attributes with specific mode iterator can not be used as mode iterators in *.md files) 2015-09-24 23:26:50 +00:00
read-md.h
read-rtl.c remove many typedefs 2015-10-01 15:12:31 +00:00
real.c To... 2015-10-13 07:34:41 +00:00
real.h To... 2015-10-13 07:34:41 +00:00
realmpfr.c
realmpfr.h
recog.c
recog.h
ree.c REE: fix uninitialized registers handling 2015-10-19 23:47:35 +00:00
reg-notes.def
reg-stack.c Remove remaining uses of CONST_DOUBLE_FROM_REAL_VALUE 2015-10-05 11:36:08 +00:00
regcprop.c
regcprop.h
reginfo.c
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload.c
reload.h
reload1.c
reorg.c target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook. 2015-10-26 16:29:31 +00:00
resource.c
resource.h
rtl-chkp.c
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl.c
rtl.def
rtl.h [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
rtlanal.c Remove REAL_VALUE_FROM_CONST_DOUBLE 2015-10-05 11:37:49 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sanitizer.def libsanitizer merge from upstream r250806, compiler part. 2015-10-21 10:40:54 +03:00
sanopt.c
sbitmap.c
sbitmap.h
sched-deps.c
sched-ebb.c
sched-int.h [haifa-sched] model load/store multiples properly in autoprefetcher scheduling 2015-10-19 09:23:07 +00:00
sched-rgn.c
sdbout.c
sdbout.h
sel-sched-dump.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c
sel-sched.h
sese.c a scalar depending on vdefs in the current region is not invariant 2015-10-21 21:18:27 +00:00
sese.h a scalar depending on vdefs in the current region is not invariant 2015-10-21 21:18:27 +00:00
shrink-wrap.c
shrink-wrap.h
signop.h
simplify-rtx.c [simplify-rtx][2/2] Use constants from pool when simplifying binops 2015-10-20 16:13:29 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.c
statistics.c remove many typedefs 2015-10-01 15:12:31 +00:00
statistics.h
stmt.c
stmt.h
stor-layout.c tm.texi: Regenerated. 2015-10-21 16:01:43 +00:00
stor-layout.h
store-motion.c
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symbol-summary.h
symtab.c
sync-builtins.def
system.h [PATCH 1/9] ENABLE_CHECKING refactoring 2015-10-21 15:16:31 -06:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +00:00
target.def target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +00:00
target.h
targhooks.c Relax ADDR_SPACE_GENERIC_P checks for default address space hooks 2015-10-21 13:34:47 -07:00
targhooks.h target-insns.def (oacc_fork, oacc_join): Define. 2015-10-27 22:16:19 +00:00
timevar.c
timevar.def Add a pass to back-propagate use information 2015-10-21 20:11:33 +00:00
timevar.h
tlink.c
toplev.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
toplev.h
tracer.c internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
trans-mem.c re PR c/59218 (atomic transactions: accesses to volatiles not disallowed in transaction_safe code) 2015-10-02 09:44:41 -04:00
trans-mem.h
tree-affine.c
tree-affine.h
tree-call-cdce.c Replace REAL_VALUES_LESS with real_less 2015-10-05 11:32:25 +00:00
tree-cfg.c internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
tree-cfg.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-cfgcleanup.c re PR tree-optimization/67915 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu) 2015-10-14 12:59:15 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c
tree-chkp.c
tree-chkp.h
tree-chrec.c
tree-chrec.h
tree-complex.c Remove remaining uses of REAL_VALUES_IDENTICAL 2015-10-05 11:30:52 +00:00
tree-core.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
tree-data-ref.c move dr->alias_set to a helper structure 2015-10-06 20:50:35 +00:00
tree-data-ref.h move dr->alias_set to a helper structure 2015-10-06 20:50:35 +00:00
tree-dfa.c
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c [tree-inline][obvious] Delete redundant count_insns_seq 2015-09-24 08:25:13 +00:00
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-inline.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
tree-inline.h [tree-inline][obvious] Delete redundant count_insns_seq 2015-09-24 08:25:13 +00:00
tree-into-ssa.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-nested.c tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
tree-nested.h tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
tree-nrv.c
tree-object-size.c tree-object-size.c: Remove builtins.h include, include tree-cfg.h. 2015-10-26 14:22:20 +00:00
tree-object-size.h
tree-outof-ssa.c revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-outof-ssa.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-parloops.c tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
tree-parloops.h
tree-pass.h Add a pass to back-propagate use information 2015-10-21 20:11:33 +00:00
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++ 2015-10-27 09:39:15 +01:00
tree-pretty-print.h
tree-profile.c tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
tree-scalar-evolution.c tree-scalar-evolution.c: Handle LSHIFT by constant 2015-10-27 12:36:55 +00:00
tree-scalar-evolution.h
tree-sra.c [PR 67794] Also remap SSA_NAMEs defined in ASMs in IPA-SRA 2015-10-09 15:13:38 +02:00
tree-ssa-address.c
tree-ssa-address.h
tree-ssa-alias.c re PR fortran/67170 (PRE can't hoist out a readonly argument) 2015-09-29 13:04:18 +00:00
tree-ssa-alias.h re PR fortran/67170 (PRE can't hoist out a readonly argument) 2015-09-29 13:04:18 +00:00
tree-ssa-ccp.c re PR tree-optimization/68026 (Regression in GCC-6.0.0's optimizer) 2015-10-21 07:56:54 +00:00
tree-ssa-coalesce.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-ssa-coalesce.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-ssa-copy.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-dce.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-dom.c Re: [PATCH] Improve DOM's optimization of control statements 2015-10-07 15:56:18 -06:00
tree-ssa-dom.h
tree-ssa-dse.c [PATCH] [2/n] Fix minor SSA_NAME leaks 2015-10-08 14:27:38 -06:00
tree-ssa-forwprop.c
tree-ssa-ifcombine.c re PR tree-optimization/67690 (wrong code with -O2 on x86_64/Linux) 2015-09-30 09:24:02 +00:00
tree-ssa-live.c revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c re PR tree-optimization/67975 (Failure to optimise equality between two call sequences) 2015-10-19 14:00:28 +00:00
tree-ssa-loop-ivcanon.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-loop-ivopts.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-loop-niter.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c PR tree-optimization/67909, 67947 2015-10-13 13:08:31 +00:00
tree-ssa-loop.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-loop.h
tree-ssa-math-opts.c PR67945: Fix oscillation between pow representations 2015-10-15 09:50:07 +00:00
tree-ssa-operands.c make build_uses store tree * instead of tree 2015-10-05 13:54:11 +00:00
tree-ssa-operands.h
tree-ssa-phionlycprop.c
tree-ssa-phiopt.c [PATCH] [1/n] Fix minor SSA_NAME leaks 2015-10-08 11:50:44 -06:00
tree-ssa-phiprop.c
tree-ssa-pre.c re PR tree-optimization/67859 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu) 2015-10-06 12:34:15 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c tree-ssa-reassoc.c (attempt_builtin_copysign): Call gimple_call_builtin instead of is_gimple_call. 2015-10-15 13:22:47 +00:00
tree-ssa-sccvn.c tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE cond stmts, enhanced and split out from ... 2015-10-21 08:12:15 +00:00
tree-ssa-sccvn.h gimple-match.h (mprts_hook): Declare. 2015-10-01 07:54:26 +00:00
tree-ssa-scopedtables.c
tree-ssa-scopedtables.h
tree-ssa-sink.c
tree-ssa-strlen.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-ssa-structalias.c Add var in push_fields_onto_fieldstack 2015-10-27 07:09:58 +00:00
tree-ssa-tail-merge.c remove many typedefs 2015-10-01 15:12:31 +00:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadbackward.c [PATCH] [PR tree-optimization/68013] Make sure first block in FSM path 2015-10-26 09:36:04 -06:00
tree-ssa-threadbackward.h [PATCH] Refactoring FSM bits into their own file 2015-10-11 19:17:51 -06:00
tree-ssa-threadedge.c internal-fn.c (expand_UNIQUE): New. 2015-10-27 20:16:04 +00:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.c [PATCH] Don't allow FSM threader to create irreducible loops unless it eliminates a multi-way branch 2015-10-19 10:24:00 -06:00
tree-ssa-threadupdate.h [PATCH][PR tree-optimization/67816] Fix jump threading when DOM removes conditionals in jump threading path 2015-10-06 20:25:57 -06:00
tree-ssa-uncprop.c Replace REAL_VALUES_EQUAL with real_equal 2015-10-05 11:29:35 +00:00
tree-ssa-uninit.c
tree-ssa.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssanames.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssanames.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-stdarg.c [PATCH] [3/n] Fix minor SSA_NAME leaks 2015-10-08 14:47:46 -06:00
tree-stdarg.h
tree-streamer-in.c
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c
tree-tailcall.c re PR tree-optimization/68017 (ICE on valid code at -O3 with -g enabled on x86_64-linux-gnu: cannot update SSA form) 2015-10-20 12:34:19 +00:00
tree-vect-data-refs.c re PR tree-optimization/68104 (ice in vect_update_misalignment_for_peel with -O3) 2015-10-27 13:48:15 +00:00
tree-vect-generic.c tree-vect-generic.c (expand_vector_operations_1): Check optab type before using it. 2015-10-27 11:08:16 +00:00
tree-vect-loop-manip.c
tree-vect-loop.c 2015-10-27 Alan Hayward <alan.hayward@arm.com> 2015-10-27 16:43:13 +00:00
tree-vect-patterns.c tree-vectorizer.h (vect_is_simple_use): Remove unused parameters. 2015-10-14 13:57:09 +00:00
tree-vect-slp.c tree-vectorizer.h (vect_is_simple_use): Remove unused parameters. 2015-10-14 13:57:09 +00:00
tree-vect-stmts.c Support for vectorizing conditional expressions 2015-10-23 12:40:33 +00:00
tree-vectorizer.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
tree-vectorizer.h Support for vectorizing conditional expressions 2015-10-23 12:40:33 +00:00
tree-vrp.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree.c This patch fixes a compile-time regression that was originally introduced by the fix for PR64111, in GCC 4.9.3. 2015-10-23 16:22:42 -07:00
tree.def [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++ 2015-10-27 09:39:15 +01:00
tree.h [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++ 2015-10-27 09:39:15 +01:00
treestruct.def
tsan.c
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h
ubsan.c libsanitizer merge from upstream r250806, compiler part. 2015-10-21 10:40:54 +03:00
ubsan.h
valtrack.c
valtrack.h
value-prof.c cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
value-prof.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
var-tracking.c remove many typedefs 2015-10-01 15:12:31 +00:00
varasm.c [PATCH]Fix various ports failing due to unused parameter 2015-10-20 22:57:56 -06:00
varasm.h
varpool.c
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
xcoff.h
xcoffout.c
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.