gcc/gcc
Richard Sandiford 4cfe7a6c35 Short-cut generation of simple built-in functions
This patch short-circuits the builtins.c expansion code for a particular
gimple call if:

- the function has an associated internal function
- the target implements that internal function
- the call has no side effects

This allows a later patch to remove the builtins.c code, once calls with
side effects have been handled.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
	* builtins.h (called_as_built_in): Declare.
	* builtins.c (called_as_built_in): Make external.
	* internal-fn.h (expand_internal_call): Define a variant that
	specifies the internal function explicitly.
	* internal-fn.c (expand_load_lanes_optab_fn)
	(expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
	(expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
	(expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
	(expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
	(expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
	(expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
	(expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
	(expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
	(expand_mask_load_optab_fn, expand_mask_store_optab_fn)
	(expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
	(expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
	(expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
	(expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
	argument.
	(internal_fn_expanders): Update prototype.
	(expand_internal_call): Define a variant that specifies the
	internal function explicitly. Use it to implement the previous
	interface.
	* cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
	functions as calls to internal functions.

From-SVN: r230487
2015-11-17 18:51:20 +00:00
..
ada re PR ada/68345 (gnat build broken on dragonfly due to omission of r229342) 2015-11-14 10:09:01 +01:00
c Add __attribute__((__simd__)) to GCC. 2015-11-16 13:14:57 +00:00
c-family re PR bootstrap/68346 (Bootstrap failure on i686-linux) 2015-11-17 13:16:35 -05:00
common arc-common.c (arc_handle_option): Handle ARCv2 options. 2015-11-11 13:28:37 +01:00
config [ARM] PR 68143 Properly update memory offsets when expanding setmem 2015-11-17 13:20:08 +00:00
cp re PR bootstrap/68361 (Bootstrap failure with --enable-checking=release) 2015-11-17 13:16:29 -05:00
doc Add null identifiers to genmatch 2015-11-17 18:48:23 +00:00
fortran re PR fortran/65751 (Bogus &L in error message) 2015-11-17 17:29:45 +01:00
ginclude
go decl.c: Remove unused header files. 2015-11-11 14:18:08 +00:00
java decl.c: Remove unused header files. 2015-11-11 14:18:08 +00:00
jit decl.c: Remove unused header files. 2015-11-11 14:18:08 +00:00
lto decl.c: Remove unused header files. 2015-11-11 14:18:08 +00:00
objc decl.c: Remove unused header files. 2015-11-11 14:18:08 +00:00
objcp Merge C++ delayed folding branch. 2015-11-13 19:08:05 -05:00
po * sv.po: Update. 2015-11-16 23:15:57 +00:00
testsuite re PR bootstrap/68346 (Bootstrap failure on i686-linux) 2015-11-17 13:16:35 -05:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013 Fix old ChangeLog entry to include global variable name that was changed. 2015-09-25 16:55:10 +00:00
ChangeLog-2014 Fix commit date 2015-11-17 10:28:23 +00:00
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2015-11-17 00:16:12 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Replace match.pd DEFINE_MATH_FNs with auto-generated lists 2015-11-17 18:49:10 +00:00
ONEWS
README.Portability
acinclude.m4 Support init priority on Solaris 2015-11-09 11:33:30 +00:00
aclocal.m4 This patch syncs zlib.m4 with binutils-gdb and uses AM_ZLIB from zlib.m4 2015-07-14 07:25:35 -07:00
addresses.h
alias.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
alias.h alias.h (alias_set_type): Move typedef. 2015-06-25 16:27:12 +00:00
alloc-pool.c Fix BITMAP identifier clash. 2015-06-10 07:57:34 +00:00
alloc-pool.h Enhance pool allocator 2015-11-10 12:27:33 +00:00
asan.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
asan.h
attribs.c Makefile.in (OBJS): Add multiple_target.o. 2015-10-30 18:17:43 +00:00
attribs.h Makefile.in (OBJS): Add multiple_target.o. 2015-10-30 18:17:43 +00:00
auto-inc-dec.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
auto-profile.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
auto-profile.h
backend.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
basic-block.h re PR middle-end/66353 (Missing bb_has_abnormal_call_pred in basic-block.h) 2015-07-11 10:03:38 +00:00
bb-reorder.c Fix bb-reorder problem with degenerate cond_jump (PR68182) 2015-11-09 04:57:19 +01:00
bb-reorder.h
bitmap.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
bitmap.h Fix double word typos. 2015-07-13 04:46:34 +00:00
bt-load.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
builtin-attrs.def
builtin-types.def gcc/ 2015-11-05 16:08:08 +01:00
builtins.c Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
builtins.def Move #undef DEF_BUILTIN* to builtins.def 2015-11-07 10:18:38 +00:00
builtins.h Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
caller-save.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
calls.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
calls.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
ccmp.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ccmp.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
cfg-flags.def [PATCH] Allow vrp to thread across backedges using FSM threader 2015-11-06 16:26:20 -07:00
cfg.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfg.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
cfganal.c ENABLE_CHECKING refactoring: remove remaining occurrences 2015-11-04 15:01:46 +00:00
cfganal.h Check no unreachable blocks in inverted_post_order_compute 2015-10-13 22:10:45 +00:00
cfgbuild.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgbuild.h
cfgcleanup.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgcleanup.h
cfgexpand.c Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
cfgexpand.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
cfghooks.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfghooks.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
cfgloop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgloop.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
cfgloopanal.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgloopmanip.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgloopmanip.h
cfgrtl.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cfgrtl.h Promote types of RTL expressions to more derived ones. 2015-05-20 19:39:42 +00:00
cgraph.c always define ENABLE_OFFLOADING 2015-11-15 00:18:08 +00:00
cgraph.h gcc/ 2015-11-05 16:08:08 +01:00
cgraphbuild.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cgraphclones.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cgraphunit.c Pass manager: add support for termination of pass list 2015-11-04 16:50:45 +00:00
chkp-builtins.def
cif-code.def
cilk-builtins.def
cilk-common.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cilk.h
cilkplus.def
collect-utils.c collect-utils.c (collect_wait): Unlink the response file here instead of... 2015-06-23 20:48:07 +00:00
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c config.host (powerpc-ibm-aix*): Add crtdbase.o to extra_parts. 2015-09-18 10:10:36 -04:00
collect2.h
combine-stack-adj.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
combine.c [combine] Don't transform sign and zero extends inside mults 2015-11-13 15:12:26 +00:00
common.md
common.opt [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
compare-elim.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
conditions.h
config.build * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*. 2015-08-21 17:44:47 +00:00
config.gcc config.gcc (powerpc*-*-*, [...]): Add power9 to hosts that default to 64-bit. 2015-11-10 20:50:39 +00:00
config.host configure.ac: Remove uwin* cases. 2015-08-21 17:38:01 +00:00
config.in rs6000.opt (-mpower9-fusion): Add new switches for ISA 3.0 (power9). 2015-11-09 16:56:22 +00:00
configure always define ENABLE_OFFLOADING 2015-11-15 00:18:08 +00:00
configure.ac always define ENABLE_OFFLOADING 2015-11-15 00:18:08 +00:00
context.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
context.h
convert.c Add non-folding variants for convert_to_*. 2015-11-13 17:24:45 -05:00
convert.h Add non-folding variants for convert_to_*. 2015-11-13 17:24:45 -05:00
coretypes.h Add basic support for direct_optab internal functions 2015-11-17 18:37:45 +00:00
coverage.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
coverage.h
cppbuiltin.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c [PATCH] Make disabled-optimization warning more informative; increase default max-gcse-memory 2015-11-12 15:27:47 -07:00
cse.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
cselib.c Avoid CSE of MEMs in different address spaces 2015-11-09 01:18:35 -08:00
cselib.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
cstamp-h.in
data-streamer-in.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
data-streamer-out.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
data-streamer.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
data-streamer.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
dbgcnt.c
dbgcnt.def re PR target/65105 ([i386] XMM registers are not used for 64bit computations on 32bit target) 2015-09-29 09:32:40 +00:00
dbgcnt.h
dbxout.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
dbxout.h
dce.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dce.h
ddg.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ddg.h
debug.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
debug.h Add DWARF2_LINENO_DEBUGGING_INFO, and use it for nvptx 2015-08-14 12:37:14 +02:00
defaults.h always define EH_RETURN_HANDLER_RTX 2015-11-15 00:18:01 +00:00
df-core.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
df-problems.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
df-scan.c always define EH_RETURN_HANDLER_RTX 2015-11-15 00:18:01 +00:00
df.h REE: fix uninitialized registers handling 2015-10-19 23:47:35 +00:00
dfp.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dfp.h Allow real_format to be passed to more real.h functions 2015-10-30 13:45:42 +00:00
diagnostic-color.c Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
diagnostic-color.h
diagnostic-core.h Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
diagnostic-show-locus.c Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
diagnostic.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
diagnostic.def
diagnostic.h Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
dojump.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dojump.h Promote types of RTL expressions to more derived ones. 2015-05-20 19:39:42 +00:00
dominance.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dominance.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
domwalk.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
domwalk.h
double-int.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
double-int.h coretypes.h: Include machmode.h... 2015-06-04 17:49:54 +00:00
dse.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dumpfile.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dumpfile.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
dwarf2asm.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dwarf2asm.h
dwarf2cfi.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
dwarf2out.c Add hook for modifying debug info for address spaces 2015-11-09 01:19:19 -08:00
dwarf2out.h remove useless typedefs 2015-08-19 02:48:16 +00:00
emit-rtl.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
emit-rtl.h function.h (struct incoming_args): Move struct. 2015-06-25 16:51:35 +00:00
errors.c
errors.h
et-forest.c [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
et-forest.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
except.c always define EH_RETURN_HANDLER_RTX 2015-11-15 00:18:01 +00:00
except.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
exec-tool.in
explow.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
explow.h [PR64164] Drop copyrename, use coalescible partition as base when optimizing. 2015-08-14 18:51:50 +00:00
expmed.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
expmed.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
expr.c expr.c (do_store_flag): Expand vector comparison as VEC_COND_EXPR if... 2015-11-12 11:38:24 +00:00
expr.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
fibonacci_heap.h Use std::swap instead of explicit swaps 2015-05-19 04:24:31 +00:00
file-find.c
file-find.h
final.c remove conditional compilation of sdb debug info 2015-11-15 00:17:51 +00:00
fixed-value.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
fixed-value.h coretypes.h: Include machmode.h... 2015-06-04 17:49:54 +00:00
flag-types.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
flags.h flags.h: Don't include flag-types.h or options.h. 2015-07-09 11:27:35 +00:00
fold-const-call.c Extend fold_const_call to combined_fn 2015-11-17 18:42:48 +00:00
fold-const-call.h Extend fold_const_call to combined_fn 2015-11-17 18:42:48 +00:00
fold-const.c Make more use of combined_fn 2015-11-17 18:43:42 +00:00
fold-const.h Make more use of combined_fn 2015-11-17 18:43:42 +00:00
fp-test.c
function.c remove conditional compilation of sdb debug info 2015-11-15 00:17:51 +00:00
function.h function.h (MINIMUM_METHOD_BOUNDARY): New macro. 2015-10-26 10:50:37 +01:00
fwprop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gcc-ar.c
gcc-main.c Support embedding the driver in-process within libgccjit 2015-08-25 20:25:05 +00:00
gcc-plugin.h gimple-predict.h: New file. 2015-07-10 12:13:06 +00:00
gcc-rich-location.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
gcc-rich-location.h Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
gcc-symtab.h
gcc.c always define ENABLE_OFFLOADING 2015-11-15 00:18:08 +00:00
gcc.h Support embedding the driver in-process within libgccjit 2015-08-25 20:25:05 +00:00
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov-tool.c
gcov.c
gcse-common.c tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
gcse-common.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
gcse.c [PATCH] Make disabled-optimization warning more informative; increase default max-gcse-memory 2015-11-12 15:27:47 -07:00
gcse.h [PATCH] Make disabled-optimization warning more informative; increase default max-gcse-memory 2015-11-12 15:27:47 -07:00
gdbasan.in
gdbhooks.py Remove first_pass_instance from pass_vrp 2015-11-16 12:40:05 +00:00
gdbinit.in
gen-pass-instances.awk Remove first_pass_instance from pass_vrp 2015-11-16 12:40:05 +00:00
genattr-common.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
genattr.c unconditionally compile most of the delay slot code 2015-10-21 21:05:02 +00:00
genattrtab.c [PATCH] Fix abort in write_eligible_delay 2015-10-22 13:18:05 -06:00
genautomata.c [PATCH 6/9] ENABLE_CHECKING refactoring: generators 2015-10-29 10:28:40 -06:00
gencfn-macros.c Replace match.pd DEFINE_MATH_FNs with auto-generated lists 2015-11-17 18:49:10 +00:00
gencheck.c
genchecksum.c
gencodes.c gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one. 2015-08-21 17:23:10 +00:00
genconditions.c ENABLE_CHECKING refactoring: remove remaining occurrences 2015-11-04 15:01:46 +00:00
genconfig.c always define HAVE_peephole2 2015-08-21 01:15:15 +00:00
genconstants.c
genemit.c re PR c/67819 (-Wduplicated-cond should take macros into account) 2015-10-02 17:49:15 +00:00
genenums.c
generic-match-head.c Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
generic-match.h
genextract.c [PATCH 6/9] ENABLE_CHECKING refactoring: generators 2015-10-29 10:28:40 -06:00
genflags.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
gengenrtl.c rtl.h (PUT_MODE_RAW): New macro. 2015-05-19 07:10:30 +00:00
gengtype-lex.l
gengtype-parse.c gengtype-parse.c (require_template_declaration): Allow '+' in template parameters. 2015-06-25 17:16:44 +00:00
gengtype-state.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
gengtype.c [PATCH 6/9] ENABLE_CHECKING refactoring: generators 2015-10-29 10:28:40 -06:00
gengtype.h [PATCH 6/9] ENABLE_CHECKING refactoring: generators 2015-10-29 10:28:40 -06:00
genhooks.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
genmatch.c Replace match.pd DEFINE_MATH_FNs with auto-generated lists 2015-11-17 18:49:10 +00:00
genmddeps.c
genmddump.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genmodes.c genmodes.c: Add CONST_MODE_UNIT_SIZE modifier. 2015-09-01 12:40:10 +00:00
genmultilib
genopinit.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
genoutput.c gensupport.c (sequence_num): Replace with... 2015-08-05 15:47:31 +00:00
genpeep.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genpreds.c read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
genrecog.c gensupport.h (get_c_test): Declare. 2015-08-05 15:46:02 +00:00
gensupport.c New obstack_next_free is not an lvalue 2015-11-09 14:47:53 +10:30
gensupport.h genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
gentarget-def.c genflags.c (gen_macro): Delete. 2015-08-24 17:59:51 +00:00
ggc-common.c ggc-common.c : Restore needed header for checking=release. 2015-10-31 10:57:33 +00:00
ggc-internal.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
ggc-none.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
ggc-page.c [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
ggc.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-builder.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-builder.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-expr.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
gimple-expr.h defer mark_addressable calls during expand till the end of expand 2015-11-03 03:57:07 +00:00
gimple-fold.c Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
gimple-fold.h Move fold_trunc_transparent_mathfn to match.pd 2015-10-23 10:01:47 +00:00
gimple-iterator.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-iterator.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-laddress.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
gimple-low.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-low.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-match-head.c Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
gimple-match.h Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
gimple-predict.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-pretty-print.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
gimple-pretty-print.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple-ssa-backprop.c Make more use of combined_fn 2015-11-17 18:43:42 +00:00
gimple-ssa-isolate-paths.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-ssa-split-paths.c [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
gimple-ssa-strength-reduction.c Fix various memory leaks 2015-11-11 11:21:44 +00:00
gimple-ssa.h [PATCH] Update SSA_NAME manager to use two lists 2015-09-30 11:43:26 -06:00
gimple-streamer-in.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-streamer-out.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-streamer.h gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
gimple-walk.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimple-walk.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimple.c Add a combined_fn enum 2015-11-17 18:34:47 +00:00
gimple.def builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
gimple.h Add a combined_fn enum 2015-11-17 18:34:47 +00:00
gimplify-me.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
gimplify-me.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gimplify.c gimplify.c (oacc_default_clause): Use inform for enclosing scope. 2015-11-13 13:47:50 +00:00
gimplify.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
glimits.h
godump.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
graph.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
graph.h
graphds.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
graphds.h
graphite-dependences.c add dump of data dependences 2015-10-10 14:53:16 +00:00
graphite-isl-ast-to-gimple.c Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c add original schedule to scop 2015-11-07 01:32:27 +00:00
graphite-poly.c Fix memory leaks in graphite 2015-11-13 12:28:54 +00:00
graphite-poly.h Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
graphite-scop-detection.c Fix memory leaks in graphite 2015-11-13 12:28:54 +00:00
graphite-scop-detection.h [graphite] fix pr61929 2015-07-17 16:34:21 +00:00
graphite-sese-to-poly.c Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
graphite-sese-to-poly.h move param detection to scop detection 2015-10-05 16:03:09 +00:00
graphite.c Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
gsstruct.def switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
gstab.h
gsyms.h remove EXTENDED_SDB_BASIC_TYPES 2015-11-15 00:17:43 +00:00
gsyslimits.h
gtm-builtins.def
haifa-sched.c [haifa-sched] PR rtl-optimization/68236: Exit early from autoprefetcher lookahead if not in haifa sched 2015-11-10 09:22:58 +00:00
hard-reg-set.h hash-table.h: Update comments. 2015-06-25 17:06:13 +00:00
hash-map-traits.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
hash-map.h * hash-map.h (hash_map::empty): New. 2015-11-13 17:24:30 -05:00
hash-set.h Add gencfn-macros.c 2015-11-17 18:41:55 +00:00
hash-table.c Fallout for new memory statistics infrastructure. 2015-06-16 13:24:54 +00:00
hash-table.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
hash-traits.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
highlev-plugin-common.h
hooks.c target.def (rtx_costs): Remove "code" param, add "mode". 2015-07-08 12:32:27 +09:30
hooks.h target.def (rtx_costs): Remove "code" param, add "mode". 2015-07-08 12:32:27 +09:30
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
hw-doloop.h
hwint.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
hwint.h Avoid signed left shift undefined behaviour in sext_hwi 2015-08-19 13:42:36 +00:00
ifcvt.c [optabs][ifcvt][1/3] Define negcc, notcc optabs 2015-11-10 09:35:11 +00:00
ifcvt.h
inchash.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
inchash.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
incpath.c alias.c: Reorder #include statements and remove duplicates. 2015-10-29 13:57:32 +00:00
incpath.h
init-regs.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
input.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
input.h Change of location_get_source_line signature 2015-09-15 16:53:01 +00:00
insn-addr.h
insn-notes.def insn-notes.def (UPDATE_SJLJ_CONTEXT): New note. 2015-05-19 09:33:27 +00:00
internal-fn.c Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
internal-fn.def Add internal bitcount functions 2015-11-17 18:40:31 +00:00
internal-fn.h Short-cut generation of simple built-in functions 2015-11-17 18:51:20 +00:00
intl.c
intl.h
ipa-chkp.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-chkp.h ipa-chkp.h (chkp_wrap_function): New. 2015-05-15 09:48:13 +00:00
ipa-comdats.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-cp.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
ipa-devirt.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-icf-gimple.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-icf-gimple.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
ipa-icf.c re PR ipa/68311 (gcc/ipa-icf.c:3041: possible sequence point error ?) 2015-11-13 12:26:23 +00:00
ipa-icf.h re PR ipa/68035 (ipa performance issue when no procedures are present) 2015-11-12 15:16:00 +00:00
ipa-inline-analysis.c Fix memory leaks in IPA. 2015-11-09 15:47:01 +00:00
ipa-inline-transform.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-inline.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-inline.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
ipa-polymorphic-call.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
ipa-profile.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-prop.c Fix memory leaks in IPA. 2015-11-09 15:47:01 +00:00
ipa-prop.h Fix memory leaks in IPA. 2015-11-09 15:47:01 +00:00
ipa-pure-const.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-ref.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-ref.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
ipa-reference.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-reference.h
ipa-split.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-utils.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa-utils.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
ipa-visibility.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ipa.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-build.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-color.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-conflicts.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-costs.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-emit.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira-int.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
ira-lives.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
ira.c re PR target/67265 ([x86] 'asm' operand has impossible constraints with -fstack-check) 2015-11-11 14:22:43 +00:00
ira.h Add alternative_mask to ira_implicitly_set_insn_hard_regs 2015-08-07 09:18:09 -07:00
is-a.h
jump.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
langhooks-def.h Merge debug-early branch into mainline. 2015-06-05 18:44:53 +00:00
langhooks.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
langhooks.h Merge debug-early branch into mainline. 2015-06-05 18:44:53 +00:00
lcm.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lcm.h
libfuncs.h hash-traits.h (ggc_hasher): Rename to... 2015-06-25 17:06:36 +00:00
limitx.h
limity.h
lists.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lock-and-run.sh
loop-doloop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
loop-init.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
loop-invariant.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
loop-iv.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
loop-unroll.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
loop-unroll.h
lower-subreg.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lower-subreg.h
lra-assigns.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lra-coalesce.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lra-constraints.c Add contains_symbol_ref_p 2015-10-30 23:56:32 +03:00
lra-eliminations.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lra-int.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
lra-lives.c re PR rtl-optimization/68287 (conditional jump or move depends on uninitialized value in lra-lives.c:1048) 2015-11-11 14:04:47 +00:00
lra-remat.c re PR rtl-optimization/68106 (c-c++-common/torture/builtin-arith-overflow-11.c FAILs with -flra-remat @ aarch64) 2015-10-30 17:45:16 +00:00
lra-spills.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lra.c tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. 2015-11-06 13:45:54 +00:00
lra.h
lto-cgraph.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-compress.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-compress.h
lto-opts.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-section-in.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-section-names.h
lto-section-out.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-streamer-in.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-streamer-out.c lto-streamer-out.c (write_global_references): Adjust integer type. 2015-11-16 14:13:37 -07:00
lto-streamer.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
lto-streamer.h re PR lto/67568 (lto-streamer-in.c sanitizer runtime error: load of value 255, which is not a valid value for type 'bool') 2015-09-15 08:00:30 +00:00
lto-wrapper.c Fix big memory leak in ix86_valid_target_attribute_p 2015-11-12 15:50:05 +00:00
machmode.def
machmode.h genmodes.c (emit_mode_unit_size_inline): New function. 2015-08-19 15:23:11 +00:00
main.c Refactoring of timevar API 2015-08-03 20:14:21 +00:00
match.pd Replace match.pd DEFINE_MATH_FNs with auto-generated lists 2015-11-17 18:49:10 +00:00
mcf.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
mem-stats-traits.h Fix BITMAP identifier clash. 2015-06-10 07:57:34 +00:00
mem-stats.h hash-map-traits.h (simple_hashmap_traits::key_type): New typedef. 2015-06-25 17:17:20 +00:00
memory-block.cc Share memory blocks between pool allocators 2015-09-16 00:56:54 +00:00
memory-block.h Fix use of valgrind API 2015-09-23 02:31:14 +00:00
mkconfig.sh
mode-classes.def
mode-switching.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
modulo-sched.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
multiple_target.c multiple_target.c (create_dispatcher_calls): Add target check on ifunc. 2015-11-03 12:02:53 +00:00
omp-builtins.def c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
omp-low.c Add __attribute__((__simd__)) to GCC. 2015-11-16 13:14:57 +00:00
omp-low.h omp-low.h (replace_oacc_fn_attrib, [...]): Declare. 2015-11-10 00:27:26 +00:00
opt-functions.awk options.texi (EnabledBy): Document that the argument must be a Common option. 2015-08-09 19:30:17 +00:00
opt-gather.awk
opt-include.awk
opt-read.awk
optabs-libfuncs.c Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-libfuncs.h Split up optabs.[hc] 2015-09-17 14:28:59 +00:00
optabs-query.c internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes. 2015-11-10 12:06:05 +00:00
optabs-query.h optabs-query.h (get_vcond_mask_icode): New. 2015-11-10 12:14:19 +00:00
optabs-tree.c optabs-query.h (get_vcond_mask_icode): New. 2015-11-10 12:14:19 +00:00
optabs-tree.h expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results. 2015-11-10 11:57:34 +00:00
optabs.c optabs.c (expand_binop_directly): Allow scalar mode for vec_pack_trunc_optab. 2015-11-10 12:17:30 +00:00
optabs.def optabs-query.h (get_vcond_mask_icode): New. 2015-11-10 12:14:19 +00:00
optabs.h expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results. 2015-11-10 11:57:34 +00:00
optc-gen.awk options.texi (EnabledBy): Document that the argument must be a Common option. 2015-08-09 19:30:17 +00:00
optc-save-gen.awk
opth-gen.awk opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't include input.h. 2015-07-15 19:50:23 +00:00
opts-common.c fdiagnostics-color=never does not disable color for some diagnostics 2015-09-24 16:37:43 +00:00
opts-diagnostic.h
opts-global.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
opts.c [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
opts.h Fix big memory leak in ix86_valid_target_attribute_p 2015-11-12 15:50:05 +00:00
output.h remove conditional compilation of sdb debug info 2015-11-15 00:17:51 +00:00
params-enum.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params-list.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params.c Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
params.def [PATCH] Make disabled-optimization warning more informative; increase default max-gcse-memory 2015-11-12 15:27:47 -07:00
params.h Support DEFPARAMENUM in params.def 2015-10-13 10:08:50 +00:00
pass_manager.h Remove first_pass_instance from pass_vrp 2015-11-16 12:40:05 +00:00
passes.c Remove first_pass_instance 2015-11-16 12:40:50 +00:00
passes.def Remove first_pass_instance from pass_ccp 2015-11-16 12:40:41 +00:00
plugin.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
plugin.def plugins.texi (enum plugin_event): New event. 2015-06-03 07:27:11 -06:00
plugin.h gcc-plugin.h: Move decls to plugin.h and include it. 2015-06-09 17:53:24 +00:00
postreload-gcse.c tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. 2015-11-06 13:45:54 +00:00
postreload.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
predict.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
pretty-print.h Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
print-rtl.c [PATCH] Move RTL printing code from sched-vis.c into print-rtl.c 2015-10-20 23:56:37 -06:00
print-rtl.h [sched] Dump dependency graph to a dot file 2015-11-09 16:29:36 -07:00
print-tree.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
print-tree.h
profile.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
profile.h
read-md.c re PR other/57195 (Mode attributes with specific mode iterator can not be used as mode iterators in *.md files) 2015-09-24 23:26:50 +00:00
read-md.h read-md.h (message_with_line, [...]): Delete. 2015-07-16 13:52:22 +00:00
read-rtl.c remove many typedefs 2015-10-01 15:12:31 +00:00
real.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
real.h Allow real_format to be passed to more real.h functions 2015-10-30 13:45:42 +00:00
realmpfr.c Move constant folds for maths functions to new file 2015-11-02 16:34:16 +00:00
realmpfr.h Move constant folds for maths functions to new file 2015-11-02 16:34:16 +00:00
recog.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
recog.h gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one. 2015-08-21 17:23:10 +00:00
ree.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
reg-notes.def
reg-stack.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
regcprop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
regcprop.h
reginfo.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
regrename.c Tighten up checks when tying chains. 2015-11-11 10:36:00 +00:00
regrename.h Tie chains for move instructions. 2015-11-10 09:12:52 +00:00
regs.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
regset.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
regstat.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
reload.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
reload.h
reload1.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
reorg.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
resource.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
resource.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
rtl-chkp.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
rtl-chkp.h
rtl-error.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
rtl-error.h
rtl-iter.h
rtl.c rtl.h (rtvec_all_equal_p): Declare. 2015-08-20 19:04:34 +00:00
rtl.def rtl.def (REG): Change format to "r". 2015-05-19 07:09:42 +00:00
rtl.h re PR debug/66728 (CONST_WIDE_INT causes corrupted DWARF debug info) 2015-11-06 20:16:06 +00:00
rtlanal.c Add contains_symbol_ref_p 2015-10-30 23:56:32 +03:00
rtlhash.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
rtlhash.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
rtlhooks-def.h
rtlhooks.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sanitizer.def libsanitizer merge from upstream r250806, compiler part. 2015-10-21 10:40:54 +03:00
sanopt.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sbitmap.c
sbitmap.h Fix double word typos. 2015-07-13 04:46:34 +00:00
sched-deps.c tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor. 2015-11-06 13:45:54 +00:00
sched-ebb.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sched-int.h [sched] Dump dependency graph to a dot file 2015-11-09 16:29:36 -07:00
sched-rgn.c [sched] Dump dependency graph to a dot file 2015-11-09 16:29:36 -07:00
sdbout.c PR 68366 - include emit-rtl.h in sdbout.c 2015-11-16 02:28:15 +00:00
sdbout.h
sel-sched-dump.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sel-sched-dump.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
sel-sched-ir.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sel-sched-ir.h Add new object_allocator and clean-up allocator usage. 2015-07-16 11:26:05 +00:00
sel-sched.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sel-sched.h
sese.c Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
sese.h Preserve the original program while using graphite. 2015-11-12 00:37:47 +00:00
shrink-wrap.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
shrink-wrap.h shrink-wrap: Handle multiple predecessors of prologue 2015-09-22 22:50:38 +02:00
signop.h remove more useless typedefs 2015-08-19 02:48:48 +00:00
simplify-rtx.c simplify-rtx: Simplify sign_extend of lshiftrt to zero_extend (PR68330) 2015-11-16 16:51:33 +01:00
sparseset.c
sparseset.h
spellcheck-tree.c PR driver/67613 - spell suggestions for misspelled command line options 2015-11-13 01:59:03 +00:00
spellcheck.c PR driver/67613 - spell suggestions for misspelled command line options 2015-11-13 01:59:03 +00:00
spellcheck.h PR driver/67613 - spell suggestions for misspelled command line options 2015-11-13 01:59:03 +00:00
sreal.c
sreal.h
ssa-iterators.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
ssa.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
stab.def
stack-ptr-mod.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
statistics.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
statistics.h
stmt.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
stmt.h Promote types of RTL expressions to more derived ones. 2015-05-20 19:39:42 +00:00
stor-layout.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
stor-layout.h
store-motion.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
streamer-hooks.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
streamer-hooks.h
stringpool.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
stringpool.h
symbol-summary.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
symtab.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
sync-builtins.def
system.h remove EXTENDED_SDB_BASIC_TYPES 2015-11-15 00:17:43 +00:00
target-def.h Makefile.in (TARGET_DEF): Add target-insns.def. 2015-06-25 17:18:12 +00:00
target-globals.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
target-globals.h
target-hooks-macros.h
target-insns.def internal-fn.def (IFN_GOACC_DIM_SIZE, [...]): New. 2015-10-27 23:46:39 +00:00
target.def Machine modes for address printing. 2015-11-09 12:16:55 +00:00
target.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
targhooks.c re PR middle-end/68134 (float64x1_t comparison ICE on aarch64-none-elf) 2015-11-17 13:22:40 +00:00
targhooks.h Machine modes for address printing. 2015-11-09 12:16:55 +00:00
timevar.c common.opt (fchecking): New flag controlling flag_checking. 2015-10-28 10:07:03 +00:00
timevar.def [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
timevar.h Refactoring of timevar API 2015-08-03 20:14:21 +00:00
tlink.c coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
toplev.c remove conditional compilation of sdb debug info 2015-11-15 00:17:51 +00:00
toplev.h Move check_global_declaration from toplev.c to cgraphunit.c 2015-09-16 21:25:28 +00:00
tracer.c [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
tracer.h [Patch,tree-optimization]: Add new path Splitting pass on tree ssa 2015-11-13 16:31:51 -07:00
trans-mem.c Handle internal functions in is_tm_pure_call 2015-11-07 10:19:56 +00:00
trans-mem.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-affine.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-affine.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
tree-call-cdce.c PR68264: Use unordered comparisons for tree-call-cdce.c 2015-11-13 14:43:38 +00:00
tree-cfg.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
tree-cfg.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-cfgcleanup.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-cfgcleanup.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-chkp-opt.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-chkp.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-chkp.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-chrec.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-chrec.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-complex.c Add non-folding variants for convert_to_*. 2015-11-13 17:24:45 -05:00
tree-core.h Add a combined_fn enum 2015-11-17 18:34:47 +00:00
tree-data-ref.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-data-ref.h move dr->alias_set to a helper structure 2015-10-06 20:50:35 +00:00
tree-dfa.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-dfa.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-diagnostic.c Reimplement diagnostic_show_locus, introducing rich_location classes 2015-11-06 19:50:50 +00:00
tree-diagnostic.h
tree-dump.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-dump.h
tree-eh.c Fix memory leaks and use a pool_allocator 2015-11-09 15:45:59 +00:00
tree-eh.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-emutls.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-hash-traits.h tree-hash-traits.h (tree_operand_hash): Provide equal, not equal_keys. 2015-11-06 09:46:17 +00:00
tree-hasher.h coretypes.h: Include hash-table.h and hash-set.h for host files. 2015-06-08 21:06:50 +00:00
tree-if-conv.c Relax trap assumptions in tree if convert. 2015-11-17 07:41:08 +00:00
tree-inline.c Source range tracking in libcpp and C FE, with bit-packing optimization 2015-11-13 16:29:59 +00:00
tree-inline.h [tree-inline][obvious] Delete redundant count_insns_seq 2015-09-24 08:25:13 +00:00
tree-into-ssa.c [PATCH] Minor refactoring in tree-ssanames.c & freelists verifier 2015-11-09 02:02:27 -07:00
tree-into-ssa.h [PATCH] Minor refactoring in tree-ssanames.c & freelists verifier 2015-11-09 02:02:27 -07:00
tree-iterator.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-iterator.h
tree-loop-distribution.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-nested.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-nested.h tree-nested.h (build_addr): Adjust prototype. 2015-10-16 07:45:09 +00:00
tree-nrv.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-object-size.c Remove first_pass_instance from pass_object_sizes 2015-11-16 12:40:33 +00:00
tree-object-size.h
tree-outof-ssa.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-outof-ssa.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-parloops.c Make create_parallel_loop return void 2015-11-11 20:22:22 +00:00
tree-parloops.h
tree-pass.h Remove first_pass_instance 2015-11-16 12:40:50 +00:00
tree-phinodes.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-phinodes.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-predcom.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-pretty-print.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
tree-pretty-print.h coretypes.h: Include machmode.h... 2015-06-04 17:49:54 +00:00
tree-profile.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-scalar-evolution.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-scalar-evolution.h re PR testsuite/52563 (FAIL: gcc.dg/tree-ssa/scev-[3,4].c scan-tree-dump-times optimized "&a" 1) 2015-06-02 03:33:35 +00:00
tree-sra.c Fix various memory leaks 2015-11-11 11:21:44 +00:00
tree-ssa-address.c re PR tree-optimization/66768 (address space gets lost on literal pointer) 2015-11-09 01:18:16 -08:00
tree-ssa-address.h
tree-ssa-alias.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-alias.h re PR fortran/67170 (PRE can't hoist out a readonly argument) 2015-09-29 13:04:18 +00:00
tree-ssa-ccp.c Remove first_pass_instance from pass_ccp 2015-11-16 12:40:41 +00:00
tree-ssa-coalesce.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-coalesce.h revert to assign_parms assignments using default defs 2015-09-27 09:02:00 +00:00
tree-ssa-copy.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-dce.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-dom.c Remove first_pass_instance from pass_dominator 2015-11-16 12:40:24 +00:00
tree-ssa-dom.h [PATCH] Fix 47679 by improving jump threading 2015-09-20 00:37:39 -06:00
tree-ssa-dse.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-forwprop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-ifcombine.c ifcombine: factor out inner block viability test 2015-11-03 00:31:18 +00:00
tree-ssa-live.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-live.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
tree-ssa-loop-ch.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop-im.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop-ivcanon.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop-ivopts.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c ENABLE_CHECKING refactoring: remove remaining occurrences 2015-11-04 15:01:46 +00:00
tree-ssa-loop-manip.h [PATCH 7/9] ENABLE_CHECKING refactoring: middle-end, LTO FE 2015-10-27 19:05:53 -06:00
tree-ssa-loop-niter.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop-niter.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-ssa-loop-prefetch.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop-unswitch.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-loop.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-ssa-math-opts.c Use combined_fn in tree-ssa-math-opts.c 2015-11-17 18:45:41 +00:00
tree-ssa-operands.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-operands.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-ssa-phionlycprop.c switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-ssa-phiopt.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-phiprop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-pre.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-propagate.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-propagate.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-ssa-reassoc.c Use combined_fn in tree-ssa-reassoc.c 2015-11-17 18:45:20 +00:00
tree-ssa-sccvn.c re PR tree-optimization/68240 (compilation hangs on valid code at -O1 and above on x86_64-linux-gnu) 2015-11-10 10:14:02 +00:00
tree-ssa-sccvn.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-scopedtables.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-scopedtables.h [PATCH] Remove unnecessary invalidation support in threading 2015-10-29 14:37:01 -06:00
tree-ssa-sink.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-strlen.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-structalias.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tree-ssa-tail-merge.c tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and add OEP_MATCH_SIDE_EFFECTS. 2015-11-06 17:24:28 +00:00
tree-ssa-ter.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-ter.h
tree-ssa-threadbackward.c [PATCH][PR tree-optimization/67892] Use FSM threader to handle backedges 2015-10-29 10:20:06 -06:00
tree-ssa-threadbackward.h [PATCH][PR tree-optimization/67892] Use FSM threader to handle backedges 2015-10-29 10:20:06 -06:00
tree-ssa-threadedge.c [PATCH] Remove more backedge threading support 2015-11-06 23:31:14 -07:00
tree-ssa-threadedge.h switch from gimple to gimple* 2015-09-20 00:52:59 +00:00
tree-ssa-threadupdate.c Fix memory leaks and use a pool_allocator 2015-11-09 15:45:59 +00:00
tree-ssa-threadupdate.h Fix memory leaks and use a pool_allocator 2015-11-09 15:45:59 +00:00
tree-ssa-uncprop.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa-uninit.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-ssa.c [PR68083] don't introduce undefined behavior in ifcombine 2015-11-03 00:30:07 +00:00
tree-ssa.h [PR68083] don't introduce undefined behavior in ifcombine 2015-11-03 00:30:07 +00:00
tree-ssanames.c Re: [PATCH] Minor refactoring in tree-ssanames.c & freelists verifier 2015-11-09 12:56:57 -07:00
tree-ssanames.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
tree-stdarg.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-stdarg.h
tree-streamer-in.c re PR middle-end/68251 (sorry, unimplemented: reverse storage order for BLKmode) 2015-11-09 12:14:07 +00:00
tree-streamer-out.c re PR middle-end/68251 (sorry, unimplemented: reverse storage order for BLKmode) 2015-11-09 12:14:07 +00:00
tree-streamer.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-streamer.h gimple-pretty-print.h: Don't include pretty-print.h. 2015-07-15 19:57:03 +00:00
tree-switch-conversion.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-tailcall.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-vect-data-refs.c re PR tree-optimization/68306 (ICE: in vectorizable_store, at tree-vect-stmts.c:5651) 2015-11-16 15:04:00 +00:00
tree-vect-generic.c re PR tree-optimization/58497 (SLP vectorizes identical operations) 2015-11-12 09:00:37 +00:00
tree-vect-loop-manip.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
tree-vect-loop.c tree-vect-loop.c (vect_determine_vectorization_factor): Check mix of boolean and integer vectors in a single statement. 2015-11-13 11:45:25 +00:00
tree-vect-patterns.c Use combined_fn in tree-vect-patterns.c 2015-11-17 18:46:22 +00:00
tree-vect-slp.c PR/67682, break SLP groups up if only some elements match 2015-11-13 16:12:52 +00:00
tree-vect-stmts.c re PR tree-optimization/68306 (ICE: in vectorizable_store, at tree-vect-stmts.c:5651) 2015-11-13 12:14:57 +00:00
tree-vectorizer.c omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_* internal calls - 0 if... 2015-11-14 19:42:13 +01:00
tree-vectorizer.h Optimize condition reductions where the result is an integer induction variable 2015-11-13 10:51:34 +00:00
tree-vrp.c Use combined_fn in tree-vrp.c 2015-11-17 18:44:22 +00:00
tree.c Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
tree.def fold-const.c (fold_convert_const): Fold changing cv-quals on VECTOR_CST. 2015-11-13 17:24:39 -05:00
tree.h Add genmatch support for internal functions 2015-11-17 18:47:44 +00:00
treestruct.def
tsan.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
tsan.h
tsystem.h
typeclass.h
typed-splay-tree.h jit: add switch statements 2015-06-30 20:39:50 +00:00
ubsan.c Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
ubsan.h
valtrack.c Fix double word typos. 2015-07-13 04:46:34 +00:00
valtrack.h tree-core.h: Include symtab.h. 2015-07-08 00:53:03 +00:00
value-prof.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
value-prof.h cfg.c (free_edge): Add function argument and use it instead of cfun. 2015-10-27 08:56:03 +00:00
var-tracking.c Fix various memory leaks 2015-11-11 11:21:44 +00:00
varasm.c always define TARGET_PECOFF 2015-11-15 00:17:56 +00:00
varasm.h Merge of the scalar-storage-order branch. 2015-11-08 18:33:42 +00:00
varpool.c always define ENABLE_OFFLOADING 2015-11-15 00:18:08 +00:00
vec.c coretypes.h: Include input.h and as-a.h. 2015-06-17 14:58:44 +00:00
vec.h Fix double word typos. 2015-07-13 04:46:34 +00:00
version.c
version.h
vmsdbg.h
vmsdbgout.c [PATCH] Fix vms targets 2015-11-01 22:27:14 -07:00
vtable-verify.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
vtable-verify.h re PR bootstrap/66521 (xgcc: cc1plus segfaults when compiling libstdc++-v3/src/c++11/ostream-inst.cc) 2015-08-01 18:17:39 -07:00
web.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
wide-int-print.cc alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
wide-int-print.h coretypes.h: Include machmode.h... 2015-06-04 17:49:54 +00:00
wide-int.cc alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
wide-int.h builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
xcoff.h
xcoffout.c alias.c: Remove unused headers. 2015-10-30 15:48:59 +00:00
xcoffout.h

README.Portability

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

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

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

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

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


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

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

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

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

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


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

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

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

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

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

needs to be coded in some other way.


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

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

  if (P)
    free (P);

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

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

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



Trigraphs
---------

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


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

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


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

errno
-----

errno might be declared as a macro.


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

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

  unsigned variable;

as shorthand for

  unsigned int variable;

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

  (unsigned) variable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

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

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

o Passing incorrect types to fprintf and friends.

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