gcc/gcc
Joseph Myers 2079956a87 Predefine __NO_MATH_ERRNO__ for -fno-math-errno.
This patch adds a predefined macro __NO_MATH_ERRNO__ for when
-fno-math-errno is passed or implied.  This allows math.h to provide a
more accurate definition of the C99 math_errhandling macro that takes
this option into account, and allows for choice of libm functions to
be optimized at compile time based on this option.

(There may be a case for such interfaces for -fno-rounding-math
(default) and -fno-trapping-math as well, but as C99 standard pragmas
would allow those to vary on a per-block basis, predefined macros
would be problematic as the interface; you can't select a
-fno-trapping-math or -fno-rounding-math version of a function in a
standard header if a conforming program could then use "#pragma STDC
FENV_ACCESS ON" to require a -ftrapping-math -frounding-math version
in a particular block.  So built-in functions might be a better way of
providing access to information about those options.)

Bootstrapped with no regressions on x86_64-unknown-linux-gnu.  OK to
commit?

	* cppbuiltin.c (define_builtin_macros_for_compilation_flags):
	Define __NO_MATH_ERRNO__ if -fno-math-errno.
	* doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.

c-family:
	* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
	undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.

testsuite:
	* gcc.dg/no-math-errno-1.c, gcc.dg/no-math-errno-2.c,
	gcc.dg/no-math-errno-3.c, gcc.dg/no-math-errno-4.c: New tests.

From-SVN: r217420
2014-11-12 13:33:45 +00:00
..
ada re PR ada/42978 (gnatmake doesn't report the options it actually provides to ranlib) 2014-11-11 11:58:26 +00:00
c tree-core.h (pedantic_lvalues): Remove. 2014-11-11 15:21:12 +00:00
c-family Predefine __NO_MATH_ERRNO__ for -fno-math-errno. 2014-11-12 13:33:45 +00:00
common Add the nvptx port. 2014-11-10 16:12:42 +00:00
config re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
cp re PR c++/63265 (Constexpr variables can trigger spurious compiler warnings) 2014-11-11 17:34:12 +00:00
doc Predefine __NO_MATH_ERRNO__ for -fno-math-errno. 2014-11-12 13:33:45 +00:00
fortran re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-11-11 22:50:48 +00:00
ginclude C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
go compiler: Logical operators should yield untyped bool for untyped operands. 2014-11-04 17:49:01 +00:00
java Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
lto ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
objc cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
objcp
po
testsuite Predefine __NO_MATH_ERRNO__ for -fno-math-errno. 2014-11-12 13:33:45 +00:00
ABOUT-GCC-NLS
BASE-VER BASE-VER: Change to 5.0.0 2014-08-14 13:58:50 +00:00
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog Predefine __NO_MATH_ERRNO__ for -fno-math-errno. 2014-11-12 13:33:45 +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.dataflow
ChangeLog.graphite
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2014-11-12 00:16:31 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in [AArch64] Add reference to ACLE and consolidate documentation. 2014-11-12 08:42:41 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4 Let GDB reuse GCC's parser. 2014-10-27 17:21:42 +00:00
addresses.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
alias.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
alias.h
alloc-pool.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
alloc-pool.h
asan.c Makefile.in (OBJS): Add sanopt.o. 2014-11-04 19:43:01 +00:00
asan.h Makefile.in (OBJS): Add sanopt.o. 2014-11-04 19:43:01 +00:00
attribs.c Remove a layer of indirection from hash_table 2014-06-24 13:21:35 +00:00
attribs.h
auto-inc-dec.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
auto-profile.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
auto-profile.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
basic-block.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
bb-reorder.c Make a temporary sequence for a jump emitted only to examine its length. 2014-11-04 15:25:37 +00:00
bb-reorder.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
bitmap.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
bitmap.h
bt-load.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
builtin-attrs.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtin-types.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
caller-save.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
calls.c re PR bootstrap/63573 (libgo: ICE building libgo on powerpc-linux-gnu) 2014-11-10 19:14:17 +00:00
calls.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cfg-flags.def
cfg.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfg.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfganal.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfganal.h cfg.h: New. 2014-10-21 15:17:12 +00:00
cfgbuild.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfgbuild.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgcleanup.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfgcleanup.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgexpand.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cfgexpand.h
cfghooks.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfghooks.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgloop.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfgloop.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cfgloopanal.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfgloopmanip.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
cfgloopmanip.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgrtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cfgrtl.h cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
cgraph.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cgraph.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cgraphbuild.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cgraphclones.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
cgraphunit.c re PR ipa/63580 (ICE : error: invalid argument to gimple call) 2014-11-07 13:37:41 +00:00
chkp-builtins.def ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cif-code.def
cilk-builtins.def cilk-builtins.def (__cilkrts_cilk_for_32): New. 2014-09-02 12:52:29 +00:00
cilk-common.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
cilk.h cilk-builtins.def (__cilkrts_cilk_for_32): New. 2014-09-02 12:52:29 +00:00
cilkplus.def
collect-utils.c Part 2 of the collect-utils library, now also used for collect2. 2014-06-26 09:16:28 +00:00
collect-utils.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
collect2-aix.c
collect2-aix.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
collect2.c Fix bootstrap/PR63632 2014-10-24 06:39:24 +00:00
collect2.h Part 2 of the collect-utils library, now also used for collect2. 2014-06-26 09:16:28 +00:00
combine-stack-adj.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
combine.c Don't combine calls into i3, it wouldn't be changed into a CALL_INSN. 2014-11-06 17:19:57 +00:00
common.md common.md: New file. 2014-06-11 16:59:17 +00:00
common.opt Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
compare-elim.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
conditions.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
config.build
config.gcc Bug target/61997 2014-11-11 15:40:03 -08:00
config.host
config.in Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV for powerpc*-*-linux* soft-float and e500. 2014-11-03 13:40:50 +00:00
configure Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
configure.ac Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
context.c
context.h
convert.c genmatch.c (capture_info::walk_c_expr): Ignore capture uses inside TREE_TYPE (). 2014-10-30 15:36:05 +00:00
convert.h
coretypes.h gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
coverage.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
coverage.h Make FDO more tolerant to source changes 2014-07-26 00:06:56 +00:00
cppbuiltin.c Predefine __NO_MATH_ERRNO__ for -fno-math-errno. 2014-11-12 13:33:45 +00:00
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cse.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cselib.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cselib.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
cstamp-h.in
data-streamer-in.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
data-streamer-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
data-streamer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
data-streamer.h data-streamer.h (streamer_string_index, [...]): Remove. 2014-08-15 07:51:35 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
dbxout.h
dce.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
dce.h
ddg.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ddg.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
debug.c Revert incorrect merging of debug-early branch. 2014-09-04 18:04:14 +00:00
debug.h Revert incorrect merging of debug-early branch. 2014-09-04 18:04:14 +00:00
defaults.h [Patch 1/7] Hookize *_BY_PIECES_P 2014-11-01 08:13:09 +00:00
df-core.c rtl.h (rtx_function, [...]): Delete. 2014-11-12 09:05:29 +00:00
df-problems.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
df-scan.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
df.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
dfp.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
dfp.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h re PR driver/36312 (should refuse to overwrite input file with output file) 2014-11-11 23:33:25 +00:00
diagnostic.c re PR driver/36312 (should refuse to overwrite input file with output file) 2014-11-11 23:33:25 +00:00
diagnostic.def
diagnostic.h re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-08-21 00:27:25 +00:00
dojump.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
dominance.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
dominance.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
domwalk.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
domwalk.h
double-int.c
double-int.h
dse.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
dumpfile.c invoke.texi: Fix typo. 2014-06-26 17:45:52 +00:00
dumpfile.h
dwarf2asm.c cppbuiltin.c (define_builtin_macros_for_type_sizes): Round pointer size up to a power of two. 2014-08-29 19:35:12 -04:00
dwarf2asm.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
dwarf2cfi.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
dwarf2out.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
dwarf2out.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
emit-rtl.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
emit-rtl.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
errors.c
errors.h
et-forest.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
et-forest.h
except.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
except.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
exec-tool.in
explow.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
expmed.c expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to bswaphi if available. 2014-11-10 17:18:23 +00:00
expmed.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
expr.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
expr.h re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
file-find.c Add -B support to gcc-ar/ranlib/nm 2014-09-01 16:41:17 +00:00
file-find.h Add -B support to gcc-ar/ranlib/nm 2014-09-01 16:41:17 +00:00
final.c Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
fixed-value.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
fixed-value.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
flag-types.h Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
flags.h
fold-const.c tree-core.h (pedantic_lvalues): Remove. 2014-11-11 15:21:12 +00:00
fold-const.h re PR middle-end/61762 (failure to optimize memcpy from constant string) 2014-07-25 07:44:57 +00:00
fp-test.c
function.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
function.h Make thread_prologue_and_epilogue_insns callable from backends. 2014-11-10 16:12:30 +00:00
fwprop.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gcc-ar.c Add -B support to gcc-ar/ranlib/nm 2014-09-01 16:41:17 +00:00
gcc-plugin.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
gcc-symtab.h
gcc.c re PR driver/36312 (should refuse to overwrite input file with output file) 2014-11-11 23:33:25 +00:00
gcc.h
gcov-counter.def Makefile.in: Fix dependence. 2014-10-07 04:02:31 +00:00
gcov-dump.c Add gcov-tool: an offline gcda profile processing tool Support. 2014-07-11 05:48:07 +00:00
gcov-io.c libgcov.h: Move renaming of entry points to lib gcov specific portion. 2014-07-29 13:48:38 +00:00
gcov-io.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
gcov-iov.c
gcov-tool.c Add overlap functionality to gcov-tool. 2014-10-08 21:51:41 +00:00
gcov.c
gcse.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gcse.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
gdbasan.in
gdbhooks.py gdbhooks.py: add "break-on-pass" command 2014-08-05 21:01:47 +00:00
gdbinit.in gdbinit.in: Skip various inline functions in rtl.h when stepping 2014-08-29 20:20:17 +00:00
gen-pass-instances.awk
genattr-common.c
genattr.c md.texi: Document "preferred_for_size" and "preferred_for_speed" attributes. 2014-10-22 12:02:11 +00:00
genattrtab.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
genautomata.c gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
gencheck.c
genchecksum.c
gencodes.c
genconditions.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
genconfig.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
genconstants.c
genemit.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
genenums.c
generic-match-head.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
generic-match.h genmatch.c (expr::gen_transform): Use fold_buildN_loc and build_call_expr_loc. 2014-10-24 11:00:08 +00:00
genextract.c insn_extract takes an rtx_insn 2014-09-10 14:35:16 +00:00
genflags.c
gengenrtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
gengtype.h gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
genhooks.c
genmatch.c genmatch.c (::gen_transform): Add capture_info and expand_compares arguments. 2014-11-12 12:49:14 +00:00
genmddeps.c
genmddump.c
genmodes.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
genmultilib
genopinit.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
genoutput.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
genpeep.c genpeep.c: peephole requires an rtx_insn 2014-08-22 16:50:40 +00:00
genpreds.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
genrecog.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gensupport.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gensupport.h
ggc-common.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
ggc-internal.h
ggc-none.c
ggc-page.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ggc.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-builder.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-builder.h
gimple-expr.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-expr.h
gimple-fold.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
gimple-fold.h re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
gimple-iterator.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
gimple-iterator.h re PR tree-optimization/62112 (Optimize out malloc when block is unused or write-only) 2014-08-21 09:32:21 +00:00
gimple-low.c gimple-low.c (lower_function_body): Clear the location of the first inserted representative return if... 2014-11-10 08:53:16 +00:00
gimple-low.h
gimple-match-head.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-match.h Makefile.in (OBJS): Add gimple-match.o and generic-match.o. 2014-10-22 08:42:37 +00:00
gimple-pretty-print.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
gimple-pretty-print.h
gimple-ssa-isolate-paths.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-ssa-strength-reduction.c genmatch.c (capture_info::walk_c_expr): Ignore capture uses inside TREE_TYPE (). 2014-10-30 15:36:05 +00:00
gimple-ssa.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-streamer-in.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
gimple-streamer-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
gimple-streamer.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-walk.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimple-walk.h add a hash_set based on hash_table 2014-08-02 11:23:49 +00:00
gimple.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
gimple.def
gimple.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
gimplify-me.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
gimplify-me.h
gimplify.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
gimplify.h
glimits.h
godump.c godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support with -fdump-go-spec. 2014-11-04 00:00:14 +00:00
graph.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
graph.h
graphds.c
graphds.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
graphite-blocking.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-dependences.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-interchange.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
graphite-isl-ast-to-gimple.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
graphite-isl-ast-to-gimple.h Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o. 2014-06-29 14:20:35 +00:00
graphite-optimize-isl.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
graphite-poly.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-poly.h Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-scop-detection.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-scop-detection.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
graphite-sese-to-poly.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
graphite-sese-to-poly.h
graphite.c Makefile.in: Remove the compilation of graphite-clast-to-gimple.o. 2014-11-10 20:32:31 +00:00
gsstruct.def
gstab.h
gsyms.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
gsyslimits.h
gtm-builtins.def
haifa-sched.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
hard-reg-set.h hard-reg-set.h: Include hash-table.h. 2014-09-22 07:38:12 +00:00
hash-map.h genmatch.c: Remove <map>, <utility> and <string> includes. 2014-10-30 15:41:45 +00:00
hash-set.h support ggc hash_map and hash_set 2014-09-02 22:46:00 +00:00
hash-table.c hash-table.c: Include bconfig.h if building for the host. 2014-10-15 09:55:19 +00:00
hash-table.h re PR middle-end/63819 (Cannot build compiler with --enable-gather-detailed-mem-stats (error: default argument given for parameter 5 of ‘void* ggc_internal_cleared_alloc)) 2014-11-12 10:12:47 +00:00
highlev-plugin-common.h
hooks.c Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
hooks.h Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
hw-doloop.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
hwint.c
hwint.h
ifcvt.c revert: ifcvt.c (noce_emit_cmove, [...]): Allow CC mode if HAVE_cbranchcc4. 2014-11-04 02:21:51 +00:00
ifcvt.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
inchash.c Add an abstract incremental hash data type 2014-07-25 13:39:05 +00:00
inchash.h Change inchash to name space. 2014-08-01 02:51:46 +00:00
incpath.c re PR preprocessor/51303 (-Wmissing-include-dirs warnings reported as [enabled by default]) 2014-08-19 22:52:02 +00:00
incpath.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
init-regs.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
input.c input.c (expand_location_to_spelling_point): Fix typo. 2014-11-03 22:57:33 +00:00
input.h input.h (in_system_header_at): Add comment. 2014-08-15 16:27:38 +00:00
insn-addr.h Make insn_addresses_new require an rtx_insn 2014-08-29 00:07:51 +00:00
insn-notes.def
internal-fn.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
internal-fn.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
internal-fn.h Added fnspec to internal functions. 2014-08-11 06:06:29 +00:00
intl.c
intl.h
ipa-chkp.c re PR bootstrap/63699 (Bootstrap fails in libcc1 on darwin14) 2014-11-11 09:20:07 +00:00
ipa-chkp.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa-comdats.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-cp.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa-devirt.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-icf-gimple.c ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo. 2014-11-11 00:08:08 +01:00
ipa-icf-gimple.h re PR tree-optimization/63574 (ICE building libjava (segfault) on arm-linux-gnueabihf) 2014-10-30 10:10:58 +00:00
ipa-icf.c re PR bootstrap/63622 (Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305) 2014-11-11 14:58:21 +00:00
ipa-icf.h re PR bootstrap/63622 (Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305) 2014-11-11 14:58:21 +00:00
ipa-inline-analysis.c builtins.c (fold_builtin_atomic_always_lock_free): Use CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where approprate. 2014-10-31 16:26:43 +00:00
ipa-inline-transform.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-inline.c c++ify sreal 2014-11-11 02:31:00 +00:00
ipa-inline.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-polymorphic-call.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-profile.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-prop.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-prop.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-pure-const.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa-ref.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-ref.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa-reference.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-reference.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-split.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa-utils.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-utils.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-visibility.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ira-build.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-color.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-conflicts.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-costs.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-emit.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-int.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira-lives.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ira.c Add a no_register_allocation target hook. 2014-11-05 12:14:27 +00:00
ira.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
is-a.h Introduce safe_as_a 2014-08-18 19:50:38 +00:00
jump.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
langhooks-def.h PR debug/63239 Add DWARF representation for C++11 deleted member function. 2014-10-05 15:25:03 +00:00
langhooks.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
langhooks.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lcm.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
lcm.h cfg.h: New. 2014-10-21 15:17:12 +00:00
libfuncs.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
limitx.h
limity.h
lists.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lock-and-run.sh
loop-doloop.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
loop-init.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
loop-invariant.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
loop-iv.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
loop-unroll.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
loop-unroll.h cfg.h: New. 2014-10-21 15:17:12 +00:00
lower-subreg.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lower-subreg.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lra-assigns.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lra-coalesce.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
lra-constraints.c re PR rtl-optimization/63620 (RELOAD lost SET_GOT dependency on Darwin) 2014-11-09 16:45:15 +00:00
lra-eliminations.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lra-int.h re PR rtl-optimization/63620 (RELOAD lost SET_GOT dependency on Darwin) 2014-11-09 16:45:15 +00:00
lra-lives.c re PR rtl-optimization/63620 (RELOAD lost SET_GOT dependency on Darwin) 2014-11-10 21:33:06 +00:00
lra-spills.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lra.c re PR rtl-optimization/63620 (RELOAD lost SET_GOT dependency on Darwin) 2014-11-09 16:45:15 +00:00
lra.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lto-cgraph.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
lto-compress.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-compress.h
lto-opts.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-section-in.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-section-names.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
lto-section-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer-in.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-wrapper.c lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. 2014-10-07 07:56:43 +00:00
machmode.def machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
machmode.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
main.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
match.pd re PR bootstrap/63821 (ICE in verify_gimple during libgcc build starting with r217349) 2014-11-12 10:13:48 +00:00
mcf.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
mkconfig.sh
mode-classes.def ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
mode-switching.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
modulo-sched.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
omp-low.h
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c Allow a port not to define an indirect_jump pattern. 2014-11-05 12:14:10 +00:00
optabs.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
optabs.h 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
optc-gen.awk options.texi: Document that Var and Init are required if CPP is given. 2014-09-04 15:13:40 +00:00
optc-save-gen.awk
opth-gen.awk opth-gen.awk: Generate mapping from cpp message reasons to the options that enable them. 2014-09-09 22:17:54 +00:00
opts-common.c re PR c/59304 (#pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default) 2014-08-20 12:48:16 +00:00
opts-diagnostic.h
opts-global.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
opts.c Enable -fsanitize-recover for KASan. 2014-10-28 10:33:04 +00:00
opts.h
output.h Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
params.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
params.def [Patchv3] Control SRA and IPA-SRA by a param rather than MOVE_RATIO 2014-11-06 14:18:52 +00:00
params.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
pass_manager.h
passes.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
passes.def ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
plugin.c Remove a layer of indirection from hash_table 2014-06-24 13:21:35 +00:00
plugin.def
plugin.h
postreload-gcse.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
postreload.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
predict.c c++ify sreal 2014-11-11 02:31:00 +00:00
predict.def
predict.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
print-rtl.h
print-tree.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
print-tree.h
profile.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
profile.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
read-md.c
read-md.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
read-rtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
real.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
real.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
realmpfr.c
realmpfr.h
recog.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
recog.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ree.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
reg-notes.def
reg-stack.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regcprop.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regcprop.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
reginfo.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regrename.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regrename.h du_chain.insn is an rtx_insn 2014-08-25 21:24:13 +00:00
regs.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regset.h
regstat.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
reload.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
reload.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
reload1.c Add a no_register_allocation target hook. 2014-11-05 12:14:27 +00:00
reorg.c * reorg.c (fill_slots_from_thread): Do not copy frame-related insns. 2014-11-11 22:31:09 +00:00
resource.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
resource.h re PR bootstrap/62304 (ICE in follow_jumps, find_dead_or_set_registers) 2014-08-30 14:34:02 +00:00
rtl-chkp.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
rtl-chkp.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
rtl-error.c error_for_asm and warning_for_asm take const rtx_insn * 2014-09-10 14:42:05 +00:00
rtl-error.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
rtl-iter.h rtl-iter.h: New file. 2014-08-28 06:20:12 +00:00
rtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
rtl.def
rtl.h rtl.h (rtx_function, [...]): Delete. 2014-11-12 09:05:29 +00:00
rtlanal.c rtl.h (rtx_function, [...]): Delete. 2014-11-12 09:05:29 +00:00
rtlhash.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
rtlhash.h RTL & dwarf2out changes 2014-08-01 02:51:57 +00:00
rtlhooks-def.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
rtlhooks.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sanitizer.def Enable -fsanitize-recover for KASan. 2014-10-28 10:33:04 +00:00
sanopt.c sanopt.c (sanopt_optimize_walker): Limit removal of the checks. 2014-11-06 11:22:59 +00:00
sbitmap.c
sbitmap.h
sched-deps.c sched-deps.c (sched_analyze_1): Check pending list if it is not less than MAX_PENDING_LIST_LENGTH. 2014-11-11 02:10:37 +00:00
sched-ebb.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
sched-int.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
sched-rgn.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
sched-vis.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
sdbout.c Revert incorrect merging of debug-early branch. 2014-09-04 18:04:14 +00:00
sdbout.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
sel-sched-dump.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sel-sched-dump.h Strengthen haifa_sched_info callbacks and 3 scheduler hooks 2014-08-25 21:19:23 +00:00
sel-sched-ir.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sel-sched-ir.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sel-sched.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sel-sched.h
sese.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
sese.h convert some hash_table to hash_map 2014-07-09 03:06:09 +00:00
shrink-wrap.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
shrink-wrap.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
signop.h
simplify-rtx.c simplify-rtx.c (simplify_binary_operation_1): Div check added. 2014-11-05 11:22:28 +00:00
sparseset.c
sparseset.h
sreal.c sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX. 2014-11-11 09:53:08 +01:00
sreal.h c++ify sreal 2014-11-11 02:31:00 +00:00
ssa-iterators.h
stab.def
stack-ptr-mod.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
statistics.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
statistics.h
stmt.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
stmt.h
stor-layout.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
stor-layout.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
store-motion.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
stringpool.h
symtab.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
sync-builtins.def
system.h system.h: Include algorithm and utility. 2014-11-11 14:12:39 +01:00
target-def.h
target-globals.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
target-globals.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
target-hooks-macros.h
target.def Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
target.h [Patchv3] Control SRA and IPA-SRA by a param rather than MOVE_RATIO 2014-11-06 14:18:52 +00:00
targhooks.c [Patchv3] Control SRA and IPA-SRA by a param rather than MOVE_RATIO 2014-11-06 14:18:52 +00:00
targhooks.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
timevar.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
timevar.def Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
timevar.h timevar.h: Add an auto_timevar class 2014-10-15 21:26:02 +00:00
tlink.c Part 2 of the collect-utils library, now also used for collect2. 2014-06-26 09:16:28 +00:00
toplev.c re PR driver/36312 (should refuse to overwrite input file with output file) 2014-11-11 23:33:25 +00:00
toplev.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
tracer.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
trans-mem.c builtins.c (fold_builtin_atomic_always_lock_free): Use CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where approprate. 2014-10-31 16:26:43 +00:00
trans-mem.h
tree-affine.c builtins.c (fold_builtin_atomic_always_lock_free): Use CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where approprate. 2014-10-31 16:26:43 +00:00
tree-affine.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
tree-browser.c allow storing values directly in hash tables 2014-06-24 13:21:53 +00:00
tree-browser.def
tree-call-cdce.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-cfg.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-cfg.h cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
tree-cfgcleanup.c * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here. 2014-11-06 20:13:18 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-chkp.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-chkp.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-chrec.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-chrec.h
tree-complex.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-core.h tree-core.h (pedantic_lvalues): Remove. 2014-11-11 15:21:12 +00:00
tree-data-ref.c builtins.c (fold_builtin_atomic_always_lock_free): Use CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where approprate. 2014-10-31 16:26:43 +00:00
tree-data-ref.h re PR tree-optimization/62031 (Different results between O2 and O2 -fpredictive-commoning) 2014-08-15 07:50:40 +00:00
tree-dfa.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-dfa.h tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here. 2014-06-17 23:20:30 +00:00
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c tree-eh.c (operation_could_trap_helper_p): Handle conversions like ordinary operations. 2014-11-03 15:49:43 +00:00
tree-eh.h convert many uses of pointer_map to hash_map 2014-08-02 11:34:54 +00:00
tree-emutls.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-hasher.h allow storing values directly in hash tables 2014-06-24 13:21:53 +00:00
tree-if-conv.c tree-if-conv.c (add_to_predicate_list): Check unconditionally that bb is always executed to early exit. 2014-11-10 07:46:45 +00:00
tree-inline.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-inline.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-into-ssa.c re PR tree-optimization/60770 (disappearing clobbers) 2014-11-03 10:47:04 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-nested.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-nested.h
tree-nrv.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-object-size.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-object-size.h
tree-outof-ssa.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-outof-ssa.h
tree-parloops.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-parloops.h
tree-pass.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-phinodes.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-phinodes.h
tree-predcom.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-pretty-print.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-pretty-print.h tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
tree-profile.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-scalar-evolution.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-scalar-evolution.h
tree-sra.c [Patchv3] Control SRA and IPA-SRA by a param rather than MOVE_RATIO 2014-11-06 14:18:52 +00:00
tree-ssa-address.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-ssa-address.h
tree-ssa-alias.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-ssa-alias.h cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced. 2014-09-26 10:37:44 +00:00
tree-ssa-ccp.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-ssa-coalesce.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-coalesce.h
tree-ssa-copy.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-copyrename.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-dce.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
tree-ssa-dom.c builtins.c (fold_builtin_atomic_always_lock_free): Use CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where approprate. 2014-10-31 16:26:43 +00:00
tree-ssa-dom.h tree-ssa-dom.h (loop_depth_of_name): Remove. 2014-07-08 09:22:54 +00:00
tree-ssa-dse.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-forwprop.c match.pd: Implement patterns from associate_plusminus and factor in differences from the... 2014-11-11 13:23:26 +00:00
tree-ssa-ifcombine.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-live.c re PR tree-optimization/60770 (disappearing clobbers) 2014-11-03 10:47:04 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-loop-im.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-loop-ivcanon.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-ssa-loop-ivopts.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-ssa-loop-ivopts.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-ssa-loop-manip.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-ssa-loop-unswitch.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-loop.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-loop.h
tree-ssa-math-opts.c [multiple changes] 2014-11-12 09:50:20 +00:00
tree-ssa-operands.c tree-ssa-operands.c (finalize_ssa_uses): Properly put released operands on the free list. 2014-11-10 15:46:23 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-ssa-phiprop.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-pre.c re PR tree-optimization/63800 (ICE on valid code at -O3 on x86_64-linux-gnu) 2014-11-10 14:31:31 +00:00
tree-ssa-propagate.c re PR tree-optimization/63748 (wrong may be used uninitialized warning (abnormal edges)) 2014-11-10 20:43:40 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-ssa-sccvn.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-ssa-sccvn.h ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree-ssa-sink.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-strlen.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-structalias.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-ssa-tail-merge.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-ter.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-ter.h
tree-ssa-threadedge.c re PR tree-optimization/61515 (Extremely long compile time for generated code) 2014-11-07 15:55:00 -07:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.c [PATCH] Partially fix PR61529, bound basic block frequency 2014-11-10 17:53:21 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-uninit.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa.c re PR tree-optimization/60770 (disappearing clobbers) 2014-11-03 10:47:04 +00:00
tree-ssa.h re PR tree-optimization/60770 (disappearing clobbers) 2014-11-03 10:47:04 +00:00
tree-ssanames.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssanames.h re PR lto/60449 (Merging function DECLs discards leaf attribute which causes cfg verifier to fail) 2014-08-20 16:47:12 +00:00
tree-stdarg.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-stdarg.h
tree-streamer-in.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tree-streamer-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-streamer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-streamer.h add hash_map class 2014-06-24 13:22:11 +00:00
tree-switch-conversion.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-tailcall.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-vect-data-refs.c tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift permutations on power of 2 cases. 2014-11-11 16:07:52 +00:00
tree-vect-generic.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-vect-loop-manip.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-vect-loop.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-vect-patterns.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-vect-slp.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-vect-stmts.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
tree-vectorizer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-vectorizer.h re PR tree-optimization/63341 (Vectorization miscompilation with -mcpu=power7) 2014-09-25 10:12:49 +02:00
tree-vrp.c re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
tree.c match.pd: Implement patterns from associate_plusminus and factor in differences from the... 2014-11-11 13:23:26 +00:00
tree.def ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
tree.h match.pd: Implement patterns from associate_plusminus and factor in differences from the... 2014-11-11 13:23:26 +00:00
treestruct.def
tsan.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
tsan.h
tsystem.h
typeclass.h
ubsan.c ubsan.c (instrument_object_size): Optimize [x & CST] array accesses. 2014-11-04 09:30:47 +00:00
ubsan.h asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
valtrack.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
valtrack.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
value-prof.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
value-prof.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
var-tracking.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
varasm.c Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
varasm.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
varpool.c Add a target hook for assembling undeclared decls. 2014-11-10 16:12:21 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c function.h: Flatten file. 2014-10-16 16:37:19 +00:00
vtable-verify.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
vtable-verify.h Remove a layer of indirection from hash_table 2014-06-24 13:21:35 +00:00
web.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
wide-int-print.cc gcov-io.c (gcov_read_words): Don't call memmove if excess is 0. 2014-07-03 16:39:05 +02:00
wide-int-print.h
wide-int.cc re PR tree-optimization/61682 (wrong code at -O3 on x86_64-linux-gnu) 2014-07-04 00:11:21 +02:00
wide-int.h system.h: Include algorithm and utility. 2014-11-11 14:12:39 +01:00
xcoff.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
xcoffout.c
xcoffout.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00

README.Portability

Copyright (C) 2000-2014 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.