gcc/gcc
Andrew Burgess a1f7021242 arc.md (*loadqi_update): Replace use of 'rI' constraint with 'rCm2' constraints to limit possible...
2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>

        * config/arc/arc.md (*loadqi_update): Replace use of 'rI'
        constraint with 'rCm2' constraints to limit possible immediate
        size.
        (*load_zeroextendqisi_update): Likewise.
        (*load_signextendqisi_update): Likewise.
        (*loadhi_update): Likewise.
        (*load_zeroextendhisi_update): Likewise.
        (*load_signextendhisi_update): Likewise.
        (*loadsi_update): Likewise.
        (*loadsf_update): Likewise.

From-SVN: r235636
2016-04-29 13:07:31 +01:00
..
ada re PR ada/70786 (Missing "not" breaks Ada.Text_IO.Get_Immediate(File, Item, Available)) 2016-04-28 10:58:38 +00:00
c c-array-notation.c (fix_builtin_array_notation_fn): Fix final argument to build_modify_expr in two cases. 2016-04-28 16:00:19 -06:00
c-family PR/69089: C++-11: Ingore "alignas(0)". 2016-04-29 09:20:06 +00:00
common longlong.h (umul_ppmm): Remove SHMEDIA checks. 2016-04-29 10:44:57 +00:00
config arc.md (*loadqi_update): Replace use of 'rI' constraint with 'rCm2' constraints to limit possible... 2016-04-29 13:07:31 +01:00
cp Implement C++17 [[nodiscard]] attribute. 2016-04-28 15:01:19 -04:00
doc doc/extend.texi: Discourage use of the optimize attribute 2016-04-28 16:25:00 +00:00
fortran [PATCH 2/2] (header usage fix) include c++ headers in system.h 2016-04-22 11:00:42 +00:00
ginclude
go compiler: Mark concurrent calls. 2016-04-28 19:43:20 +00:00
java Forgotten gcc/java/ChangeLog entry. 2016-04-28 16:23:36 +00:00
jit
lto params.def (MAX_PARTITION_SIZE): New param. 2016-04-27 10:46:16 +00:00
objc tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
objcp
po Update .po files. 2016-04-28 15:36:54 +01:00
testsuite [ARC] Handle FPX NaN within optimized floating point library. 2016-04-29 12:49:26 +02:00
ABOUT-GCC-NLS
BASE-VER * BASE-VER: Set to 7.0.0. 2016-04-15 16:55:57 +02:00
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog arc.md (*loadqi_update): Replace use of 'rI' constraint with 'rCm2' constraints to limit possible... 2016-04-29 13:07:31 +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-2015
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2016-04-29 00:16:21 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Split out OMP constructs' SIMD clone supporting code 2016-04-15 13:49:39 +02:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c re PR rtl-optimization/70484 (Wrong optimization with aliasing and access via char) 2016-04-04 09:30:16 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c re PR sanitizer/70541 (unnoticed invalid dereference when using address sanitizer) 2016-04-08 13:46:13 +03:00
asan.h
attribs.c Implement C++17 [[maybe_unused]] attribute. 2016-04-25 13:21:49 -04:00
attribs.h Implement C++17 [[maybe_unused]] attribute. 2016-04-25 13:21:49 -04:00
auto-inc-dec.c
auto-profile.c [PATCH 2/2] (header usage fix) include c++ headers in system.h 2016-04-22 11:00:42 +00:00
auto-profile.h
backend.h
basic-block.h
bb-reorder.c
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c PR70117, ppc long double isinf 2016-04-08 11:41:52 +09:30
builtins.def
builtins.h
caller-save.c
calls.c
calls.h
ccmp.c
ccmp.h
cfg-flags.def
cfg.c
cfg.h
cfganal.c sbitmap: Remove popcount 2016-04-28 20:43:12 +02:00
cfganal.h
cfgbuild.c
cfgbuild.h
cfgcleanup.c
cfgcleanup.h
cfgexpand.c re PR sanitizer/70712 (False positive from AddressSanitizer with use of 'alignas') 2016-04-23 07:28:16 +02:00
cfgexpand.h
cfghooks.c
cfghooks.h
cfgloop.c
cfgloop.h
cfgloopanal.c
cfgloopmanip.c
cfgloopmanip.h
cfgrtl.c
cfgrtl.h
cgraph.c re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) 2016-04-21 09:05:07 +00:00
cgraph.h re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) 2016-04-21 09:05:07 +00:00
cgraphbuild.c
cgraphclones.c
cgraphunit.c
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
common.md
common.opt re PR bootstrap/70704 (AIX bootstrap comparison failure) 2016-04-26 08:10:43 +02:00
compare-elim.c
conditions.h
config.build
config.gcc [Patch AArch64 2/3] Rework the code to print extension strings (pr70133) 2016-04-11 10:14:59 +00:00
config.host
config.in re PR bootstrap/70704 (AIX bootstrap comparison failure) 2016-04-26 08:10:43 +02:00
configure [ARC] Add TLS support. 2016-04-28 13:53:46 +02:00
configure.ac [ARC] Add TLS support. 2016-04-28 13:53:46 +02:00
context.c
context.h
convert.c
convert.h
coretypes.h
coverage.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c
cse.c
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
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h
df-core.c df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
df-problems.c df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
df-scan.c df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
df.h df: make df_problem instances "const" 2016-04-27 18:18:45 +00:00
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic-show-locus.c
diagnostic.c [PATCH 1/2] (header usage fix) remove unused system header includes 2016-04-22 10:57:56 +00:00
diagnostic.def
diagnostic.h
dojump.c
dojump.h
dominance.c
dominance.h
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c dse.c (struct store_info): Remove alias_set member. 2016-04-05 14:25:35 +00:00
dumpfile.c Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
dumpfile.h Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c
dwarf2out.c DWARF: turn dw_loc_descr_node field into hash map for frame offset check 2016-04-27 15:03:40 +00:00
dwarf2out.h DWARF: turn dw_loc_descr_node field into hash map for frame offset check 2016-04-27 15:03:40 +00:00
emit-rtl.c maybe_set_first_label_num can take an rtx_code_label * 2016-04-27 18:22:12 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
except.h
exec-tool.in
explow.c re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025) 2016-04-13 15:57:29 +02:00
explow.h
expmed.c re PR middle-end/37870 (ICE in extract_bit_field_1) 2016-04-18 09:25:46 +00:00
expmed.h
expr.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
expr.h
fibonacci_heap.h
file-find.c
file-find.h
final.c
fixed-value.c
fixed-value.h
flag-types.h
flags.h
fold-const-call.c
fold-const-call.h
fold-const.c re PR middle-end/70843 (ICE in add_expr, at tree.c:7913) 2016-04-29 00:23:01 +02:00
fold-const.h
fp-test.c
function.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
function.h
fwprop.c re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable) 2016-04-08 19:21:17 +02:00
gcc-ar.c
gcc-main.c
gcc-plugin.h
gcc-rich-location.c
gcc-rich-location.h
gcc-symtab.h
gcc.c
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
gdbinit.in * gdbinit.in: Skip line-map.h. 2016-04-28 15:04:23 -04:00
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c Reduce nesting of parentheses in conditionals generated by genattrtab 2016-04-27 21:18:05 +00:00
genautomata.c
gencfn-macros.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genenums.c
generic-match-head.c
generic-match.h
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c
gengtype.h
genhooks.c
genmatch.c match.pd: X + X --> X * 2 for integers 2016-04-26 14:02:09 +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
ggc.h
gimple-builder.c
gimple-builder.h
gimple-expr.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
gimple-expr.h
gimple-fold.c gimple-match.h (maybe_build_generic_op): Adjust prototype. 2016-04-20 12:49:58 +00:00
gimple-fold.h
gimple-iterator.c
gimple-iterator.h
gimple-laddress.c
gimple-low.c
gimple-low.h
gimple-match-head.c gimple-match.h (maybe_build_generic_op): Adjust prototype. 2016-04-20 12:49:58 +00:00
gimple-match.h gimple-match.h (maybe_build_generic_op): Adjust prototype. 2016-04-20 12:49:58 +00:00
gimple-predict.h
gimple-pretty-print.c
gimple-pretty-print.h
gimple-ssa-backprop.c
gimple-ssa-isolate-paths.c
gimple-ssa-nonnull-compare.c
gimple-ssa-split-paths.c
gimple-ssa-strength-reduction.c
gimple-ssa.h
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c gimple-walk.h (struct walk_stmt_info): Add stmt member. 2016-04-19 12:13:04 +00:00
gimple-walk.h gimple-walk.h (struct walk_stmt_info): Add stmt member. 2016-04-19 12:13:04 +00:00
gimple.c
gimple.def
gimple.h
gimplify-me.c re PR middle-end/70499 (internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:266) 2016-04-05 08:05:06 +00:00
gimplify-me.h
gimplify.c re PR middle-end/70680 (OpenMP SIMD linear variable privatized too eagerly) 2016-04-20 03:42:24 +02:00
gimplify.h
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-dependences.c
graphite-isl-ast-to-gimple.c [PATCH 2/2] (header usage fix) include c++ headers in system.h 2016-04-22 11:00:42 +00:00
graphite-optimize-isl.c
graphite-poly.c
graphite-scop-detection.c
graphite-sese-to-poly.c Fix pdr accesses order 2016-04-09 15:28:24 +00:00
graphite.c re PR bootstrap/70706 (r235082 caused bootstrap failure) 2016-04-17 18:04:51 +00:00
graphite.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c
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
hsa-brig-format.h
hsa-brig.c hsa: Fix bootstrap with older host compilers 2016-04-18 10:57:01 +02:00
hsa-dump.c re PR hsa/70402 (HSA: SBR instruction can be undefined) 2016-04-04 08:46:51 +00:00
hsa-gen.c re PR hsa/70402 (HSA: SBR instruction can be undefined) 2016-04-04 08:46:51 +00:00
hsa-regalloc.c
hsa.c
hsa.h re PR hsa/70402 (HSA: SBR instruction can be undefined) 2016-04-04 08:46:51 +00:00
hw-doloop.c
hw-doloop.h
hwint.c
hwint.h
ifcvt.c
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][committed] Convert conditional compilation on WORD_REGISTER_OPERATIONS 2016-04-28 13:38:18 +00:00
internal-fn.def
internal-fn.h
intl.c
intl.h
ipa-chkp.c
ipa-chkp.h
ipa-comdats.c
ipa-cp.c
ipa-devirt.c re PR ipa/66223 (Diagnostic of pure virtual function call broken, including __cxa_pure_virtual) 2016-04-05 20:58:56 +00:00
ipa-hsa.c
ipa-icf-gimple.c [PATCH 1/2] (header usage fix) remove unused system header includes 2016-04-22 10:57:56 +00:00
ipa-icf-gimple.h
ipa-icf.c [PATCH 2/2] (header usage fix) include c++ headers in system.h 2016-04-22 11:00:42 +00:00
ipa-icf.h
ipa-inline-analysis.c
ipa-inline-transform.c
ipa-inline.c ipa-inline.c (can_inline_edge_p): Pass caller info to ultiimate_alias_target. 2016-04-21 09:08:08 +00:00
ipa-inline.h
ipa-polymorphic-call.c re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
ipa-profile.c
ipa-prop.c
ipa-prop.h
ipa-pure-const.c re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) 2016-04-21 09:05:07 +00:00
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c
ipa-utils.c
ipa-utils.h re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
ipa-visibility.c re PR lto/68881 (UNRESOLVED/FAIL: gcc.dg/lto/attr-weakref-1 -O2 -flto) 2016-04-04 09:26:29 +00:00
ipa.c
ira-build.c
ira-color.c
ira-conflicts.c
ira-costs.c
ira-emit.c
ira-int.h
ira-lives.c
ira.c
ira.h
is-a.h
jump.c
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
loop-invariant.c
loop-iv.c
loop-unroll.c
loop-unroll.h
lower-subreg.c
lower-subreg.h
lra-assigns.c
lra-coalesce.c
lra-constraints.c re PR middle-end/70689 (ICE on valid code at -O1 in 32-bit mode on x86_64-linux-gnu in curr_insn_transform, at lra-constraints.c:3564) 2016-04-19 02:49:54 +00:00
lra-eliminations.c
lra-int.h
lra-lives.c
lra-remat.c
lra-spills.c re PR rtl-optimization/70596 (-fcompare-debug failure with one extra NOTE_INSN_DELETED) 2016-04-12 19:18:31 +02:00
lra.c
lra.h
lto-cgraph.c
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-in.c (input_ssa_names): Do not allocate GIMPLE_NOP for all SSA names. 2016-04-22 09:05:10 +00:00
lto-streamer-out.c lto-streamer-in.c (input_ssa_names): Do not allocate GIMPLE_NOP for all SSA names. 2016-04-22 09:05:10 +00:00
lto-streamer.c
lto-streamer.h
lto-wrapper.c
machmode.def
machmode.h
main.c
match.pd re PR tree-optimization/13962 ([tree-ssa] make "fold" use alias information to optimize pointer comparisons) 2016-04-29 08:36:49 +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
multiple_target.c
omp-builtins.def
omp-low.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
omp-low.h
omp-simd-clone.c Split out OMP constructs' SIMD clone supporting code 2016-04-15 13:49:39 +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.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c Enable -frename-registers at -O2. 2016-04-26 12:43:42 +00:00
opts.h
output.h
params-enum.h
params-list.h
params.c
params.def params.def (MIN_PARTITION_SIZE): Set default value to 10000. 2016-04-27 22:39:43 +00:00
params.h
pass_manager.h Add pass parameter to TERMINATE_PASS_LIST 2016-04-17 05:21:50 +00:00
passes.c Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
passes.def Add pass parameter to TERMINATE_PASS_LIST 2016-04-17 05:21:50 +00:00
plugin.c
plugin.def
plugin.h
postreload-gcse.c
postreload.c
predict.c predict.c (combine_predictions_for_bb): Add dry_run parmaeter. 2016-04-17 16:08:27 +00:00
predict.def
predict.h re PR bootstrap/70706 (r235082 caused bootstrap failure) 2016-04-17 18:30:21 +00:00
prefix.c
prefix.h
pretty-print.c [PATCH 1/2] (header usage fix) remove unused system header includes 2016-04-22 10:57:56 +00:00
pretty-print.h
print-rtl.c make avail_stores a vec<rtx_insn *> 2016-04-24 08:45:38 +00:00
print-rtl.h make avail_stores a vec<rtx_insn *> 2016-04-24 08:45:38 +00:00
print-tree.c
print-tree.h
profile.c predict.c (combine_predictions_for_bb): Add dry_run parmaeter. 2016-04-17 16:08:27 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c
real.c
real.h
realmpfr.c
realmpfr.h
recog.c
recog.h
ree.c re PR rtl-optimization/70542 (Wrong code with -O3 -mavx2.) 2016-04-05 19:05:23 +02:00
reg-notes.def
reg-stack.c
regcprop.c
regcprop.h
reginfo.c
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload.c
reload.h
reload1.c avr-related reload fix from Senthil Kumar Selvaraj 2016-04-29 08:59:09 +00:00
reorg.c reorg.c (try_merge_delay_insns): Declare i and j inside the for loops rather than one for the whole function. 2016-04-26 22:32:05 +02:00
resource.c
resource.h
rtl-chkp.c
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl.c
rtl.def Fix comment in rtl.def 2016-04-27 17:54:42 +00:00
rtl.h maybe_set_first_label_num can take an rtx_code_label * 2016-04-27 18:22:12 +00:00
rtlanal.c [rtlanal.c] Convert conditional compilation on WORD_REGISTER_OPERATIONS 2016-04-27 14:38:10 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sancov.c
sanitizer.def
sanopt.c
sbitmap.c sbitmap: Remove popcount 2016-04-28 20:43:12 +02:00
sbitmap.h sbitmap: Remove popcount 2016-04-28 20:43:12 +02:00
sched-deps.c
sched-ebb.c
sched-int.h
sched-rgn.c
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h
sel-sched.c
sel-sched.h
sese.c
sese.h
shrink-wrap.c
shrink-wrap.h
signop.h
simplify-rtx.c re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025) 2016-04-13 14:26:26 +02:00
sparseset.c
sparseset.h
spellcheck-tree.c
spellcheck.c
spellcheck.h
sreal.c
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c
stmt.h
stor-layout.c stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays. 2016-04-29 08:08:45 +00:00
stor-layout.h re PR ada/70759 (Ada rts fails to build with -mabi=ilp32) 2016-04-27 07:49:49 +00:00
store-motion.c make avail_stores a vec<rtx_insn *> 2016-04-24 08:45:38 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symbol-summary.h
symtab.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
sync-builtins.def
system.h [PATCH 2/2] (header usage fix) include c++ headers in system.h 2016-04-22 11:00:42 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target-insns.def
target.def
target.h
targhooks.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
targhooks.h
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c toplev.c (backend_init_target): Avoid calling init_reload when using LRA. 2016-04-26 14:52:16 -06:00
toplev.h
tracer.c tracer: Make bb_seen static 2016-04-28 19:08:39 +02:00
tracer.h
trans-mem.c
trans-mem.h
tree-affine.c
tree-affine.h
tree-call-cdce.c
tree-cfg.c Verify that context of local DECLs is the current function 2016-04-28 16:35:04 +02:00
tree-cfg.h
tree-cfgcleanup.c
tree-cfgcleanup.h
tree-chkp-opt.c
tree-chkp.c
tree-chkp.h
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-core.h re PR sanitizer/70683 (-fcompare-debug bug with -fsanitize=address) 2016-04-27 15:29:34 +02:00
tree-data-ref.c
tree-data-ref.h re PR tree-optimization/56625 (After if-conversion vectorizer doesn't recognize similar loads) 2016-04-20 15:41:45 +00:00
tree-dfa.c
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c
tree-eh.h
tree-emutls.c
tree-hash-traits.h
tree-hasher.h
tree-if-conv.c tree-if-conv.c (any_pred_load_store): New static variable. 2016-04-26 11:16:07 +00:00
tree-inline.c gimple-walk.h (struct walk_stmt_info): Add stmt member. 2016-04-19 12:13:04 +00:00
tree-inline.h
tree-into-ssa.c
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c
tree-nested.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
tree-nested.h
tree-nrv.c
tree-object-size.c
tree-object-size.h
tree-outof-ssa.c
tree-outof-ssa.h
tree-parloops.c Fix new -Wparentheses warnings encountered during bootstrap 2016-04-06 23:07:21 +00:00
tree-parloops.h
tree-pass.h Only finalize dot files that have been initialized 2016-04-17 05:22:33 +00:00
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c re PR c++/70675 (compare-debug failure building LLVM) 2016-04-15 15:07:43 +02:00
tree-pretty-print.h
tree-profile.c
tree-scalar-evolution.c tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR. 2016-04-20 11:42:36 +00:00
tree-scalar-evolution.h
tree-sra.c re PR c++/70594 (-fcompare-debug failure) 2016-04-13 22:35:59 +02:00
tree-ssa-address.c
tree-ssa-address.h
tree-ssa-alias.c re PR tree-optimization/13962 ([tree-ssa] make "fold" use alias information to optimize pointer comparisons) 2016-04-29 08:36:49 +00:00
tree-ssa-alias.h re PR tree-optimization/13962 ([tree-ssa] make "fold" use alias information to optimize pointer comparisons) 2016-04-29 08:36:49 +00:00
tree-ssa-ccp.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
tree-ssa-coalesce.c re PR middle-end/70593 (Miscompilation of xen starting with r226901) 2016-04-08 19:28:20 +02:00
tree-ssa-coalesce.h
tree-ssa-copy.c
tree-ssa-dce.c
tree-ssa-dom.c * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment. 2016-04-27 14:52:15 -06:00
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c re PR tree-optimization/70509 (wrong code with extract from a v64qi) 2016-04-05 18:58:50 +02:00
tree-ssa-ifcombine.c re PR tree-optimization/70586 (wrong code at -O2 and -O3 on x86_64-linux-gnu in 32-bit and 64-bit modes) 2016-04-09 13:23:51 +02:00
tree-ssa-live.c re PR c++/70594 (-fcompare-debug failure) 2016-04-14 21:21:31 +02:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation. 2016-04-27 14:52:38 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c re PR tree-optimization/70715 (SCEV failed to prove no-overflow-ness information unsigned loop IV) 2016-04-21 11:28:58 +00:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also max_loop_iterations_int. 2016-04-21 08:52:41 +00:00
tree-ssa-loop.c
tree-ssa-loop.h
tree-ssa-math-opts.c re PR middle-end/70457 (ICE (segfault) in gimple_expand_builtin_pow on powerpc64le-linux-gnu) 2016-04-04 15:42:19 +00:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phionlycprop.c
tree-ssa-phiopt.c
tree-ssa-phiprop.c re PR tree-optimization/70740 (ICE when compiling the Linux kernel (net/wireless/util.o)) 2016-04-22 06:59:32 +00:00
tree-ssa-pre.c re PR tree-optimization/70780 (wrong code at -O2 and -O3 on x86_64-linux-gnu) 2016-04-25 10:49:55 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c
tree-ssa-sccvn.c re PR tree-optimization/70724 (Miscompiles python3 with FDO) 2016-04-19 13:22:19 +00:00
tree-ssa-sccvn.h re PR tree-optimization/70724 (Miscompiles python3 with FDO) 2016-04-19 13:22:19 +00:00
tree-ssa-scopedtables.c
tree-ssa-scopedtables.h
tree-ssa-sink.c
tree-ssa-strlen.c
tree-ssa-structalias.c re PR ipa/70760 (wrong generated code for std::make_unique with -fipa-pta) 2016-04-27 14:10:04 +00:00
tree-ssa-tail-merge.c
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadbackward.c
tree-ssa-threadbackward.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c
tree-ssa-threadupdate.h
tree-ssa-uncprop.c
tree-ssa-uninit.c
tree-ssa.c
tree-ssa.h
tree-ssanames.c
tree-ssanames.h
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount. 2016-04-18 20:36:27 +00:00
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c
tree-tailcall.c
tree-vect-data-refs.c re PR tree-optimization/70130 (h264ref fails with verification error starting with r231674 (r224221 is the true start of the problem)) 2016-04-15 07:28:44 +00:00
tree-vect-generic.c
tree-vect-loop-manip.c
tree-vect-loop.c Revert r234572 (aka PR testsuite/70577) 2016-04-12 13:38:46 +00:00
tree-vect-patterns.c
tree-vect-slp.c
tree-vect-stmts.c re PR tree-optimization/70726 (Internal compiler error (ICE) on valid code) 2016-04-20 07:20:16 +00:00
tree-vectorizer.c
tree-vectorizer.h
tree-vrp.c vrp: remove redundant has_single_use tests 2016-04-21 21:58:08 +00:00
tree.c re PR middle-end/70843 (ICE in add_expr, at tree.c:7913) 2016-04-29 00:23:01 +02:00
tree.def * tree.def (TRY_CATCH_EXPR): Correct documentation. 2016-04-01 12:57:52 +00:00
tree.h re PR sanitizer/70683 (-fcompare-debug bug with -fsanitize=address) 2016-04-27 09:45:57 +02:00
treestruct.def
tsan.c
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h
ubsan.c
ubsan.h
valtrack.c
valtrack.h
value-prof.c
value-prof.h
var-tracking.c
varasm.c re PR go/49889 (Calling a function whose name is obscured by a local variable does not produce an error) 2016-04-27 11:29:20 +00:00
varasm.h
varpool.c re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) 2016-04-16 16:30:48 +00:00
vec.c
vec.h add some utility methods to vec 2016-04-24 07:47:38 +00:00
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

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

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

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

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

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


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

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

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

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

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


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

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

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

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

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

needs to be coded in some other way.


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

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

  if (P)
    free (P);

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

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

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



Trigraphs
---------

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


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

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


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

errno
-----

errno might be declared as a macro.


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

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

  unsigned variable;

as shorthand for

  unsigned int variable;

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

  (unsigned) variable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

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

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

o Passing incorrect types to fprintf and friends.

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