gcc/gcc
David Seifert c4c3cd5ca5 [PATCH] configure: use OBJDUMP determined by libtool [PR95648]
$ac_cv_prog_OBJDUMP contains the --host OBJDUMP that
libtool has inferred. Current config/gcc-plugin.m4 does
not respect the user's choice for OBJDUMP.

	PR plugins/95648
config/

	* gcc-plugin.m4: Use libtool's $ac_cv_prog_OBJDUMP.

gcc/

	* configure: Regenerate.

libcc1/

	* configure: Regenerate.
2022-06-01 17:25:00 -04:00
..
ada [Ada] Allow confirming volatile properties on No_Caching variables 2022-06-01 08:43:20 +00:00
analyzer Daily bump. 2022-05-24 00:17:03 +00:00
c Daily bump. 2022-06-01 00:16:34 +00:00
c-family Daily bump. 2022-05-28 00:16:40 +00:00
common RISC-V: Add mininal support for Zicbo[mzp] 2022-05-24 21:00:33 +08:00
config AArch64: Cleanup option processing code 2022-06-01 18:13:57 +01:00
cp c++: auto and dependent member name [PR105734] 2022-06-01 15:20:44 -04:00
d Daily bump. 2022-06-01 00:16:34 +00:00
doc sourcebuild.texi: Document toplevel directories 2022-05-29 00:57:05 -04:00
fortran Daily bump. 2022-06-01 00:16:34 +00:00
ginclude
go Daily bump. 2022-06-01 00:16:34 +00:00
jit Daily bump. 2022-05-24 00:17:03 +00:00
lto Daily bump. 2022-05-17 00:16:28 +00:00
objc Daily bump. 2022-06-01 00:16:34 +00:00
objcp Daily bump. 2022-06-01 00:16:34 +00:00
po
rtl-ssa
testsuite DSE: Use the constant store source if possible 2022-06-01 14:23:26 -07:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
adjust-alignment.cc
alias.cc
alias.h
align.h
alloc-pool.cc
alloc-pool.h
array-traits.h
asan.cc asan: Fix up instrumentation of assignments which are both loads and stores [PR105714] 2022-05-25 12:05:08 +02:00
asan.h
attr-fnspec.h
attribs.cc attribs: fix typedefs in generic code [PR105492] 2022-05-16 17:32:46 -04:00
attribs.h
auto-inc-dec.cc
auto-profile.cc
auto-profile.h
backend.h
BASE-VER
basic-block.h
bb-reorder.cc
bb-reorder.h
bitmap.cc
bitmap.h
btfout.cc
builtin-attrs.def
builtin-types.def
builtins.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
builtins.def
builtins.h
caller-save.cc
calls.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
calls.h
ccmp.cc
ccmp.h
cfg-flags.def
cfg.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
cfg.h
cfganal.cc
cfganal.h
cfgbuild.cc
cfgbuild.h
cfgcleanup.cc
cfgcleanup.h
cfgexpand.cc cfgexpand: Yet another spot with debug insns references to global vars without varpool nodes [PR105630] 2022-05-19 11:58:15 +02:00
cfgexpand.h
cfghooks.cc
cfghooks.h
cfgloop.cc
cfgloop.h
cfgloopanal.cc
cfgloopmanip.cc Do not clear bb->aux in duplicate_loop_body_to_header_edge 2022-05-17 17:53:46 +02:00
cfgloopmanip.h
cfgrtl.cc rtl-optimization/105559 - avoid quadratic behavior in delete_insn_and_edges 2022-05-11 14:34:30 +02:00
cfgrtl.h
cgraph.cc
cgraph.h
cgraphbuild.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
cgraphclones.cc
cgraphunit.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
ChangeLog Daily bump. 2022-06-01 00:16:34 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def
collect-utils.cc
collect-utils.h
collect2-aix.cc
collect2-aix.h
collect2.cc
collect2.h
color-macros.h
combine-stack-adj.cc
combine.cc
common.md
common.opt
compare-elim.cc
conditions.h
config.build
config.gcc amdgcn: Add gfx90a support 2022-05-24 16:18:14 +01:00
config.host
config.in amdgcn: Remove LLVM 9 assembler/linker support 2022-05-24 16:18:13 +01:00
configure [PATCH] configure: use OBJDUMP determined by libtool [PR95648] 2022-06-01 17:25:00 -04:00
configure.ac amdgcn: Remove LLVM 9 assembler/linker support 2022-05-24 16:18:13 +01:00
context.cc
context.h
convert.cc
convert.h
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
coretypes.h
coroutine-builtins.def
coroutine-passes.cc
coverage.cc
coverage.h
cppbuiltin.cc
cppbuiltin.h
cppdefault.cc
cppdefault.h
cprop.cc
cse.cc
cselib.cc
cselib.h
cstamp-h.in
ctfc.cc
ctfc.h
ctfout.cc
data-streamer-in.cc
data-streamer-out.cc
data-streamer.cc
data-streamer.h
DATESTAMP Daily bump. 2022-06-01 00:16:34 +00:00
dbgcnt.cc
dbgcnt.def Add GIMPLE switch support to loop unswitching 2022-05-25 10:37:13 +02:00
dbgcnt.h
dbxout.cc
dbxout.h
dce.cc
dce.h
ddg.cc
ddg.h
debug.cc
debug.h
defaults.h
DEV-PHASE
df-core.cc DSE: Use the constant store source if possible 2022-06-01 14:23:26 -07:00
df-problems.cc
df-scan.cc
df.h DSE: Use the constant store source if possible 2022-06-01 14:23:26 -07:00
dfp.cc
dfp.h
diagnostic-color.cc
diagnostic-color.h
diagnostic-core.h
diagnostic-event-id.h
diagnostic-format-json.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
diagnostic-metadata.h
diagnostic-path.h Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
diagnostic-show-locus.cc
diagnostic-spec.cc
diagnostic-spec.h
diagnostic-url.h
diagnostic.cc Advise to call 'internal_error' instead of 'abort' or 'fancy_abort' 2022-05-17 16:27:32 +02:00
diagnostic.def
diagnostic.h
digraph.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
digraph.h
dojump.cc
dojump.h
dominance.cc
dominance.h
domwalk.cc
domwalk.h
double-int.cc
double-int.h
dse.cc DSE: Use the constant store source if possible 2022-06-01 14:23:26 -07:00
dump-context.h
dumpfile.cc
dumpfile.h
dwarf2asm.cc
dwarf2asm.h
dwarf2cfi.cc
dwarf2ctf.cc
dwarf2ctf.h
dwarf2out.cc Correct spelling of DW_AT_namelist_item 2022-05-31 23:35:23 +09:30
dwarf2out.h
early-remat.cc
edit-context.cc
edit-context.h
emit-rtl.cc
emit-rtl.h
errors.cc
errors.h
escaped_string.h
et-forest.cc
et-forest.h
except.cc
except.h
exec-tool.in
explow.cc
explow.h
expmed.cc Revert "Mitigate -Wmaybe-uninitialized in expmed.cc." 2022-05-24 13:30:00 +02:00
expmed.h
expr.cc PR middle-end/98865: Expand X*Y as X&-Y when Y is [0,1]. 2022-05-19 17:54:38 +01:00
expr.h
fibonacci_heap.cc
fibonacci_heap.h
file-find.cc
file-find.h
file-prefix-map.cc
file-prefix-map.h
final.cc
fixed-value.cc
fixed-value.h
flag-types.h
flags.h
fold-const-call.cc
fold-const-call.h
fold-const.cc fold-const: Fix up -fsanitize=null in C++ [PR105729] 2022-05-27 11:40:42 +02:00
fold-const.h Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
fp-test.cc
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function-abi.cc
function-abi.h
function-tests.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
function.cc
function.h
fwprop.cc
gcc-ar.cc
gcc-main.cc
gcc-plugin.h
gcc-rich-location.cc
gcc-rich-location.h Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
gcc-symtab.h
gcc.cc
gcc.h
gcov-counter.def
gcov-dump.cc
gcov-io.cc
gcov-io.h
gcov-tool.cc
gcov.cc
gcse-common.cc
gcse-common.h
gcse.cc
gcse.h
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.cc
genattr.cc
genattrtab.cc
genautomata.cc
gencfn-macros.cc
gencheck.cc
genchecksum.cc
gencodes.cc
genconditions.cc
genconfig.cc
genconstants.cc
genemit.cc
genenums.cc
generic-match-head.cc Implement some of fold_binary_op_with_conditional_arg in match.pd 2022-05-11 14:34:30 +02:00
generic-match.h
genextract.cc
genflags.cc
gengenrtl.cc
gengtype-lex.l
gengtype-parse.cc
gengtype-state.cc
gengtype.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
gengtype.h
genhooks.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
genmatch.cc
genmddeps.cc
genmddump.cc
genmodes.cc
genmultilib
genopinit.cc
genoutput.cc
genpeep.cc
genpreds.cc Minor improvement to genpreds.cc 2022-05-24 14:31:59 +01:00
genrecog.cc
gensupport.cc
gensupport.h
gentarget-def.cc
genversion.cc
ggc-common.cc
ggc-internal.h
ggc-none.cc
ggc-page.cc
ggc-tests.cc
ggc.h
gimple-array-bounds.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
gimple-array-bounds.h
gimple-builder.cc
gimple-builder.h
gimple-expr.cc Remove is_gimple_condexpr 2022-05-23 11:30:39 +02:00
gimple-expr.h Remove is_gimple_condexpr 2022-05-23 11:30:39 +02:00
gimple-fold.cc Force the selection operand of a GIMPLE COND_EXPR to be a register 2022-05-23 11:30:39 +02:00
gimple-fold.h Finish gimple_build API enhancement 2022-05-16 13:39:26 +02:00
gimple-harden-conditionals.cc Avoid visiting newly-created blocks in harden-conditionals 2022-05-13 07:48:51 -03:00
gimple-if-to-switch.cc
gimple-isel.cc
gimple-iterator.cc
gimple-iterator.h
gimple-laddress.cc
gimple-loop-interchange.cc Force the selection operand of a GIMPLE COND_EXPR to be a register 2022-05-23 11:30:39 +02:00
gimple-loop-jam.cc
gimple-loop-versioning.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
gimple-low.cc
gimple-low.h
gimple-match-head.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
gimple-match.h Finish gimple_build API enhancement 2022-05-16 13:39:26 +02:00
gimple-predicate-analysis.cc
gimple-predicate-analysis.h
gimple-predict.h
gimple-pretty-print.cc
gimple-pretty-print.h
gimple-range-cache.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-cache.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-edge.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-edge.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-fold.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-fold.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-gori.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-gori.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-infer.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-infer.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-path.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-path.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-tests.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-trace.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range-trace.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-range.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-ssa-backprop.cc
gimple-ssa-evrp-analyze.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
gimple-ssa-evrp-analyze.h
gimple-ssa-evrp.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
gimple-ssa-isolate-paths.cc
gimple-ssa-nonnull-compare.cc
gimple-ssa-split-paths.cc
gimple-ssa-sprintf.cc PR middle-end/105604 - ICE: in tree_to_shwi with vla in struct and sprintf 2022-05-24 16:05:50 -06:00
gimple-ssa-store-merging.cc
gimple-ssa-strength-reduction.cc
gimple-ssa-warn-access.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
gimple-ssa-warn-access.h
gimple-ssa-warn-alloca.cc
gimple-ssa-warn-restrict.cc tree-optimization/105726 - adjust array bound heuristic 2022-05-27 11:42:31 +02:00
gimple-ssa-warn-restrict.h
gimple-ssa.h
gimple-streamer-in.cc
gimple-streamer-out.cc
gimple-streamer.h
gimple-walk.cc
gimple-walk.h
gimple-warn-recursion.cc
gimple.cc
gimple.def
gimple.h
gimplify-me.cc
gimplify-me.h
gimplify.cc openmp: Add taskwait nowait depend support [PR105378] 2022-05-24 09:12:44 +02:00
gimplify.h
glimits.h
godump.cc c: use CONST_DECL for enumerators in TYPE_VALUES 2022-05-17 18:03:54 -04:00
graph.cc
graph.h
graphds.cc
graphds.h
graphite-dependences.cc
graphite-isl-ast-to-gimple.cc graphite: Fix minor mistakes in comments 2022-05-17 16:02:01 +02:00
graphite-optimize-isl.cc
graphite-poly.cc
graphite-scop-detection.cc graphite: Extend SCoP detection dump output 2022-05-18 14:51:46 +02:00
graphite-sese-to-poly.cc graphite: Fix minor mistakes in comments 2022-05-17 16:02:01 +02:00
graphite.cc
graphite.h
graphviz.cc
graphviz.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.cc
hard-reg-set.h
hash-map-tests.cc
hash-map-traits.h
hash-map.h
hash-set-tests.cc
hash-set.h
hash-table.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
hash-table.h
hash-traits.h
highlev-plugin-common.h
hooks.cc
hooks.h
host-default.cc
hosthooks-def.h
hosthooks.h
hw-doloop.cc
hw-doloop.h
hwint.cc
hwint.h
ifcvt.cc
ifcvt.h
inchash.cc
inchash.h
incpath.cc
incpath.h
init-regs.cc
input.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
input.h
insn-addr.h
insn-notes.def
int-vector-builder.h
internal-fn.cc
internal-fn.def
internal-fn.h
intl.cc
intl.h
ipa-comdats.cc
ipa-cp.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-devirt.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
ipa-fnsummary.cc
ipa-fnsummary.h ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-free-lang-data.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
ipa-icf-gimple.cc
ipa-icf-gimple.h
ipa-icf.cc
ipa-icf.h
ipa-inline-analysis.cc
ipa-inline-transform.cc
ipa-inline.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
ipa-inline.h
ipa-modref-tree.cc
ipa-modref-tree.h
ipa-modref.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-modref.h
ipa-param-manipulation.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-param-manipulation.h
ipa-polymorphic-call.cc
ipa-predicate.cc
ipa-predicate.h
ipa-profile.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-prop.cc ipa: Check cst type when propagating controled uses info 2022-05-27 13:06:02 +02:00
ipa-prop.h ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-pure-const.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-ref.cc
ipa-ref.h
ipa-reference.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-reference.h
ipa-split.cc
ipa-sra.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
ipa-utils.cc
ipa-utils.h
ipa-visibility.cc
ipa.cc
ira-build.cc
ira-color.cc
ira-conflicts.cc
ira-costs.cc
ira-emit.cc
ira-int.h
ira-lives.cc
ira.cc
ira.h
is-a.h
iterator-utils.h
json.cc
json.h Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
jump.cc
langhooks-def.h OpenMP: Handle descriptors in target's firstprivate [PR104949] 2022-05-23 10:54:32 +02:00
langhooks.cc OpenMP: Handle descriptors in target's firstprivate [PR104949] 2022-05-23 10:54:32 +02:00
langhooks.h OpenMP: Handle descriptors in target's firstprivate [PR104949] 2022-05-23 10:54:32 +02:00
LANGUAGES
lcm.cc
lcm.h
libfuncs.h
limitx.h
limity.h
lists.cc
lock-and-run.sh
loop-doloop.cc
loop-init.cc
loop-invariant.cc
loop-iv.cc DSE: Use the constant store source if possible 2022-06-01 14:23:26 -07:00
loop-unroll.cc
loop-unroll.h
lower-subreg.cc
lower-subreg.h
lra-assigns.cc
lra-coalesce.cc
lra-constraints.cc
lra-eliminations.cc
lra-int.h
lra-lives.cc
lra-remat.cc
lra-spills.cc
lra.cc
lra.h
lto-cgraph.cc
lto-compress.cc
lto-compress.h
lto-opts.cc
lto-section-in.cc
lto-section-names.h
lto-section-out.cc
lto-streamer-in.cc
lto-streamer-out.cc
lto-streamer.cc
lto-streamer.h
lto-wrapper.cc
machmode.def
machmode.h
main.cc
Makefile.in build: TAGS and .cc transition 2022-05-31 15:09:01 -04:00
match.pd match.pd: Optimize __builtin_mul_overflow_p (x, cst, (utype)0) to x > ~(utype)0 / cst [PR30314] 2022-06-01 17:54:39 +02:00
mcf.cc
mem-stats-traits.h
mem-stats.h
memmodel.h
memory-block.cc
memory-block.h
mkconfig.sh
mode-classes.def
mode-switching.cc
modulo-sched.cc
multiple_target.cc
mux-utils.h
obstack-utils.h
omp-builtins.def openmp: Add taskwait nowait depend support [PR105378] 2022-05-24 09:12:44 +02:00
omp-expand.cc openmp: Add taskwait nowait depend support [PR105378] 2022-05-24 09:12:44 +02:00
omp-expand.h
omp-general.cc
omp-general.h
omp-low.cc openmp: Add support for firstprivate and allocate clauses on scope construct 2022-05-31 11:41:52 +02:00
omp-low.h
omp-oacc-kernels-decompose.cc
omp-oacc-neuter-broadcast.cc
omp-offload.cc
omp-offload.h
omp-simd-clone.cc
omp-simd-clone.h
ONEWS
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-problem.cc
opt-problem.h
opt-read.awk
opt-suggestions.cc
opt-suggestions.h
optabs-libfuncs.cc
optabs-libfuncs.h
optabs-query.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
optabs-query.h Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
optabs-tree.cc
optabs-tree.h
optabs.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
opth-gen.awk
optinfo-emit-json.cc
optinfo-emit-json.h
optinfo.cc
optinfo.h
opts-common.cc
opts-diagnostic.h
opts-global.cc opts-global.cc: document last change 2022-05-16 11:07:57 +02:00
opts.cc
opts.h
ordered-hash-map-tests.cc
ordered-hash-map.h
output.h
params.opt Add GIMPLE switch support to loop unswitching 2022-05-25 10:37:13 +02:00
pass_manager.h
passes.cc
passes.def
plugin.cc
plugin.def
plugin.h
pointer-query.cc PR middle-end/105604 - ICE: in tree_to_shwi with vla in struct and sprintf 2022-05-24 16:05:50 -06:00
pointer-query.h
poly-int-types.h
poly-int.h
postreload-gcse.cc
postreload.cc
predict.cc
predict.def
predict.h
prefix.cc
prefix.h
pretty-print.cc
pretty-print.h
print-rtl-function.cc
print-rtl.cc
print-rtl.h
print-tree.cc
print-tree.h
profile-count.cc
profile-count.h
profile.cc
profile.h
range-op.cc Convert range-op.* to vrange. 2022-06-01 10:55:45 +02:00
range-op.h Convert range-op.* to vrange. 2022-06-01 10:55:45 +02:00
range.cc
range.h
read-md.cc
read-md.h
read-rtl-function.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
read-rtl-function.h
read-rtl.cc
README.Portability
real.cc
real.h
realmpfr.cc
realmpfr.h
recog.cc
recog.h
ree.cc
reg-notes.def
reg-stack.cc
regcprop.cc
regcprop.h
reginfo.cc
regrename.cc
regrename.h
regs.h
regset.h
regstat.cc
reload.cc
reload.h
reload1.cc
reorg.cc
resource.cc
resource.h
rtl-error.cc
rtl-error.h
rtl-iter.h
rtl-ssa.h
rtl-tests.cc
rtl.cc
rtl.def
rtl.h
rtlanal.cc Make the default rtx_costs of MULT/DIV variants consistent. 2022-05-30 21:23:15 +01:00
rtlanal.h
rtlhash.cc
rtlhash.h
rtlhooks-def.h
rtlhooks.cc
rtx-vector-builder.cc
rtx-vector-builder.h
run-rtl-passes.cc
run-rtl-passes.h
sancov.cc
sanitizer.def
sanopt.cc
sbitmap.cc
sbitmap.h
sched-deps.cc
sched-ebb.cc
sched-int.h
sched-rgn.cc
sel-sched-dump.cc
sel-sched-dump.h
sel-sched-ir.cc
sel-sched-ir.h
sel-sched.cc
sel-sched.h
selftest-diagnostic.cc
selftest-diagnostic.h
selftest-rtl.cc
selftest-rtl.h
selftest-run-tests.cc
selftest.cc
selftest.h
sese.cc
sese.h
shortest-paths.h
shrink-wrap.cc
shrink-wrap.h
signop.h
simplify-rtx.cc
sort.cc
sparseset.cc
sparseset.h
spellcheck-tree.cc
spellcheck-tree.h
spellcheck.cc Use more ARRAY_SIZE. 2022-05-16 10:38:46 +02:00
spellcheck.h
splay-tree-utils.cc
splay-tree-utils.h
splay-tree-utils.tcc
sreal.cc
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.cc
statistics.cc
statistics.h
stmt.cc
stmt.h
stor-layout.cc
stor-layout.h
store-motion.cc
streamer-hooks.cc
streamer-hooks.h
stringpool.cc
stringpool.h
substring-locations.cc
substring-locations.h
symbol-summary.h ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
symtab-clones.cc
symtab-clones.h
symtab-thunks.cc ipa: add 'final' and 'override' to call_summary_base vfunc impls 2022-05-24 08:51:00 -04:00
symtab-thunks.h
symtab.cc
sync-builtins.def
system.h Advise to call 'internal_error' instead of 'abort' or 'fancy_abort' 2022-05-17 16:27:32 +02:00
target-def.h
target-globals.cc
target-globals.h
target-hooks-macros.h
target-insns.def
target.def Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
target.h
targhooks.cc PR105169 Fix references to discarded sections 2022-05-17 14:34:21 -03:00
targhooks.h
timevar.cc
timevar.def
timevar.h
toplev.cc
toplev.h
tracer.cc
tracer.h
trans-mem.cc
trans-mem.h
tree-affine.cc
tree-affine.h
tree-call-cdce.cc
tree-cfg.cc Add GIMPLE switch support to loop unswitching 2022-05-25 10:37:13 +02:00
tree-cfg.h
tree-cfgcleanup.cc
tree-cfgcleanup.h
tree-chrec.cc
tree-chrec.h
tree-complex.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
tree-core.h openmp: Add support for enter clause on declare target 2022-05-27 12:48:48 +02:00
tree-data-ref.cc Convert range-op.* to vrange. 2022-06-01 10:55:45 +02:00
tree-data-ref.h
tree-dfa.cc Avoid shift in get_ref_base_and_extent 2022-05-27 14:08:18 +02:00
tree-dfa.h
tree-diagnostic-path.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
tree-diagnostic.cc
tree-diagnostic.h
tree-dump.cc
tree-dump.h
tree-eh.cc
tree-eh.h
tree-emutls.cc
tree-hash-traits.h
tree-hasher.h
tree-if-conv.cc Remove is_gimple_condexpr 2022-05-23 11:30:39 +02:00
tree-if-conv.h
tree-inline.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-inline.h
tree-into-ssa.cc
tree-into-ssa.h
tree-iterator.cc
tree-iterator.h
tree-loop-distribution.cc tree-optimization/105786 - avoid strlen replacement for pointers 2022-06-01 15:17:42 +02:00
tree-nested.cc openmp: Add support for enter clause on declare target 2022-05-27 12:48:48 +02:00
tree-nested.h
tree-nrv.cc
tree-object-size.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-object-size.h
tree-outof-ssa.cc
tree-outof-ssa.h
tree-parloops.cc
tree-parloops.h
tree-pass.h
tree-phinodes.cc
tree-phinodes.h
tree-predcom.cc
tree-pretty-print.cc openmp: Add support for enter clause on declare target 2022-05-27 12:48:48 +02:00
tree-pretty-print.h
tree-profile.cc
tree-scalar-evolution.cc Enhance final_value_replacement_loop to handle bitwise induction. 2022-05-18 15:46:21 +08:00
tree-scalar-evolution.h
tree-sra.cc Fix wrong SRA with VIEW_CONVERT_EXPR and reverse SSO 2022-05-13 11:19:01 +02:00
tree-sra.h
tree-ssa-address.cc
tree-ssa-address.h
tree-ssa-alias-compare.h
tree-ssa-alias.cc
tree-ssa-alias.h
tree-ssa-ccp.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
tree-ssa-ccp.h
tree-ssa-coalesce.cc
tree-ssa-coalesce.h
tree-ssa-copy.cc Use "final" and "override" directly, rather than via macros 2022-05-20 10:05:54 -04:00
tree-ssa-dce.cc
tree-ssa-dce.h
tree-ssa-dom.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-dom.h
tree-ssa-dse.cc tree-optimization/100221 - improve DSE a bit 2022-05-24 08:20:11 +02:00
tree-ssa-dse.h
tree-ssa-forwprop.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-ssa-ifcombine.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-live.cc
tree-ssa-live.h
tree-ssa-loop-ch.cc
tree-ssa-loop-im.cc Force the selection operand of a GIMPLE COND_EXPR to be a register 2022-05-23 11:30:39 +02:00
tree-ssa-loop-ivcanon.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-loop-ivopts.cc
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.cc
tree-ssa-loop-manip.h
tree-ssa-loop-niter.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.cc
tree-ssa-loop-split.cc
tree-ssa-loop-unswitch.cc unswitch: Fold case label lo/hi values to index type [PR105770] 2022-06-01 14:00:49 +02:00
tree-ssa-loop.cc
tree-ssa-loop.h
tree-ssa-math-opts.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-math-opts.h
tree-ssa-operands.cc
tree-ssa-operands.h
tree-ssa-phiopt.cc tree-optimization/105629 - spaceship recognition regression 2022-05-24 08:20:11 +02:00
tree-ssa-phiprop.cc
tree-ssa-pre.cc Remove get_or_alloc_expression_id 2022-05-19 16:25:55 +02:00
tree-ssa-propagate.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-propagate.h
tree-ssa-reassoc.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-reassoc.h
tree-ssa-sccvn.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa-sccvn.h tree-optimization/105562 - avoid uninit diagnostic with better FRE 2022-05-12 13:27:12 +02:00
tree-ssa-scopedtables.cc
tree-ssa-scopedtables.h
tree-ssa-sink.cc tree-optimization/105618 - restore load sinking 2022-05-17 10:45:45 +02:00
tree-ssa-strlen.cc PR tree-optimization/83907: Improved memset handling in strlen pass. 2022-05-13 22:20:16 +01:00
tree-ssa-strlen.h
tree-ssa-structalias.cc
tree-ssa-tail-merge.cc
tree-ssa-ter.cc
tree-ssa-ter.h
tree-ssa-threadbackward.cc
tree-ssa-threadedge.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.cc
tree-ssa-threadupdate.h
tree-ssa-uncprop.cc
tree-ssa-uninit.cc
tree-ssa.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
tree-ssa.h
tree-ssanames.cc
tree-ssanames.h
tree-stdarg.cc
tree-stdarg.h
tree-streamer-in.cc
tree-streamer-out.cc
tree-streamer.cc
tree-streamer.h
tree-switch-conversion.cc
tree-switch-conversion.h
tree-tailcall.cc
tree-vect-data-refs.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vect-generic.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vect-loop-manip.cc Fix profile count maintenance in vectorizer peeling. 2022-05-24 16:49:45 -07:00
tree-vect-loop.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vect-patterns.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vect-slp-patterns.cc tree-vect-slp-patterns.cc: add 'final' and 'override' to vect_pattern::build impls 2022-05-24 08:53:30 -04:00
tree-vect-slp.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vect-stmts.cc Add new parameter to vec_perm_const hook for specifying operand mode. 2022-05-25 00:42:00 +05:30
tree-vector-builder.cc
tree-vector-builder.h
tree-vectorizer.cc
tree-vectorizer.h
tree-vrp.cc Convert range-op.* to vrange. 2022-06-01 10:55:45 +02:00
tree-vrp.h
tree.cc openmp: Add support for enter clause on declare target 2022-05-27 12:48:48 +02:00
tree.def
tree.h openmp: Add support for enter clause on declare target 2022-05-27 12:48:48 +02:00
treestruct.def
tristate.cc
tristate.h
tsan.cc
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.cc
typed-splay-tree.h
ubsan.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
ubsan.h
valtrack.cc
valtrack.h
value-pointer-equiv.cc Make gimple_build main workers more flexible 2022-05-13 08:18:33 +02:00
value-pointer-equiv.h
value-prof.cc
value-prof.h
value-query.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
value-query.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
value-range-equiv.cc Implement abstract vrange class. 2022-06-01 10:55:45 +02:00
value-range-equiv.h Implement abstract vrange class. 2022-06-01 10:55:45 +02:00
value-range.cc Implement generic range temporaries. 2022-06-01 10:55:45 +02:00
value-range.h Revamp irange_allocator to handle vranges. 2022-06-01 11:09:32 +02:00
value-relation.cc Check for equivalence after merging relations. 2022-05-17 11:43:32 -04:00
value-relation.h Move VREL values to their own enumerated type. 2022-05-13 11:04:15 -04:00
var-tracking.cc
varasm.cc PR105169 Fix references to discarded sections 2022-05-17 14:34:21 -03:00
varasm.h PR105169 Fix references to discarded sections 2022-05-17 14:34:21 -03:00
varpool.cc
vec-perm-indices.cc
vec-perm-indices.h
vec.cc
vec.h
vector-builder.h
vmsdbg.h
vmsdbgout.cc
vr-values.cc Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
vr-values.h Convert ranger and clients to vrange. 2022-06-01 11:11:15 +02:00
vtable-verify.cc
vtable-verify.h
warning-control.cc
web.cc
wide-int-bitmask.h
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h
xcoff.h
xcoffout.cc
xcoffout.h

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

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

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

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

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


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

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


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

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

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

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

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

needs to be coded in some other way.


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

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

  if (P)
    free (P);

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

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

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



Trigraphs
---------

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


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

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


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

errno
-----

errno might be declared as a macro.


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

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

  unsigned variable;

as shorthand for

  unsigned int variable;

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

  (unsigned) variable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

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

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

o Passing incorrect types to fprintf and friends.

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