gcc/gcc
Tobias Burnus bd73d8dd31 nvptx: Add -misa=sm_70
Add -misa=sm_70, and use it to specify the misa value in test-case
gcc.target/nvptx/atomic-store-2.c.

Tested on nvptx.

gcc/ChangeLog:

	* config/nvptx/nvptx-c.cc (nvptx_cpu_cpp_builtins): Handle SM70.
	* config/nvptx/nvptx.cc (first_ptx_version_supporting_sm):
	Likewise.
	* config/nvptx/nvptx.opt (misa): Add sm_70 alias PTX_ISA_SM70.

gcc/testsuite/ChangeLog:

2022-02-22  Tom de Vries  <tdevries@suse.de>

	* gcc.target/nvptx/atomic-store-2.c: Use -misa=sm_70.
	* gcc.target/nvptx/uniform-simt-3.c: Same.

Co-Authored-By: Tom de Vries <tdevries@suse.de>
2022-02-22 15:38:55 +01:00
..
ada Daily bump. 2022-02-14 00:16:23 +00:00
analyzer Daily bump. 2022-02-18 00:16:39 +00:00
c Daily bump. 2022-02-18 00:16:39 +00:00
c-family Daily bump. 2022-02-18 00:16:39 +00:00
common i386: -mno-xsave should disable all relevant ISA flags [PR104462] 2022-02-09 20:19:45 +01:00
config nvptx: Add -misa=sm_70 2022-02-22 15:38:55 +01:00
cp Daily bump. 2022-02-19 00:16:17 +00:00
d Daily bump. 2022-02-21 00:16:24 +00:00
doc nvptx: Add -mptx=6.0 2022-02-22 14:57:28 +01:00
fortran Daily bump. 2022-02-21 00:16:24 +00:00
ginclude
go runtime/internal/syscall: build dummy package if not Linux 2022-02-21 13:24:38 -08:00
jit Daily bump. 2022-01-18 00:16:54 +00:00
lto Daily bump. 2022-02-05 00:16:31 +00:00
objc Daily bump. 2022-01-18 00:16:54 +00:00
objcp Daily bump. 2022-01-18 00:16:54 +00:00
po Daily bump. 2022-02-12 00:16:23 +00:00
rtl-ssa
testsuite nvptx: Add -misa=sm_70 2022-02-22 15:38:55 +01:00
ABOUT-GCC-NLS
BASE-VER Bump gcc/BASE-VER to 12.0.1 now that we are in stage4. 2022-01-17 13:21:24 +01:00
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog Daily bump. 2022-02-22 00:16:33 +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
DATESTAMP Daily bump. 2022-02-22 00:16:33 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Manual changes for .cc renaming. 2022-01-17 22:12:14 +01:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
adjust-alignment.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
alias.cc rtl-optimization/104498: Fix comparing symbol reference 2022-02-21 09:41:53 +00:00
alias.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
align.h
alloc-pool.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
alloc-pool.h
array-traits.h
asan.cc asan: Mark instrumented vars addressable [PR102656] 2022-02-19 09:03:57 +01:00
asan.h
attr-fnspec.h
attribs.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
attribs.h
auto-inc-dec.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
auto-profile.cc AutoFDO: Don't try to promote indirect calls that result in recursive direct calls 2022-02-09 23:33:10 -08:00
auto-profile.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
backend.h
basic-block.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
bb-reorder.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
bb-reorder.h
bitmap.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
bitmap.h
btfout.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
builtin-attrs.def
builtin-types.def
builtins.cc rtl: builtins: Fix builtins feclearexcept and feraiseexcept operand check [PR94193] 2022-01-26 15:20:41 +00:00
builtins.def
builtins.h
caller-save.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
calls.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
calls.h
ccmp.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ccmp.h
cfg-flags.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cfg.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cfg.h
cfganal.cc Assert that backedges are available in path solver. 2022-02-03 14:06:45 +01:00
cfganal.h Assert that backedges are available in path solver. 2022-02-03 14:06:45 +01:00
cfgbuild.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cfgbuild.h
cfgcleanup.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cfgcleanup.h
cfgexpand.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cfgexpand.h
cfghooks.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cfghooks.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cfgloop.cc tree-optimization/104528 - free niter estimates after DSE 2022-02-14 14:31:06 +01:00
cfgloop.h
cfgloopanal.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cfgloopmanip.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cfgloopmanip.h
cfgrtl.cc cfgrtl: Fix up locus comparison in unique_locus_on_edge_between_p [PR104237] 2022-01-28 11:48:18 +01:00
cfgrtl.h
cgraph.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
cgraph.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
cgraphbuild.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cgraphclones.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cgraphunit.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
cif-code.def
collect-utils.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
collect-utils.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
collect2-aix.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
collect2-aix.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
collect2.cc Fix -Wformat-diag in various targets. 2022-01-18 17:25:37 +01:00
collect2.h
color-macros.h
combine-stack-adj.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
combine.cc combine: Fix up -fcompare-debug issue in the combiner [PR104544] 2022-02-16 14:48:30 +01:00
common.md
common.opt Correct typos in -Wuse-after-free description. 2022-02-02 17:47:52 -07:00
compare-elim.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
conditions.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
config.build
config.gcc RISC-V: Always pass -misa-spec to assembler [PR104219] 2022-02-05 16:10:12 +08:00
config.host
config.in aix: handle 64bit inodes for include directories 2022-01-12 16:59:47 +01:00
configure RISC-V: Fix detection of zifencei support for binutils 2022-02-05 17:29:17 +08:00
configure.ac RISC-V: Fix detection of zifencei support for binutils 2022-02-05 17:29:17 +08:00
context.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
context.h
convert.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
convert.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
coretypes.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
coroutine-builtins.def
coroutine-passes.cc
coverage.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
coverage.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cppbuiltin.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cppbuiltin.h
cppdefault.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cppdefault.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cprop.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cse.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
cselib.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
cselib.h
cstamp-h.in
ctfc.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ctfc.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ctfout.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
data-streamer-in.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
data-streamer-out.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
data-streamer.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
data-streamer.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dbgcnt.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
dbgcnt.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dbgcnt.h
dbxout.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dbxout.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dce.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
dce.h
ddg.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ddg.h
debug.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
debug.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
defaults.h
df-core.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
df-problems.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
df-scan.cc df: Don't set bbs dirty because of debug insn moves [PR104459] 2022-02-11 11:21:24 +01:00
df.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dfp.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dfp.h
diagnostic-color.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
diagnostic-color.h
diagnostic-core.h
diagnostic-event-id.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
diagnostic-format-json.cc
diagnostic-metadata.h
diagnostic-path.h
diagnostic-show-locus.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
diagnostic-spec.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
diagnostic-spec.h Add -Wuse-after-free [PR80532]. 2022-01-15 16:45:24 -07:00
diagnostic-url.h
diagnostic.cc Remove extra newline in ICE report. 2022-01-28 16:11:33 +01:00
diagnostic.def
diagnostic.h Improve wording for -freport-bug option. 2022-01-27 13:34:29 +01:00
digraph.cc
digraph.h
dojump.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dojump.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dominance.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
dominance.h
domwalk.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
domwalk.h
double-int.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
double-int.h
dse.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
dump-context.h
dumpfile.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
dumpfile.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dwarf2asm.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dwarf2asm.h
dwarf2cfi.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
dwarf2ctf.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
dwarf2ctf.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
dwarf2out.cc dwarf2out: Don't call expand_expr during early_dwarf [PR104407] 2022-02-09 15:17:52 +01:00
dwarf2out.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
early-remat.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
edit-context.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
edit-context.h
emit-rtl.cc Fix -Werror=format-diag with RTL checking 2022-01-20 12:03:06 +01:00
emit-rtl.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
errors.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
errors.h
escaped_string.h
et-forest.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
et-forest.h
except.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
except.h
exec-tool.in
explow.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
explow.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
expmed.cc ifcvt/optabs: Allow using a CC comparison for emit_conditional_move. 2022-01-19 18:36:04 +01:00
expmed.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
expr.cc ifcvt/optabs: Allow using a CC comparison for emit_conditional_move. 2022-01-19 18:36:04 +01:00
expr.h
fibonacci_heap.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
fibonacci_heap.h
file-find.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
file-find.h
file-prefix-map.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
file-prefix-map.h
final.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
fixed-value.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
fixed-value.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
flag-types.h aarch64: Add compiler support for Shadow Call Stack 2022-02-21 20:01:14 +00:00
flags.h
fold-const-call.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
fold-const-call.h
fold-const.cc Implement constant-folding simplifications of reductions. 2022-02-22 12:32:22 +00:00
fold-const.h Implement constant-folding simplifications of reductions. 2022-02-22 12:32:22 +00:00
fp-test.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
function-abi.cc
function-abi.h
function-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
function.cc middle-end: updating the reg use in exit block for -fzero-call-used-regs [PR100775] 2022-02-10 16:40:39 +00:00
function.h pack fields in cgraph_simd_clone_arg and struct function 2022-01-18 12:19:49 +01:00
fwprop.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcc-ar.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gcc-main.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcc-plugin.h
gcc-rich-location.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gcc-rich-location.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcc-symtab.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcc.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcc.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcov-counter.def
gcov-dump.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcov-io.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gcov-io.h
gcov-tool.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gcov.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcse-common.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gcse-common.h
gcse.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
gcse.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genattr.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genattrtab.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genautomata.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gencfn-macros.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gencheck.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genchecksum.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gencodes.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genconditions.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genconfig.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genconstants.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genemit.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genenums.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
generic-match-head.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
generic-match.h
genextract.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genflags.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gengenrtl.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gengtype-lex.l
gengtype-parse.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gengtype-state.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gengtype.cc Manual changes for .cc renaming. 2022-01-17 22:12:14 +01:00
gengtype.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genhooks.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genmatch.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genmddeps.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genmddump.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genmodes.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genmultilib
genopinit.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genoutput.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genpeep.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genpreds.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
genrecog.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gensupport.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gensupport.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gentarget-def.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
genversion.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ggc-common.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ggc-internal.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ggc-none.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ggc-page.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ggc-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ggc.h
gimple-array-bounds.cc Enable pointer_query caching in -Warray-bounds. 2022-02-03 13:58:28 -07:00
gimple-array-bounds.h Enable pointer_query caching in -Warray-bounds. 2022-02-03 13:58:28 -07:00
gimple-builder.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-builder.h
gimple-expr.cc middle-end/104402 - split out _Complex compares from COND_EXPRs 2022-02-07 09:37:59 +01:00
gimple-expr.h
gimple-fold.cc fold, simplify-rtx: Punt on non-representable floating point constants [PR104522] 2022-02-15 12:12:16 +01:00
gimple-fold.h reassoc: Fix up inter-bb range optimization [PR104196] 2022-01-27 10:47:00 +01:00
gimple-harden-conditionals.cc
gimple-if-to-switch.cc
gimple-isel.cc middle-end/104464 - ISEL and non-call EH #2 2022-02-09 15:50:02 +01:00
gimple-iterator.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-iterator.h
gimple-laddress.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-loop-interchange.cc
gimple-loop-jam.cc tree-optimization/104543 - fix unroll-and-jam precondition 2022-02-15 13:22:15 +01:00
gimple-loop-versioning.cc
gimple-low.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gimple-low.h
gimple-match-head.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gimple-match.h
gimple-predicate-analysis.cc
gimple-predicate-analysis.h
gimple-predict.h
gimple-pretty-print.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-pretty-print.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gimple-range-cache.cc Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
gimple-range-cache.h Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
gimple-range-edge.cc
gimple-range-edge.h
gimple-range-fold.cc ranger: Fix up REALPART_EXPR/IMAGPART_EXPR handling [PR104604] 2022-02-22 10:43:13 +01:00
gimple-range-fold.h
gimple-range-gori.cc Use range_compatible_p in condexpr_adjust 2022-02-16 13:45:10 -05:00
gimple-range-gori.h Use GORI to evaluate arguments of a COND_EXPR. 2022-02-15 17:03:27 -05:00
gimple-range-path.cc Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
gimple-range-path.h Reset relations when crossing backedges. 2022-01-21 11:19:07 +01:00
gimple-range-tests.cc
gimple-range-trace.cc
gimple-range-trace.h
gimple-range.cc Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
gimple-range.h Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
gimple-ssa-backprop.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-evrp-analyze.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-evrp-analyze.h
gimple-ssa-evrp.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-isolate-paths.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-nonnull-compare.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-split-paths.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-sprintf.cc Constrain conservative string lengths to array sizes [PR104119]. 2022-02-03 13:27:16 -07:00
gimple-ssa-store-merging.cc store-merging: Fix up a -fcompare-debug bug in get_status_for_store_merging [PR104263] 2022-01-28 19:02:26 +01:00
gimple-ssa-strength-reduction.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-warn-access.cc Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
gimple-ssa-warn-access.h
gimple-ssa-warn-alloca.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-ssa-warn-restrict.cc Enable pointer_query caching in -Wrestrict. 2022-02-03 13:59:39 -07:00
gimple-ssa-warn-restrict.h Enable pointer_query caching in -Wrestrict. 2022-02-03 13:59:39 -07:00
gimple-ssa.h
gimple-streamer-in.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-streamer-out.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-streamer.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
gimple-walk.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple-walk.h
gimple-warn-recursion.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimple.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
gimple.def
gimple.h Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
gimplify-me.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
gimplify-me.h
gimplify.cc middle-end/104497 - gimplification of vector indexing 2022-02-14 09:12:36 +01:00
gimplify.h
glimits.h
godump.cc -fgo-dump-spec: really name alignment field "_" 2022-02-09 09:39:03 -08:00
graph.cc Make graph dumping work for fn != cfun 2022-01-28 11:28:09 +01:00
graph.h
graphds.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphds.h
graphite-dependences.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite-isl-ast-to-gimple.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
graphite-optimize-isl.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite-poly.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite-scop-detection.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite-sese-to-poly.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
graphite.h
graphviz.cc
graphviz.h
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
hard-reg-set.h
hash-map-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
hash-map-traits.h
hash-map.h
hash-set-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
hash-set.h
hash-table.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
hash-table.h
hash-traits.h
highlev-plugin-common.h
hooks.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
hooks.h
host-default.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
hosthooks-def.h
hosthooks.h
hw-doloop.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
hw-doloop.h
hwint.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
hwint.h
ifcvt.cc ifcvt: Fix PR104153 and PR104198. 2022-02-08 20:46:20 +01:00
ifcvt.h
inchash.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
inchash.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
incpath.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
incpath.h
init-regs.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
input.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
input.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
insn-addr.h
insn-notes.def
int-vector-builder.h
internal-fn.cc middle-end/104496 - fix vectorized_internal_fn_supported_p 2022-02-11 11:28:25 +01:00
internal-fn.def widening_mul, i386: Improve spaceship expansion on x86 [PR103973] 2022-01-17 13:39:05 +01:00
internal-fn.h widening_mul, i386: Improve spaceship expansion on x86 [PR103973] 2022-01-17 13:39:05 +01:00
intl.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
intl.h
ipa-comdats.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-cp.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-devirt.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-fnsummary.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-fnsummary.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-free-lang-data.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ipa-icf-gimple.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-icf-gimple.h
ipa-icf.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-icf.h
ipa-inline-analysis.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-inline-transform.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-inline.cc ipa/103989 - avoid IPA inlining of small functions with -Og 2022-01-18 15:43:04 +01:00
ipa-inline.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ipa-modref-tree.cc IPA mod-ref: fix usage of --param names in dump messages. 2022-01-26 16:25:10 +01:00
ipa-modref-tree.h IPA mod-ref: fix usage of --param names in dump messages. 2022-01-26 16:25:10 +01:00
ipa-modref.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-modref.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-param-manipulation.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ipa-param-manipulation.h
ipa-polymorphic-call.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-predicate.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-predicate.h
ipa-profile.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-prop.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ipa-prop.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-pure-const.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-ref.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-ref.h
ipa-reference.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-reference.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ipa-split.cc [COMMITTED] Improve coment for the newly added code in ipa-split. 2022-01-18 15:45:20 -08:00
ipa-sra.cc internal_error - do not use leading capital letter 2022-01-28 16:08:58 +01:00
ipa-utils.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa-utils.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ipa-visibility.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ipa.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ira-build.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ira-color.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ira-conflicts.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ira-costs.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
ira-emit.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
ira-int.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ira-lives.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ira.cc [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
ira.h [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
is-a.h
iterator-utils.h
json.cc
json.h
jump.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
langhooks-def.h
langhooks.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
langhooks.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lcm.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lcm.h
libfuncs.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
limitx.h
limity.h
lists.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lock-and-run.sh
loop-doloop.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
loop-init.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
loop-invariant.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
loop-iv.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
loop-unroll.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
loop-unroll.h
lower-subreg.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lower-subreg.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lra-assigns.cc [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
lra-coalesce.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lra-constraints.cc [PR104447] LRA: Do not split non-alloc hard regs. 2022-02-17 11:33:33 -05:00
lra-eliminations.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lra-int.h [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
lra-lives.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lra-remat.cc [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
lra-spills.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lra.cc [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
lra.h [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos 2022-01-21 13:37:11 -05:00
lto-cgraph.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-compress.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-compress.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lto-opts.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-section-in.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-section-names.h
lto-section-out.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-streamer-in.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-streamer-out.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lto-streamer.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
lto-streamer.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
lto-wrapper.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
machmode.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
machmode.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
main.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
match.pd Implement constant-folding simplifications of reductions. 2022-02-22 12:32:22 +00:00
mcf.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
mem-stats-traits.h
mem-stats.h
memmodel.h
memory-block.cc
memory-block.h
mkconfig.sh
mode-classes.def
mode-switching.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
modulo-sched.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
multiple_target.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
mux-utils.h
obstack-utils.h
omp-builtins.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
omp-expand.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
omp-expand.h
omp-general.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
omp-general.h
omp-low.cc openmp: Make finalize_task_copyfn order reproduceable [PR104517] 2022-02-15 10:22:30 +01:00
omp-low.h
omp-oacc-kernels-decompose.cc Wait at end of OpenACC asynchronous kernels regions 2022-01-13 10:42:17 +01:00
omp-oacc-neuter-broadcast.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
omp-offload.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
omp-offload.h
omp-simd-clone.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
omp-simd-clone.h
opt-functions.awk options: Add EnumBitSet property support [PR104158] 2022-01-24 11:53:08 +01:00
opt-gather.awk
opt-include.awk
opt-problem.cc
opt-problem.h
opt-read.awk options: Add EnumSet and Set property support [PR104158] 2022-01-24 11:50:15 +01:00
opt-suggestions.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
opt-suggestions.h
optabs-libfuncs.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
optabs-libfuncs.h
optabs-query.cc tree-optimization/104445 - check for vector extraction support 2022-02-09 14:03:31 +01:00
optabs-query.h tree-optimization/104445 - check for vector extraction support 2022-02-09 14:03:31 +01:00
optabs-tree.cc match.pd, optabs: Avoid vectorization of {FLOOR,CEIL,ROUND}_{DIV,MOD}_EXPR [PR102860] 2022-01-19 15:03:45 +01:00
optabs-tree.h
optabs.cc optabs: Don't create pseudos in prepare_cmp_insn when not allowed [PR102478] 2022-01-21 11:16:50 +01:00
optabs.def rtl: builtins: (not just) rs6000: Add builtins for fegetround, feclearexcept and feraiseexcept [PR94193] 2022-01-24 17:00:11 +00:00
optabs.h ifcvt/optabs: Allow using a CC comparison for emit_conditional_move. 2022-01-19 18:36:04 +01:00
optc-gen.awk options: Add EnumBitSet property support [PR104158] 2022-01-24 11:53:08 +01:00
optc-save-gen.awk Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
opth-gen.awk
optinfo-emit-json.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
optinfo-emit-json.h
optinfo.cc
optinfo.h
opts-common.cc options: Add EnumBitSet property support [PR104158] 2022-01-24 11:53:08 +01:00
opts-diagnostic.h
opts-global.cc ootstrap: Fix bootstrap with --disable-plugin [PR104176] 2022-01-22 19:04:41 +01:00
opts.cc aarch64: Add compiler support for Shadow Call Stack 2022-02-21 20:01:14 +00:00
opts.h options: Add EnumBitSet property support [PR104158] 2022-01-24 11:53:08 +01:00
ordered-hash-map-tests.cc
ordered-hash-map.h
output.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
params.opt Limit the number of relations registered per basic block. 2022-01-18 10:02:02 -05:00
pass_manager.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
passes.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
passes.def Adjust warn_access pass placement [PR104260]. 2022-02-03 14:53:15 -07:00
plugin.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
plugin.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
plugin.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
pointer-query.cc Make pointer_query cache a private member. 2022-02-03 13:56:50 -07:00
pointer-query.h Use auto_vec for pointer_query cache for auto cleanup. 2022-02-03 19:47:04 -07:00
poly-int-types.h
poly-int.h
postreload-gcse.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
postreload.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
predict.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
predict.def
predict.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
prefix.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
prefix.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
pretty-print.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
pretty-print.h
print-rtl-function.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
print-rtl.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
print-rtl.h
print-tree.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
print-tree.h
profile-count.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
profile-count.h
profile.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
profile.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
range-op.cc ranger: Fix up wi_fold_in_parts for small precision types [PR104334] 2022-02-03 09:45:16 +01:00
range-op.h
range.cc
range.h
read-md.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
read-md.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
read-rtl-function.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
read-rtl-function.h
read-rtl.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
real.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
real.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
realmpfr.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
realmpfr.h
recog.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
recog.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
ree.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
reg-notes.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
reg-stack.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
regcprop.cc Don't propagate for a more expensive reg-reg move. 2022-02-08 12:39:31 +08:00
regcprop.h
reginfo.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
regrename.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
regrename.h
regs.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
regset.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
regstat.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
reload.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
reload.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
reload1.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
reorg.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
resource.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
resource.h
rtl-error.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
rtl-error.h
rtl-iter.h
rtl-ssa.h
rtl-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
rtl.cc Fix -Werror=format-diag with RTL checking 2022-01-20 12:03:06 +01:00
rtl.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
rtl.h ifcvt/optabs: Allow using a CC comparison for emit_conditional_move. 2022-01-19 18:36:04 +01:00
rtlanal.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
rtlanal.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
rtlhash.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
rtlhash.h
rtlhooks-def.h
rtlhooks.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
rtx-vector-builder.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
rtx-vector-builder.h
run-rtl-passes.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
run-rtl-passes.h
sancov.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
sanitizer.def Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sanopt.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
sbitmap.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
sbitmap.h
sched-deps.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sched-ebb.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sched-int.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sched-rgn.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched-dump.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched-dump.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched-ir.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched-ir.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sel-sched.h
selftest-diagnostic.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
selftest-diagnostic.h
selftest-rtl.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
selftest-rtl.h
selftest-run-tests.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
selftest.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
selftest.h Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
sese.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
sese.h
shortest-paths.h
shrink-wrap.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
shrink-wrap.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
signop.h
simplify-rtx.cc fold, simplify-rtx: Punt on non-representable floating point constants [PR104522] 2022-02-15 12:12:16 +01:00
sort.cc
sparseset.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
sparseset.h
spellcheck-tree.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
spellcheck-tree.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
spellcheck.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
spellcheck.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
splay-tree-utils.cc
splay-tree-utils.h
splay-tree-utils.tcc
sreal.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
sreal.h
ssa-iterators.h
ssa.h
stab.def
stack-ptr-mod.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
statistics.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
statistics.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
stmt.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
stmt.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
stor-layout.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
stor-layout.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
store-motion.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
streamer-hooks.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
streamer-hooks.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
stringpool.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
stringpool.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
substring-locations.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
substring-locations.h
symbol-summary.h
symtab-clones.cc
symtab-clones.h
symtab-thunks.cc
symtab-thunks.h
symtab.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
sync-builtins.def
system.h
target-def.h
target-globals.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
target-globals.h
target-hooks-macros.h
target-insns.def
target.def aarch64: Add compiler support for Shadow Call Stack 2022-02-21 20:01:14 +00:00
target.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
targhooks.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
targhooks.h
timevar.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
timevar.def Avoid recomputing PHI results after failure (PR104203). 2022-01-25 14:22:49 -07:00
timevar.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
toplev.cc aarch64: Add compiler support for Shadow Call Stack 2022-02-21 20:01:14 +00:00
toplev.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tracer.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tracer.h
trans-mem.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
trans-mem.h
tree-affine.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-affine.h
tree-call-cdce.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-cfg.cc middle-end/104402 - split out _Complex compares from COND_EXPRs 2022-02-07 09:37:59 +01:00
tree-cfg.h widening_mul, i386: Improve spaceship expansion on x86 [PR103973] 2022-01-17 13:39:05 +01:00
tree-cfgcleanup.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-cfgcleanup.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-chrec.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-chrec.h
tree-complex.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-core.h C, C++, Fortran, OpenMP: Add 'has_device_addr' clause to 'target' construct. 2022-02-09 23:47:12 -08:00
tree-data-ref.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-data-ref.h vect: Simplify and extend the complex numbers validation routines. 2022-02-02 10:39:03 +00:00
tree-dfa.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-dfa.h
tree-diagnostic-path.cc
tree-diagnostic.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-diagnostic.h
tree-dump.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-dump.h
tree-eh.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-eh.h
tree-emutls.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-hash-traits.h
tree-hasher.h
tree-if-conv.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-if-conv.h
tree-inline.cc Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
tree-inline.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-into-ssa.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-into-ssa.h
tree-iterator.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-iterator.h
tree-loop-distribution.cc [ldist] Don't add lib calls with -fno-tree-loop-distribute-patterns 2022-02-01 08:12:24 +01:00
tree-nested.cc C, C++, Fortran, OpenMP: Add 'has_device_addr' clause to 'target' construct. 2022-02-09 23:47:12 -08:00
tree-nested.h
tree-nrv.cc debug/104337 - avoid messing with the abstract origin chain in NRV 2022-02-03 16:02:12 +01:00
tree-object-size.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-object-size.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-outof-ssa.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-outof-ssa.h
tree-parloops.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-parloops.h
tree-pass.h tree-optimization/103990 - fix CFG cleanup regression from PRE change 2022-01-12 16:18:20 +01:00
tree-phinodes.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-phinodes.h
tree-predcom.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-pretty-print.cc C, C++, Fortran, OpenMP: Add 'has_device_addr' clause to 'target' construct. 2022-02-09 23:47:12 -08:00
tree-pretty-print.h
tree-profile.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-scalar-evolution.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-scalar-evolution.h
tree-sra.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-sra.h
tree-ssa-address.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-address.h
tree-ssa-alias-compare.h
tree-ssa-alias.cc tree-optimization/104466 - fix cut&paste error perventing alias disambiguation 2022-02-10 10:54:43 +01:00
tree-ssa-alias.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-ccp.cc Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
tree-ssa-ccp.h
tree-ssa-coalesce.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-coalesce.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-copy.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-dce.cc tree-optimization/96881 - CD-DCE and CLOBBERs 2022-02-18 07:58:54 +01:00
tree-ssa-dce.h
tree-ssa-dom.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-dom.h
tree-ssa-dse.cc tree-optimization/104528 - free niter estimates after DSE 2022-02-14 14:31:06 +01:00
tree-ssa-dse.h
tree-ssa-forwprop.cc tree-optimization/104511 - avoid FP to DFP conversion for VEC_PACK_TRUNC 2022-02-14 11:26:06 +01:00
tree-ssa-ifcombine.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-live.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-live.h
tree-ssa-loop-ch.cc Assert that backedges are available in path solver. 2022-02-03 14:06:45 +01:00
tree-ssa-loop-im.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop-ivcanon.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop-ivopts.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.cc tree-optimization/104519 - adjust PR100499 niter fix 2022-02-15 11:41:42 +01:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop-split.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop-unswitch.cc tree-optimization/104156 - fix unswitching compare-debug issue 2022-01-21 12:18:59 +01:00
tree-ssa-loop.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-loop.h
tree-ssa-math-opts.cc PR middle-end/104140: bootstrap ICE on riscv. 2022-01-21 18:50:22 +00:00
tree-ssa-math-opts.h
tree-ssa-operands.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-operands.h
tree-ssa-phiopt.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-phiprop.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-pre.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-propagate.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-propagate.h
tree-ssa-reassoc.cc reassoc: Fix up inter-bb range optimization [PR104196] 2022-01-27 10:47:00 +01:00
tree-ssa-reassoc.h
tree-ssa-sccvn.cc tree-optimization/104373 - early diagnostic on unreachable code 2022-02-10 10:56:14 +01:00
tree-ssa-sccvn.h tree-optimization/104373 - early diagnostic on unreachable code 2022-02-10 10:56:14 +01:00
tree-ssa-scopedtables.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-scopedtables.h
tree-ssa-sink.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-strlen.cc Make pointer_query cache a private member. 2022-02-03 13:56:50 -07:00
tree-ssa-strlen.h Constrain conservative string lengths to array sizes [PR104119]. 2022-02-03 13:27:16 -07:00
tree-ssa-structalias.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-tail-merge.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-ter.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-ter.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-threadbackward.cc Assert that backedges are available in path solver. 2022-02-03 14:06:45 +01:00
tree-ssa-threadedge.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-threadupdate.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-ssa-uncprop.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssa-uninit.cc tree-optimization/104373 - early diagnostic on unreachable code 2022-02-10 10:56:14 +01:00
tree-ssa.cc c: [PR104506] Fix ICE after error due to change of type to error_mark_node 2022-02-21 09:05:50 +00:00
tree-ssa.h tree-optimization/104528 - free niter estimates after DSE 2022-02-14 14:31:06 +01:00
tree-ssanames.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-ssanames.h
tree-stdarg.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-stdarg.h
tree-streamer-in.cc Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
tree-streamer-out.cc Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
tree-streamer.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-streamer.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
tree-switch-conversion.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-switch-conversion.h
tree-tailcall.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-vect-data-refs.cc tree-optimization/104064 - UBSAN issue in vect dataref analysis 2022-01-18 10:27:56 +01:00
tree-vect-generic.cc veclower: Fix up -fcompare-debug issue in expand_vector_comparison [PR104307] 2022-02-01 16:02:54 +01:00
tree-vect-loop-manip.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-vect-loop.cc tree-optimization/104582 - make SLP node available in vector cost hook 2022-02-22 07:48:38 +01:00
tree-vect-patterns.cc Restrict the two sources of vect_recog_cond_expr_convert_pattern to be of the same type when convert is extension. 2022-02-17 18:58:22 +08:00
tree-vect-slp-patterns.cc vect: Simplify and extend the complex numbers validation routines. 2022-02-02 10:39:03 +00:00
tree-vect-slp.cc Dump def that we use for a splat 2022-02-22 14:28:02 +01:00
tree-vect-stmts.cc tree-optimization/104582 - make SLP node available in vector cost hook 2022-02-22 07:48:38 +01:00
tree-vector-builder.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tree-vector-builder.h
tree-vectorizer.cc tree-optimization/104582 - make SLP node available in vector cost hook 2022-02-22 07:48:38 +01:00
tree-vectorizer.h tree-optimization/104582 - make SLP node available in vector cost hook 2022-02-22 07:48:38 +01:00
tree-vrp.cc Register non-null side effects properly. 2022-02-09 09:09:54 -05:00
tree-vrp.h
tree.cc tree: tweak warn_deprecated_use 2022-02-17 17:50:59 -05:00
tree.def PR middle-end/104140: bootstrap ICE on riscv. 2022-01-21 18:50:22 +00:00
tree.h Add CLOBBER_EOL to mark storage end-of-life clobbers 2022-02-04 08:16:50 +01:00
treestruct.def
tristate.cc
tristate.h
tsan.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
typed-splay-tree.h
ubsan.cc aarch64: Add compiler support for Shadow Call Stack 2022-02-21 20:01:14 +00:00
ubsan.h
valtrack.cc valtrack: Avoid creating raw SUBREGs with VOIDmode argument [PR104557] 2022-02-17 11:14:38 +01:00
valtrack.h
value-pointer-equiv.cc
value-pointer-equiv.h
value-prof.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
value-prof.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
value-query.cc
value-query.h
value-range-equiv.cc
value-range-equiv.h
value-range.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
value-range.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
value-relation.cc Reset relations when crossing backedges. 2022-01-21 11:19:07 +01:00
value-relation.h Reset relations when crossing backedges. 2022-01-21 11:19:07 +01:00
var-tracking.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
varasm.cc internal_error - do not use leading capital letter 2022-01-28 16:08:58 +01:00
varasm.h
varpool.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
vec-perm-indices.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
vec-perm-indices.h
vec.cc Update per-file selftest and finalization hooks for .c to .cc renaming 2022-01-19 11:33:53 -05:00
vec.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
vector-builder.h
vmsdbg.h
vmsdbgout.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
vr-values.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
vr-values.h
vtable-verify.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
vtable-verify.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
warning-control.cc middle-end/101292 - invalid memory access with warning control 2022-01-17 16:16:49 +01:00
web.cc Rename .c files to .cc files. 2022-01-17 22:12:04 +01:00
wide-int-bitmask.h
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h
xcoff.h
xcoffout.cc Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
xcoffout.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00

README.Portability

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.