gcc/gcc
Manuel López-Ibáñez 97aa8bb6e2 diagnostic.c (diagnostic_color_init): New.
gcc/ChangeLog:

2014-12-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* diagnostic.c (diagnostic_color_init): New.
	* diagnostic.h: Declare.
	* gcc.c (driver::global_initializations): Use it.
	(driver_handle_option): Handle -fdiagnostics-color_.
	* toplev.c: Do not include diagnostic-color.h.
	(process_options): Do not initialize color diagnostics here.
	* common.opt (fdiagnostics-color=): Add Driver.
	* opts-global.c (init_options_once): Initialize color here.
	* opts.c (common_handle_option): Use diagnostics_color_init.
	* diagnostic-color.h: Fix comment.

From-SVN: r218406
2014-12-04 23:09:41 +00:00
..
ada Update comments. 2014-11-28 14:22:29 +01:00
c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
c-family gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
common Add x86 pcommit instruction. 2014-11-21 19:04:20 +03:00
config x86-64: Optimize access to globals in PIE with copy reloc 2014-12-04 11:40:50 -08:00
cp re PR c++/64029 (const int (&in)[]{1,2,3,4,5}; results in internal compiler error: Segmentation fault) 2014-12-04 15:37:30 -05:00
doc Update docs to reflect use of gimple subclasses 2014-12-04 20:00:25 +00:00
fortran re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-12-03 17:50:06 +00:00
ginclude C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
go compiler: Don't crash with self-referential types. 2014-12-01 01:29:45 +00:00
java re PR java/64044 (Java emits bogus .class$ decls) 2014-11-24 14:02:36 +00:00
jit Improvements to documentation of gcc_jit_context_release 2014-12-01 18:53:44 +00:00
lto remove more ggc htabs 2014-11-20 15:10:49 +00:00
objc cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
objcp
po
testsuite re PR c++/64029 (const int (&in)[]{1,2,3,4,5}; results in internal compiler error: Segmentation fault) 2014-12-04 15:37:30 -05:00
ABOUT-GCC-NLS
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 re PR lto/64025 (Several testsuite execution failures with -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects) 2014-11-27 12:02:02 +01:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c asan: support for globals in kernel 2014-12-02 10:58:59 -08:00
asan.h Makefile.in (OBJS): Add sanopt.o. 2014-11-04 19:43:01 +00:00
attribs.c attribs.c (decl_attributes): Remove always true condition, TREE_TYPE(x) will never compare equal to a TYPE_DECL. 2014-11-19 03:37:34 +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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
auto-profile.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
BASE-VER
basic-block.h ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
bb-reorder.c re PR lto/63968 (175.vpr from cpu2000 fails to build with LTO) 2014-11-24 10:25:06 +00:00
bb-reorder.h
bitmap.c bitmap.c (bitmap_ior, bitmap_ior_and_compl): Zap current as it could be deleted. 2014-11-28 22:23:59 +00:00
bitmap.h
bt-load.c bt-load.c (migrate_btr_defs): Get the key of a heap entry before removing it, not after. 2014-11-25 18:52:21 +01:00
builtin-attrs.def re PR sanitizer/63839 (ICE: tree check: expected ssa_name, have var_decl in simplify_builtin_call, at tree-ssa-forwprop.c:1441 with -fsanitize=unreachable) 2014-11-14 11:22:12 +00:00
builtin-types.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.c builtins.c (target_newline): Export. 2014-12-04 08:49:49 +00:00
builtins.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.h builtins.c (target_newline): Export. 2014-12-04 08:49:49 +00:00
caller-save.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
calls.c Rename fuse-caller-save 2014-12-03 10:28:25 +00:00
calls.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
ccmp.c Makefile.in: Add ccmp.o. 2014-11-17 06:03:07 +00:00
ccmp.h Makefile.in: Add ccmp.o. 2014-11-17 06:03:07 +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 gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01: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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
cfgloopmanip.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
cfgrtl.c re PR debug/63581 (undefined references in debug_info) 2014-11-14 00:30:31 +00:00
cfgrtl.h cfgrtl.h: New. 2014-10-20 15:30:50 +00:00
cgraph.c re PR ipa/61190 (g++.old-deja/g++.mike/p4736b.C FAILs at -O2/-Os/-O3) 2014-11-26 18:10:29 +00:00
cgraph.h re PR ipa/61190 (g++.old-deja/g++.mike/p4736b.C FAILs at -O2/-Os/-O3) 2014-11-26 18:10:29 +00:00
cgraphbuild.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
cgraphclones.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
cgraphunit.c cgraphunit.c (ipa_passes): Handle flag_generate_offload. 2014-11-28 12:23:55 +00:00
ChangeLog diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +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.gimple-classes Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
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
chkp-builtins.def ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cif-code.def
cilk-builtins.def
cilk-common.c 2014-11-01 Andrew MacLeod <amacleod@redhat,com> 2014-11-01 13:34:15 +00:00
cilk.h
cilkplus.def
collect2-aix.c
collect2-aix.h
collect2.c collect2.c (main): Don't call fatal_error before diagnostic_initialize. 2014-11-19 14:48:48 +03:00
collect2.h
collect-utils.c
collect-utils.h
combine-stack-adj.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
combine.c re PR rtl-optimization/52714 (ICE in fixup_reorder_chain, at cfglayout.c:880) 2014-12-03 07:00:54 +01:00
common.md
common.opt diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
compare-elim.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
conditions.h
config.build
config.gcc Add x86 pcommit instruction. 2014-11-21 19:04:20 +03:00
config.host
config.in x86-64: Optimize access to globals in PIE with copy reloc 2014-12-04 11:40:50 -08:00
configure x86-64: Optimize access to globals in PIE with copy reloc 2014-12-04 11:40:50 -08:00
configure.ac x86-64: Optimize access to globals in PIE with copy reloc 2014-12-04 11:40:50 -08:00
context.c PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager 2014-11-19 19:23:06 +00:00
context.h PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager 2014-11-19 19:23:06 +00:00
convert.c re PR c++/56493 (Performance regression in google dense hashmap) 2014-12-04 10:46:45 +01:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
coverage.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
coverage.h
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
DATESTAMP Daily bump. 2014-12-04 00:16:27 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c re PR c++/58561 ([c++11] ICE using declaration of function with auto in return type) 2014-11-24 09:59:52 -05: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
debug.h
defaults.h [Patch 1/7] Hookize *_BY_PIECES_P 2014-11-01 08:13:09 +00:00
DEV-PHASE
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.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
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 diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
diagnostic.def
diagnostic.h diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +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 PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager 2014-11-19 19:23:06 +00:00
dumpfile.h PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager 2014-11-19 19:23:06 +00:00
dwarf2asm.c remove param1_is usage 2014-11-20 15:10:33 +00:00
dwarf2asm.h
dwarf2cfi.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
dwarf2out.c cgraphunit.c (ipa_passes): Handle flag_generate_offload. 2014-11-28 12:23:55 +00:00
dwarf2out.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
emit-rtl.c PR63426 Fix various signed integer overflows 2014-11-20 16:36:14 +00:00
emit-rtl.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
errors.c Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. 2014-12-03 17:44:27 +01:00
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
exec-tool.in
explow.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
expmed.c * expmed.c (expand_mult): Use std::swap. 2014-12-03 21:35:45 +01:00
expmed.h cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +00:00
expr.c re PR middle-end/64067 (ICE in expand_expr_real_1, at expr.c:10540, involving compound literal shenanigans) 2014-11-27 12:04:16 +01:00
expr.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
fibonacci_heap.h re PR lto/63968 (175.vpr from cpu2000 fails to build with LTO) 2014-11-24 10:25:06 +00:00
file-find.c
file-find.h
final.c Rename fuse-caller-save 2014-12-03 10:28:25 +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 re PR middle-end/56917 (-ftrapv detects a overflow wrongly.) 2014-12-04 19:20:12 +00:00
fold-const.h fold-const.h (const_unop): Declare. 2014-11-26 14:39:43 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c convert many if_marked htab to hash_table 2014-11-20 15:10:19 +00:00
function.h re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:26 +00:00
fwprop.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gcc-ar.c
gcc-plugin.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
gcc-symtab.h
gcc.c diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
gcov-iov.c
gcov-tool.c
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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gdbinit.in
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
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
genflags.c
gengenrtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
gengtype-lex.l Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. 2014-12-03 17:44:27 +01:00
gengtype-parse.c Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. 2014-12-03 17:44:27 +01:00
gengtype-state.c Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. 2014-12-03 17:44:27 +01:00
gengtype.c Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS), gcc-ar.o, gcc-nm.o and gcc-ranlib.o. 2014-12-03 17:44:27 +01:00
gengtype.h gengtype.h (obstack_chunk_alloc, [...]): Remove cast. 2014-10-22 12:11:31 +10:30
genhooks.c
genmatch.c genmatch.c: Include hash-set.h. 2014-12-02 09:30:15 +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
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 implement a replacement for if_marked 2014-11-20 15:10:11 +00:00
ggc-internal.h
ggc-none.c
ggc-page.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ggc.h implement a replacement for if_marked 2014-11-20 15:10:11 +00:00
gimple-builder.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
gimple-builder.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
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-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
gimple-fold.c gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_to_seq fails. 2014-12-04 12:35:42 +00:00
gimple-fold.h re PR target/63679 ([AArch64] Failure to constant fold.) 2014-11-24 14:07:18 +00:00
gimple-iterator.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-iterator.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-low.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
gimple-low.h
gimple-match-head.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01: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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-pretty-print.h
gimple-ssa-isolate-paths.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-ssa-strength-reduction.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
gimple-ssa.h convert trans-mem to hash_table 2014-11-20 15:10:56 +00:00
gimple-streamer-in.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-streamer-out.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gimple-walk.h
gimple.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
gimple.def
gimple.h gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
gimplify-me.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
gimplify-me.h
gimplify.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
gimplify.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
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
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 re PR middle-end/64017 (Support ISL 0.14.0 (to fix ICE with gfortran.dg/graphite/pr42393.f90)) 2014-12-01 20:07:37 +01:00
graphite-isl-ast-to-gimple.c re PR middle-end/64017 (Support ISL 0.14.0 (to fix ICE with gfortran.dg/graphite/pr42393.f90)) 2014-12-01 20:07:37 +01:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c re PR middle-end/64017 (Support ISL 0.14.0 (to fix ICE with gfortran.dg/graphite/pr42393.f90)) 2014-12-01 20:07:37 +01:00
graphite-poly.c re PR middle-end/64017 (Support ISL 0.14.0 (to fix ICE with gfortran.dg/graphite/pr42393.f90)) 2014-12-01 20:07:37 +01:00
graphite-poly.h New unroll and jam option in Graphite. 2014-11-15 15:37:49 +00:00
graphite-scop-detection.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c re PR middle-end/64017 (Support ISL 0.14.0 (to fix ICE with gfortran.dg/graphite/pr42393.f90)) 2014-12-01 20:07:37 +01:00
graphite-sese-to-poly.h
graphite.c New unroll and jam option in Graphite. 2014-11-15 15:37:49 +00:00
gsstruct.def Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +00:00
hard-reg-set.h
hash-map.h remove param1_is usage 2014-11-20 15:10:33 +00:00
hash-set.h
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 fix hash_table when empty elements are not 0 2014-11-20 15:10:26 +00:00
highlev-plugin-common.h
hooks.c [PATCH 6/7] OpenMP 4.0 offloading infrastructure: option handling. 2014-11-13 13:54:07 +00:00
hooks.h [PATCH 6/7] OpenMP 4.0 offloading infrastructure: option handling. 2014-11-13 13:54:07 +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
hwint.c
hwint.h
ifcvt.c ifcvt.c (HAVE_cbranchcc4): Define. 2014-11-17 06:29:07 +00:00
ifcvt.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
inchash.c
inchash.h
incpath.c
incpath.h
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
insn-addr.h
insn-notes.def
internal-fn.c re PR target/63848 (FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O0 execution test) 2014-11-21 21:42:20 +01:00
internal-fn.def Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
internal-fn.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
intl.c
intl.h
ipa-chkp.c tree-core.h (built_in_class): Add builtin codes to be used by Pointer Bounds Checker for instrumented builtin... 2014-11-17 13:45:55 +00:00
ipa-chkp.h tree-core.h (built_in_class): Add builtin codes to be used by Pointer Bounds Checker for instrumented builtin... 2014-11-17 13:45:55 +00:00
ipa-comdats.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-cp.c ipa-prop.h (ipa_alignment): New type. 2014-12-04 15:37:01 +01:00
ipa-devirt.c tree.c (free_lang_data_in_type): If BINFO has no important information in it, set it to NULL. 2014-11-20 06:15:03 +00:00
ipa-icf-gimple.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
ipa-icf-gimple.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
ipa-icf.c IPA ICF: fix memory leak. 2014-11-27 15:36:10 +00:00
ipa-icf.h IPA ICF: fix memory leak. 2014-11-27 15:36:10 +00:00
ipa-inline-analysis.c re PR ipa/64153 (r218205 miscompiles libgomp) 2014-12-03 15:05:51 +01:00
ipa-inline-transform.c re PR ipa/63671 (21% tramp3d-v4 performance hit due to -fdevirtualize) 2014-11-24 16:15:46 +00:00
ipa-inline.c [PATCH 2/2] ipa-inline uses sreal for as fibonacci_heap template 2014-11-24 10:43:55 +00:00
ipa-inline.h ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use agg_preserved flag instead. 2014-11-14 21:03:19 +01:00
ipa-polymorphic-call.c re PR target/63981 (some C++ tests fail with -mabi=ilp32 on aarch64 (with -O2 and above)) 2014-11-20 09:12:02 -08:00
ipa-profile.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ipa-prop.c PR jit/63854: Fix leak of ipa hooks 2014-12-04 21:11:04 +00:00
ipa-prop.h ipa-prop.h (ipa_alignment): New type. 2014-12-04 15:37:01 +01:00
ipa-pure-const.c re PR ipa/61190 (g++.old-deja/g++.mike/p4736b.C FAILs at -O2/-Os/-O3) 2014-11-26 18:10:29 +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 PR jit/63854: Fix leak of ipa hooks 2014-12-04 21:11:04 +00:00
ipa-reference.h cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
ipa-split.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
ipa-utils.c remove more ggc htabs 2014-11-20 15:10:49 +00:00
ipa-utils.h tree.c (free_lang_data_in_type): If BINFO has no important information in it, set it to NULL. 2014-11-20 06:15:03 +00:00
ipa-visibility.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa.c ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline clones as having abstract origin used. 2014-11-22 21:08:07 +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 ira-conflicts.c (build_conflict_bit_table): Add the current object to OBJECTS_LIVE after traversing OBJECTS_LIVE. 2014-11-17 15:05:45 -07:00
ira-costs.c Revert r218266 2014-12-03 05:16:25 -08: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 ira-lives.c (process_bb_node_lives): Make code with conditional REAL_PIC_OFFSET_TABLE_REGNUM. 2014-11-25 21:27:17 +00:00
ira.c re PR middle-end/63762 ([ARM]GCC generates UNPREDICTABLE STR with Rn = Rt when hard-float abi is used) 2014-11-19 15:15:51 +00:00
ira.h PR jit/63854: Add ira_costs_c_finalize 2014-11-19 19:49:28 +00:00
is-a.h
jump.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
langhooks-def.h
langhooks.c PR debug/38757 gcc does not emit DW_LANG_C99. 2014-11-21 16:00:06 +00:00
langhooks.h PR debug/38757 gcc does not emit DW_LANG_C99. 2014-11-21 16:00:06 +00:00
LANGUAGES
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 PR63426 Fix various signed integer overflows 2014-11-20 16:36:14 +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 Rename fuse-caller-save 2014-12-03 10:28:25 +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 Rename fuse-caller-save 2014-12-03 10:28:25 +00:00
lra-eliminations.c [LRA] Relax one gcc_assert in lra-eliminate for fixed register 2014-11-18 09:30:08 +00:00
lra-int.h lra-int.h (lra_create_live_ranges): Add parameter. 2014-11-14 20:06:11 +00:00
lra-lives.c Rename fuse-caller-save 2014-12-03 10:28:25 +00:00
lra-remat.c re PR rtl-optimization/63906 (lra_remat miscompiles glibc on aarch64) 2014-11-18 00:14:25 +00:00
lra-spills.c common.opt (flra-remat): New. 2014-11-13 03:02:49 +00:00
lra.c Rename fuse-caller-save 2014-12-03 10:28:25 +00:00
lra.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lto-cgraph.c ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline clones as having abstract origin used. 2014-11-22 21:08:07 +00:00
lto-compress.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-compress.h
lto-opts.c [PATCH 6/7] OpenMP 4.0 offloading infrastructure: option handling. 2014-11-13 13:54:07 +00:00
lto-section-in.c remove more ggc htabs 2014-11-20 15:10:49 +00:00
lto-section-names.h [PATCH 3/7] OpenMP 4.0 offloading infrastructure: Offload tables. 2014-11-13 13:44:04 +00:00
lto-section-out.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer-in.c re PR middle-end/64065 (CP2K miscompilation at -O3 -flto) 2014-11-25 16:43:24 +00:00
lto-streamer-out.c re PR middle-end/64065 (CP2K miscompilation at -O3 -flto) 2014-11-25 16:43:24 +00:00
lto-streamer.c cgraphunit.c (ipa_passes): Handle flag_generate_offload. 2014-11-28 12:23:55 +00:00
lto-streamer.h remove more ggc htabs 2014-11-20 15:10:49 +00:00
lto-wrapper.c lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one file contains sections with LTO... 2014-11-28 13:46:28 +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
Makefile.in Makefile.in: Remove CLOOGLIB and CLOOGINC. 2014-12-04 19:18:21 +01:00
match.pd re PR tree-optimization/14541 ([tree-ssa] built-in math functions are not fully optimized at tree level) 2014-12-03 11:55:14 +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 gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
omp-low.h [PATCH 3/7] OpenMP 4.0 offloading infrastructure: Offload tables. 2014-11-13 13:44:04 +00:00
ONEWS
opt-functions.awk opt-functions.awk (lang_enabled_by): Support || for enabled-by. 2014-11-29 01:04:48 +01:00
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c re PR rtl-optimization/63952 (bootstrap failure (ICE in prepare_cmp_insn) on s390x in libjava) 2014-11-21 15:33:27 +00:00
optabs.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
optabs.h cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +00:00
optc-gen.awk opt-functions.awk (lang_enabled_by): Support || for enabled-by. 2014-11-29 01:04:48 +01:00
optc-save-gen.awk lto-streamer-out.c (hash_tree): Use cl_optimization_hash. 2014-11-15 16:53:51 +00:00
opth-gen.awk lto-streamer-out.c (hash_tree): Use cl_optimization_hash. 2014-11-15 16:53:51 +00:00
opts-common.c
opts-diagnostic.h
opts-global.c diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
opts.c diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
opts.h PR jit/63854: Fix memory leak within gcc_options 2014-11-19 19:08:29 +00:00
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 params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200. 2014-11-22 20:02:12 +01:00
params.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
pass_manager.h PR jit/63854: Add all_late_ipa_passes to GCC_PASS_LISTS 2014-11-19 20:26:57 +00:00
passes.c cgraphunit.c (ipa_passes): Handle flag_generate_offload. 2014-11-28 12:23:55 +00:00
passes.def timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +00:00
plugin.c
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 [PATCH 1/2] Negative numbers added for sreal class. 2014-11-24 10:41:18 +00:00
predict.def
predict.h cfgbuild.h: New. 2014-10-22 14:26:56 +00:00
prefix.c
prefix.h
pretty-print.c re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-12-03 17:50:06 +00:00
pretty-print.h re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-12-03 17:50:06 +00:00
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
read-rtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
README.Portability
real.c PR jit/63854: Fix leak in real.c for i386:init_ext_80387_constants 2014-12-01 17:28:28 +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 PR jit/63854: Fix memory leak of reginfo.c: valid_mode_changes_obstack 2014-11-19 19:11:37 +00:00
regrename.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
regrename.h
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
reload1.c Add a no_register_allocation target hook. 2014-11-05 12:14:27 +00:00
reload.c re PR rtl-optimization/64010 ([msp430-elf] struct function dereference clobbers parameter passed to function) 2014-12-03 21:59:10 +00:00
reload.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +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
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
rtl-error.h
rtl-iter.h
rtl.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
rtl.def
rtl.h implement a replacement for if_marked 2014-11-20 15:10:11 +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
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 re PR sanitizer/63839 (ICE: tree check: expected ssa_name, have var_decl in simplify_builtin_call, at tree-ssa-forwprop.c:1441 with -fsanitize=unreachable) 2014-11-14 11:22:12 +00:00
sanopt.c Improve optimization of ASan checks. 2014-12-03 09:23:28 +00:00
sbitmap.c
sbitmap.h
sched-deps.c [sched-deps] Remove needless check for modified_in_p when trying to fuse two non-conditional jump insns 2014-11-24 11:09:59 +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 timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +00:00
sched-rgn.c timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +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 sdbout.c (sdbout_symbol): Eliminate register only if decl isn't a global variable. 2014-11-12 21:04:50 +01:00
sdbout.h
sel-sched-dump.c decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
sel-sched-dump.h
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 Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
sese.h
shrink-wrap.c re PR middle-end/63972 (shrink_wrap_symbol_ref_1.c fail with -mabi=ilp32 on aarch64) 2014-11-24 07:40:19 -08: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_ternary_operation): Simplify vec_merge (vec_duplicate (vec_select)). 2014-11-24 12:00:54 +00:00
sparseset.c
sparseset.h
sreal.c re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in inline_small_functions, at ipa-inline.c:1709) 2014-11-25 15:16:27 +00:00
sreal.h re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in inline_small_functions, at ipa-inline.c:1709) 2014-11-25 15:16:27 +00:00
ssa-iterators.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
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 PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager 2014-11-19 19:23:06 +00:00
statistics.h
stmt.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
stmt.h
stor-layout.c re PR sanitizer/63802 (UBSan doesn't catch misaligned access if address is 16-bytes (or more) aligned) 2014-11-18 07:37:17 +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
target-hooks-macros.h
target.def Rename fuse-caller-save 2014-12-03 10:28:25 +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 Make TARGET_STATIC_CHAIN allow a function type 2014-11-19 05:30:34 -08:00
targhooks.h [Patch] PR target/63937 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P should take an unsigned HOST_WIDE_INT size argument 2014-11-18 22:45:21 +00:00
timevar.c State cleanups from jit branch 2014-10-21 16:55:38 +00:00
timevar.def timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +00:00
timevar.h timevar.h: Add an auto_timevar class 2014-10-15 21:26:02 +00:00
tlink.c
toplev.c diagnostic.c (diagnostic_color_init): New. 2014-12-04 23:09:41 +00:00
toplev.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
tracer.c tracer ported to new fibonacci_heap data structure. 2014-11-18 16:15:52 +00:00
trans-mem.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01: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
tree-browser.c
tree-browser.def
tree-call-cdce.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-cfg.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-cfg.h Add verify_sese 2014-11-25 17:10:00 +00:00
tree-cfgcleanup.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-cfgcleanup.h
tree-chkp-opt.c re PR bootstrap/63995 (Bootstrap error with -mmpx -fcheck-pointer-bounds) 2014-11-26 14:37:07 +00:00
tree-chkp.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-chkp.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-core.h re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:26 +00:00
tree-data-ref.c re PR tree-optimization/63738 (ssa corruption when compiled with -O3) 2014-11-26 15:16:24 +00:00
tree-data-ref.h
tree-dfa.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-eh.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-emutls.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-hasher.h
tree-if-conv.c re PR tree-optimization/63941 (ICE on valid code at -O3 and above on x86_64-linux-gnu) 2014-12-01 12:19:28 +00:00
tree-inline.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-inline.h re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:26 +00:00
tree-into-ssa.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-into-ssa.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-nested.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-nested.h
tree-nrv.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-object-size.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-object-size.h
tree-outof-ssa.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-outof-ssa.h
tree-parloops.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-parloops.h
tree-pass.h timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +00:00
tree-phinodes.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-phinodes.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-predcom.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-pretty-print.c Avoid overuse of name "buffer" in tree-pretty-print.c 2014-12-04 21:33:22 +00:00
tree-pretty-print.h
tree-profile.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-scalar-evolution.c remove more ggc htabs 2014-11-20 15:10:49 +00:00
tree-scalar-evolution.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-sra.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01: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 re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:26 +00:00
tree-ssa-alias.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-ccp.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-ssa-coalesce.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-coalesce.h
tree-ssa-copy.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-copyrename.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-dce.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-dom.c re PR tree-optimization/63677 (Failure to constant fold with vectorization.) 2014-11-20 08:40:52 +00:00
tree-ssa-dom.h
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 gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-ifcombine.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-live.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-loop-ivcanon.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-loop-ivopts.c PR63426 Fix various signed integer overflows 2014-11-20 16:36:14 +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 gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo. 2014-11-20 20:56:23 +00:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-loop-unswitch.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 PR jit/63854: Fix leak in tree-ssa-math-opts.c 2014-12-01 17:16:04 +00:00
tree-ssa-operands.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-phiprop.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-ssa-pre.c PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c 2014-11-19 20:14:18 +00:00
tree-ssa-propagate.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-ssa-propagate.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-reassoc.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-sccvn.c tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow SSA edges. 2014-11-27 10:00:15 +00:00
tree-ssa-sccvn.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-sink.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-strlen.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-ssa-structalias.c re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:50 +00:00
tree-ssa-tail-merge.c re PR middle-end/64088 (ICE: in fold_abs_const, at fold-const.c:15550) 2014-11-27 14:22:29 +00:00
tree-ssa-ter.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-ter.h
tree-ssa-threadedge.c PR jit/63854: Fix leak of paths within jump threading 2014-11-19 20:17:44 +00:00
tree-ssa-threadedge.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-threadupdate.c re PR middle-end/64083 (ICE: in fix_loop_structure, at loop-init.c:252 compiling Linux Kernel) 2014-11-27 09:57:13 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa-uninit.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-ssa.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +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 gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-stdarg.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
tree-stdarg.h
tree-streamer-in.c re PR lto/64075 (ICE: in bp_pack_value, at data-streamer.h:106) 2014-11-26 13:53:38 +00:00
tree-streamer-out.c re PR lto/64075 (ICE: in bp_pack_value, at data-streamer.h:106) 2014-11-26 13:53:38 +00:00
tree-streamer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-streamer.h
tree-switch-conversion.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
tree-tailcall.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-data-refs.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-generic.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-loop-manip.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-loop.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-patterns.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-slp.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vect-stmts.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree-vectorizer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-vectorizer.h re PR tree-optimization/64024 (gcc.dg/vect/vect-simd-clone-6.c ICEs) 2014-11-27 12:03:12 +01:00
tree-vrp.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tree.c builtins.c (fold_builtin_fpclassify): Change to take array of arguments instead of CALL_EXPR tree. 2014-12-03 13:10:39 +00:00
tree.def Remove VEC_RSHIFT_EXPR tree code, now unused 2014-11-13 16:35:06 +00:00
tree.h re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization)) 2014-11-24 09:24:26 +00:00
treestruct.def
tsan.c gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
tsan.h
tsystem.h
typeclass.h
ubsan.c re PR tree-optimization/64121 (ICE: SSA corruption with -O -fsanitize=undefined) 2014-12-01 15:37:55 +00:00
ubsan.h re PR sanitizer/63839 (ICE: tree check: expected ssa_name, have var_decl in simplify_builtin_call, at tree-ssa-forwprop.c:1441 with -fsanitize=unreachable) 2014-11-14 11:22:12 +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 gimple.h (gimple_build_assign_stat): Remove prototype. 2014-12-01 14:58:10 +01:00
value-prof.h Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
var-tracking.c fibonacci_heap is used for var-tracking. 2014-11-18 16:18:46 +00:00
varasm.c PR63426 Fix various signed integer overflows 2014-11-20 16:36:14 +00:00
varasm.h function.h: Flatten file. 2014-10-16 16:37:19 +00:00
varpool.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c PR debug/38757 gcc does not emit DW_LANG_C99. 2014-11-21 16:00:06 +00:00
vtable-verify.c Merger of git branch "gimple-classes-v2-option-3" 2014-11-19 17:00:54 +00:00
vtable-verify.h
web.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h system.h: Include algorithm and utility. 2014-11-11 14:12:39 +01:00
xcoff.h
xcoffout.c
xcoffout.h

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.