gcc/gcc
Tom de Vries 8024d4b6c9 Fix tail-merge pass for dead type-unsafe code
2014-11-19  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/62167
	* tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
	conservatively.
	(gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
	assigns.

	* gcc.dg/pr51879-12.c: Add xfails.
	* gcc.dg/pr62167-run.c: New test.
	* gcc.dg/pr62167.c: New test.

From-SVN: r217761
2014-11-19 10:44:58 +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 re PR sanitizer/63813 ([UBSAN] ICE in ubsan_type_descriptor, at ubsan.c:346) 2014-11-18 23:15:42 +01:00
common Implement MIPS o32 FPXX, FP64, FP64A ABI extensions. 2014-11-12 21:39:46 +00:00
config [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
cp re PR c++/63924 (Constexpr constructible expression "is not constexpr" when used in a template non-type argument) 2014-11-18 22:03:45 -05:00
doc [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
fortran error.c (gfc_fatal_error_1): Renamed from gfc_fatal_error. 2014-11-15 12:06:07 +01:00
ginclude C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
go compiler: Initialize variables in declaration order. 2014-11-18 17:29:41 +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 tree.c (free_lang_data_in_decl): Annotate all functio nbodies with DECL_FUNCTION_SPECIFIC_TARGET. 2014-11-17 16:48:29 +00:00
objc cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
objcp
po
testsuite Fix tail-merge pass for dead type-unsafe code 2014-11-19 10:44:58 +00: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 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 re PR sanitizer/63866 (ICE in C++ printer with -fdump-ipa) 2014-11-18 14:55:44 +00: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 cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
auto-profile.h Add AutoFDO. 2014-10-21 17:59:30 +00:00
BASE-VER BASE-VER: Change to 5.0.0 2014-08-14 13:58:50 +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 fibonacci_heap is used for bb-reoder purpose. 2014-11-18 16:13:05 +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 bt-load is ported to fibonacci_heap. 2014-11-18 16:17:28 +00: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 (expand_builtin_memcpy_with_bounds): Use target hook instead of BNDmode. 2014-11-17 16:17:06 +00:00
builtins.def re PR c/59708 (clang-compatible checked arithmetic builtins) 2014-11-12 13:28:06 +01:00
builtins.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
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
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 cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +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 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 cgraph.c (symbol_table::create_edge): Use opt_for_fn. 2014-11-17 18:52:59 +00:00
cgraph.h cgraphunit.c (analyze_functions): Use opt_for_fn. 2014-11-17 18:53:51 +00:00
cgraphbuild.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
cgraphclones.c passes.c (execute_one_pass): Do not apply all transforms prior every simple IPA pass. 2014-11-16 19:36:37 +00:00
cgraphunit.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ChangeLog Fix tail-merge pass for dead type-unsafe code 2014-11-19 10:44:58 +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
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
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
collect-utils.c
collect-utils.h Add header guard to several header files. 2014-09-18 23:34:23 +01: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.opt ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +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 [Patch ARM Refactor Builtins 3/8] Pull builtins code to its own file 2014-11-18 09:52:46 +00:00
config.host
config.in configure.ac (--with-diagnostics-color): New configure option, default to --with-diagnostics-color=auto. 2014-11-14 08:30:27 +01:00
configure configure.ac (--with-diagnostics-color): New configure option, default to --with-diagnostics-color=auto. 2014-11-14 08:30:27 +01:00
configure.ac configure.ac (--with-diagnostics-color): New configure option, default to --with-diagnostics-color=auto. 2014-11-14 08:30:27 +01:00
context.c [PATCH 2/7] OpenMP 4.0 offloading infrastructure: LTO streaming. 2014-11-13 13:37:38 +00:00
context.h [PATCH 2/7] OpenMP 4.0 offloading infrastructure: LTO streaming. 2014-11-13 13:37:38 +00:00
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
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h [PATCH 6/7] OpenMP 4.0 offloading infrastructure: option handling. 2014-11-13 13:54:07 +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 data-streamer.h (streamer_string_index, [...]): Remove. 2014-08-15 07:51:35 +00:00
DATESTAMP Daily bump. 2014-11-19 00:16:31 +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
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-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
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 cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +00:00
expmed.h cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +00:00
expr.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
expr.h cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +00:00
fibonacci_heap.h New template fibonacci_heap class introduced. 2014-11-18 16:09:11 +00: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.c (element_mode, [...]): New functions. 2014-11-18 10:26:31 +00:00
fold-const.h match.pd: Implement more binary patterns exercised by fold_stmt. 2014-11-14 09:30:08 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
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 bootstrap/63853 (The use of strchrnul breaks bootstrap on x86_64-apple-darwin14.) 2014-11-13 22:06:15 +00:00
gcc.h
gcov-counter.def Makefile.in: Fix dependence. 2014-10-07 04:02:31 +00:00
gcov-dump.c
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 [PATCH 3/7] OpenMP 4.0 offloading infrastructure: Offload tables. 2014-11-13 13:44:04 +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 (add_operator): Allow CONSTRUCTOR. 2014-11-14 08:37:41 +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 gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted to no_follow_ssa_edges. 2014-11-14 13:32:56 +00:00
gimple-fold.h gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted to no_follow_ssa_edges. 2014-11-14 13:32:56 +00: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-pure-const.c (struct funct_state_d): Add can_free field. 2014-11-14 18:46:50 +01:00
gimple.def
gimple.h Add more comments to some gimple accessors 2014-11-17 10:56:43 +01: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 Makefile.in (CLOOGLIBS, CLOOGINC): Remove. 2014-11-12 19:28:36 +01:00
graphite-isl-ast-to-gimple.c New unroll and jam option in Graphite. 2014-11-15 15:37:49 +00:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c Support for unroll and jam optimization. 2014-11-17 22:59:07 +00:00
graphite-poly.c New unroll and jam option in Graphite. 2014-11-15 15:37:49 +00:00
graphite-poly.h New unroll and jam option in Graphite. 2014-11-15 15:37:49 +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 New unroll and jam option in Graphite. 2014-11-15 15:37:49 +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 timevar.def (TV_SCHED_FUSION): New time var. 2014-11-14 02:32:38 +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 [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 Add header guard to several header files. 2014-09-18 23:34:23 +01:00
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 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 sanitizer/63520 (ICE: in get_biv_step, at loop-iv.c:824 with -fsanitize=undefined on ppc64) 2014-11-19 10:49:18 +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 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-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ipa-devirt.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +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 passes.c (execute_one_pass): Do not apply all transforms prior every simple IPA pass. 2014-11-16 19:36:37 +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 ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ipa-inline-transform.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ipa-inline.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +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 * ipa-polymorphic-call.c 2014-11-16 21:01:45 +00: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 ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +00:00
ipa-prop.h ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation. 2014-11-17 22:04:36 +00:00
ipa-pure-const.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +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 ipa-utils.h: Fix typo in comments. 2014-11-13 16:04:30 +00:00
ipa-visibility.c ipa-chkp.c: New. 2014-11-05 12:42:03 +00:00
ipa.c ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. 2014-11-18 20:44:16 +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 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
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 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 common.opt (flra-remat): New. 2014-11-13 03:02:49 +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 lra-int.h (lra_create_live_ranges): Add parameter. 2014-11-14 20:06:11 +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 lra-remat.c (cand_transf_func): Process regno for rematerialization too. 2014-11-16 05:00:30 +00:00
lra.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
lto-cgraph.c ipa-pure-const.c (struct funct_state_d): Add can_free field. 2014-11-14 18:46:50 +01: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 [PATCH 3/7] OpenMP 4.0 offloading infrastructure: Offload tables. 2014-11-13 13:44:04 +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 cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
lto-streamer-out.c lto-streamer-out.c (hash_tree): Use cl_optimization_hash. 2014-11-15 16:53:51 +00:00
lto-streamer.c [PATCH 2/7] OpenMP 4.0 offloading infrastructure: LTO streaming. 2014-11-13 13:37:38 +00:00
lto-streamer.h lto-streamer-out.c (hash_tree): Use cl_optimization_hash. 2014-11-15 16:53:51 +00:00
lto-wrapper.c re PR bootstrap/63853 (The use of strchrnul breaks bootstrap on x86_64-apple-darwin14.) 2014-11-13 22:06:15 +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: Add ccmp.o. 2014-11-17 06:03:07 +00:00
match.pd tree.c (element_mode, [...]): New functions. 2014-11-18 10:26:31 +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 re PR tree-optimization/63844 (open mp parallelization prevents vectorization) 2014-11-19 09:47:19 +00: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-gather.awk
opt-include.awk
opt-read.awk
optabs.c cfgexpand.c (expand_gimple_cond): Check ccmp. 2014-11-17 05:52:26 +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 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 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 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 opts-global.c (postpone_unknown_option_warning): Fix spelling. 2014-11-13 01:08:06 +00:00
opts.c opts.c (finish_options): Disable aggressive opts for sanitizer. 2014-11-18 08:46:39 +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 New unroll and jam option in Graphite. 2014-11-15 15:37:49 +00:00
params.h State cleanups from jit branch 2014-10-21 16:55:38 +00:00
pass_manager.h
passes.c passes.c (remove_cgraph_node_from_order): New. 2014-11-18 07:25:12 +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 predict.c (maybe_hot_frequency_p): Use opt_for_fn. 2014-11-17 18:52:28 +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
README.Portability
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
reload1.c Add a no_register_allocation target hook. 2014-11-05 12:14:27 +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
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 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 sanopt.c: Include tree-ssa-operands.h. 2014-11-14 18:28:11 +01: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 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 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
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 re PR rtl-optimization/63843 (wrong code generation at -O1 and higher) 2014-11-19 09:18:53 +01: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 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 bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
target-hooks-macros.h
target.def [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
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 [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
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 New unroll and jam option in Graphite. 2014-11-15 15:37:49 +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 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
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 tree-chkp-opt.c (chkp_get_nobnd_fndecl): New. 2014-11-17 13:52:37 +00:00
tree-cfg.h tree-chkp-opt.c (chkp_get_nobnd_fndecl): New. 2014-11-17 13:52:37 +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 tree-chkp-opt.c (chkp_get_nobnd_fndecl): New. 2014-11-17 13:52:37 +00:00
tree-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
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 (built_in_class): Add builtin codes to be used by Pointer Bounds Checker for instrumented builtin... 2014-11-17 13:45:55 +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-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
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 C++14 constexpr support (minus loops and multiple returns) 2014-11-17 13:16:14 -05:00
tree-inline.h C++14 constexpr support (minus loops and multiple returns) 2014-11-17 13:16:14 -05: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 Run pass_expand_omp_ssa after pass_paralellize_loops 2014-11-13 10:51:58 +00: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 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 Remove VEC_RSHIFT_EXPR tree code, now unused 2014-11-13 16:35:06 +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 re PR tree-optimization/63914 (ICE in set_lattice_value, at tree-ssa-ccp.c:517) 2014-11-18 13:03:46 +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 tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate IFN_GOMP_SIMD_LANE without lhs as useless. 2014-11-14 20:41:00 +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-dse.c ggcplug.c: Shuffle includes to include gcc-plugin.h earlier. 2014-10-27 12:41:01 +00:00
tree-ssa-forwprop.c Always combine comparisons or conversions from booleans. 2014-11-17 02:01:36 +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 tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message for max-completely-peeled-insns limit. 2014-11-15 12:06:23 +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 tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h, ipa-ref.h, plugin-api.h. 2014-11-17 13:55:49 +00:00
tree-ssa-structalias.c passes.c (execute_one_pass): Do not apply all transforms prior every simple IPA pass. 2014-11-16 19:36:37 +00:00
tree-ssa-tail-merge.c Fix tail-merge pass for dead type-unsafe code 2014-11-19 10:44:58 +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 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
tree-streamer-out.c lto-streamer-out.c (hash_tree): Use cl_optimization_hash. 2014-11-15 16:53:51 +00:00
tree-streamer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-streamer.h
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 [Vectorizer] Split vect_gen_perm_mask into _checked and _any variants 2014-11-13 16:20:13 +00:00
tree-vect-generic.c Remove VEC_RSHIFT_EXPR tree code, now unused 2014-11-13 16:35:06 +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 [Vectorizer] Tidy up vect_create_epilog / use_scalar_result 2014-11-14 17:20:40 +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 re PR tree-optimization/63915 (gomp/pr60823-2.c:31:1: error: dead STMT in EH table) 2014-11-19 10:50:58 +01:00
tree-vectorizer.c cgraph.h: Flatten. 2014-10-28 16:17:19 +00:00
tree-vectorizer.h [Vectorizer] Split vect_gen_perm_mask into _checked and _any variants 2014-11-13 16:20:13 +00:00
tree-vrp.c gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted to no_follow_ssa_edges. 2014-11-14 13:32:56 +00:00
tree.c * tree.c (warn_deprecated_use): Show declaration with inform. 2014-11-18 08:36:38 -05:00
tree.def Remove VEC_RSHIFT_EXPR tree code, now unused 2014-11-13 16:35:06 +00:00
tree.h tree.c (element_mode, [...]): New functions. 2014-11-18 10:26:31 +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 re PR sanitizer/63913 (ICE: verify_gimple failed: statement marked for throw, but doesn't with -fnon-call-exceptions -fsanitize=bool) 2014-11-19 10:27:30 +01: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 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 fibonacci_heap is used for var-tracking. 2014-11-18 16:18:46 +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 [PATCH 3/7] OpenMP 4.0 offloading infrastructure: Offload tables. 2014-11-13 13:44:04 +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
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 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

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.