gcc/gcc
James Greenhalgh 268c3b4758 [AArch64 costs 9/18] Better cost logical operations
gcc/

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
	logical operations.


Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

From-SVN: r210501
2014-05-16 08:59:07 +00:00
..
ada * seh_init.c: Fix copyright year. 2014-05-14 22:00:49 +00:00
c re PR c/61162 (possibly bad error location with -Wc++-compat) 2014-05-13 17:41:12 +00:00
c-family invoke.texi: Document new switches -Wno-shadow-ivar, -fno-local-ivars and -fivar-visibility. 2014-05-12 19:12:27 +00:00
common gcc/ 2014-05-14 12:41:42 +00:00
config [AArch64 costs 9/18] Better cost logical operations 2014-05-16 08:59:07 +00:00
cp * call.c (print_conversion_rejection): Use loc consistently. 2014-05-15 08:52:35 -04:00
doc msp430.c (msp430_builtin): Add MSP430_BUILTIN_DELAY_CYCLES. 2014-05-14 17:27:21 -04:00
fortran re PR fortran/60127 (ICE with OpenMP and DO CONCURRENT) 2014-05-12 21:00:08 +02:00
ginclude Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
go compiler: Use backend interface for expressions. 2014-05-06 19:28:03 +00:00
java boehm.c (mark_reference_fields): Don't update the mask when setting pointer_after_end. 2014-05-06 17:46:05 +00:00
lto Update ChangeLogs for wide-int work. 2014-05-06 16:35:35 +00:00
objc Update ChangeLogs for wide-int work. 2014-05-06 16:35:35 +00:00
objcp tree.h (TYPE_IDENTIFIER): Declare. 2014-04-14 18:10:27 +00:00
po * zh_CN.po: Update. 2014-05-15 00:04:48 +01:00
testsuite tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h. 2014-05-16 08:05:50 +00:00
ABOUT-GCC-NLS Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
acinclude.m4 Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
aclocal.m4
addresses.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
alias.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
alias.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
alloc-pool.c configure.ac: Do valgrind header checks unconditionally. 2014-04-28 14:01:40 +00:00
alloc-pool.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
asan.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
asan.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
attribs.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
attribs.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
auto-inc-dec.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
BASE-VER * BASE-VER: Set to 4.9.0. 2014-04-11 14:50:55 +02:00
basic-block.h dominance.c (free_dominance_info): Add overload with function parameter. 2014-04-29 11:37:55 +00:00
bb-reorder.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
bb-reorder.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
bitmap.c re PR debug/61070 (debug_bitmap writes to stdout) 2014-05-06 08:30:57 +00:00
bitmap.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
bt-load.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
builtin-attrs.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
builtin-types.def re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info) 2014-02-07 09:33:23 +00:00
builtins.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
builtins.def gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE. 2014-04-30 07:34:43 +00:00
builtins.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
caller-save.c gcc/ 2014-05-13 10:38:50 +00:00
calls.c Remove PUSH_ARGS_REVERSED from the RTL expander. 2014-04-29 13:46:23 +00:00
calls.h * calls.h: Fix typo in comment. 2014-02-24 23:19:32 -07:00
cfg-flags.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfg.c cfg.c (dump_bb_info): Fix flags check. 2014-04-15 15:12:00 +00:00
cfganal.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfgbuild.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfgcleanup.c cfgcleanup.c (try_forward_edges): Use location_t for locations. 2014-05-14 10:36:23 +00:00
cfgexpand.c -fstack-protector-strong: Instrumentation for return slots 2014-05-09 14:23:46 +02:00
cfgexpand.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfghooks.c re PR ipa/60518 (ICE: in verify_loop_structure, at cfgloop.c:1647) 2014-03-14 12:54:25 +00:00
cfghooks.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfgloop.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
cfgloop.h More gcc/loop-unswitch.c cleanup. 2014-05-07 15:06:46 +02:00
cfgloopanal.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cfgloopmanip.c re PR middle-end/59561 (warning: iteration 4 invokes undefined behavior) 2014-01-25 00:17:25 +01:00
cfgrtl.c cfgcleanup.c (try_forward_edges): Use location_t for locations. 2014-05-14 10:36:23 +00:00
cgraph.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
cgraph.h Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
cgraphbuild.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
cgraphclones.c cgraphclones.c (cgraph_function_versioning): Copy ipa_transforms_to_apply instead of asserting it is empty. 2014-04-22 18:33:29 +02:00
cgraphunit.c cgraphunit.c (analyze_functions): Use correct dump file. 2014-05-09 18:31:57 +00:00
ChangeLog [AArch64 costs 9/18] Better cost logical operations 2014-05-16 08:59:07 +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 Reverted r205593 2014-01-06 16:34:52 +00:00
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def re PR ipa/60315 (template constructor switch optimization) 2014-03-26 02:11:57 +00:00
cilk-builtins.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cilk-common.c cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF. 2014-02-14 14:07:30 +00:00
cilk.h Replace flag_enable_cilkplus with flag_cilkplus. 2014-01-24 15:13:49 -08:00
cilkplus.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
collect2-aix.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
collect2-aix.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
collect2.c gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the... 2014-03-06 08:48:01 +00:00
collect2.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
combine-stack-adj.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
combine.c gcc/ 2014-05-13 10:38:50 +00:00
common.opt -fuse-caller-save - Add command line option 2014-04-24 09:34:06 +00:00
compare-elim.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
conditions.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
config.build Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
config.gcc gcc/ 2014-05-14 12:41:42 +00:00
config.host Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
config.in configure.ac: Do valgrind header checks unconditionally. 2014-04-28 14:01:40 +00:00
configure configure.ac: Fix assembly for explicit JALR relocation check. 2014-05-13 09:36:56 -04:00
configure.ac configure.ac: Fix assembly for explicit JALR relocation check. 2014-05-13 09:36:56 -04:00
context.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
context.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
convert.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
convert.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
coretypes.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
coverage.c ipa-utils.c (ipa_merge_profiles): Merge profile_id. 2014-04-14 17:18:54 +00:00
coverage.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cppbuiltin.c Replace flag_enable_cilkplus with flag_cilkplus. 2014-01-24 15:13:49 -08:00
cppbuiltin.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cppdefault.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cppdefault.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cprop.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
cse.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
cselib.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
cselib.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
cstamp-h.in
data-streamer-in.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
data-streamer-out.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
data-streamer.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
data-streamer.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
DATESTAMP Daily bump. 2014-05-16 00:17:08 +00:00
dbgcnt.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dbgcnt.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dbgcnt.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dbxout.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
dbxout.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dce.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
dce.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ddg.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ddg.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
debug.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
debug.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
defaults.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
DEV-PHASE
df-core.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
df-problems.c df-problems.c (df_rd_confluence_n): Avoid bitmap_copy by using bitmap_and_compl instead of bitmap_and_compl_into. 2014-03-18 14:39:16 +00:00
df-scan.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
df.h re PR rtl-optimization/38518 (Excessive compile time with -O3) 2014-01-17 10:47:59 +00:00
dfp.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
dfp.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
diagnostic-color.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
diagnostic-color.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
diagnostic-core.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
diagnostic.c PR preprocessor/58580 - preprocessor goes OOM with warning for zero literals 2014-01-23 10:13:08 +01:00
diagnostic.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
diagnostic.h PR preprocessor/58580 - preprocessor goes OOM with warning for zero literals 2014-01-23 10:13:08 +01:00
dojump.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
dominance.c dominance.c (free_dominance_info): Add overload with function parameter. 2014-04-29 11:37:55 +00:00
domwalk.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
domwalk.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
double-int.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
double-int.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
dse.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
dumpfile.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dumpfile.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dwarf2asm.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dwarf2asm.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
dwarf2cfi.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
dwarf2out.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
dwarf2out.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
emit-rtl.c rtl.def (VAR_LOCATION): Remove "i" field. 2014-05-13 10:39:08 +00:00
emit-rtl.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
errors.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
errors.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
et-forest.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
et-forest.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
except.c cfgcleanup.c (try_forward_edges): Use location_t for locations. 2014-05-14 10:36:23 +00:00
except.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
exec-tool.in Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
explow.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
expmed.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
expmed.h re PR bootstrap/59934 (Bootstrap fail since r206941: expmed.h:252:33: error: array subscript is above array bounds) 2014-01-27 09:33:39 -07:00
expr.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
expr.h Add clobber_reg 2014-04-25 11:21:40 +00:00
file-find.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
file-find.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
final.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
fixed-value.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
fixed-value.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
flag-types.h gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE. 2014-04-30 07:34:43 +00:00
flags.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
fold-const.c re PR middle-end/61158 (negative shift at fold-const.c:12095) 2014-05-15 12:01:11 +02:00
fold-const.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
fp-test.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c Makefile.in: add shrink-wrap.o. 2014-05-13 07:05:46 +00:00
function.h Makefile.in: add shrink-wrap.o. 2014-05-13 07:05:46 +00:00
fwprop.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
gcc-ar.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gcc-plugin.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gcc-symtab.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gcc.c gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE. 2014-04-30 07:34:43 +00:00
gcc.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gcov-dump.c gnat_ugn.texi: Bump @copying's copyright year. 2014-01-02 22:25:41 +01:00
gcov-io.c re PR gcov-profile/58602 (.gcno files not truncated at gcov_close) 2014-02-03 14:55:36 -07:00
gcov-io.h gcov-io.c (gcov_var): Move from gcov-io.h. 2014-01-08 16:37:08 +00:00
gcov-iov.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gcov.c gnat_ugn.texi: Bump @copying's copyright year. 2014-01-02 22:25:41 +01:00
gcse.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
gcse.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gdbasan.in Put a breakpoint on __sanitizer::Report 2014-01-09 10:40:13 -08:00
gdbhooks.py Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gdbinit.in * gdbinit.in (pel): Define. 2014-02-04 15:34:24 +00:00
gen-pass-instances.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genattr-common.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genattr.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genattrtab.c rtl.def (SYMBOL_REF): Remove middle "0" field. 2014-05-13 10:39:16 +00:00
genautomata.c toplev.c (init_local_tick): Avoid signed integer multiplication overflow. 2014-03-22 15:03:20 +01:00
gencheck.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
genchecksum.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gencodes.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genconditions.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genconfig.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genconstants.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genemit.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
genenums.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genextract.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genflags.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gengenrtl.c rtl.def (VAR_LOCATION): Remove "i" field. 2014-05-13 10:39:08 +00:00
gengtype-lex.l Merge in wide-int. 2014-05-06 16:25:05 +00:00
gengtype-parse.c gengtype: Support explicit pointers in template arguments 2014-05-13 15:17:34 +00:00
gengtype-state.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
gengtype.c gengtype: Support explicit pointers in template arguments 2014-05-13 15:17:34 +00:00
gengtype.h gengtype: Support explicit pointers in template arguments 2014-05-13 15:17:34 +00:00
genhooks.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genmddeps.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genmddump.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genmodes.c genmodes.c (struct mode_data): Add need_bytesize_adj field. 2014-04-17 14:49:49 +02:00
genmultilib Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genopinit.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genoutput.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genpeep.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
genpreds.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
genrecog.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
gensupport.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
gensupport.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ggc-common.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ggc-internal.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ggc-none.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ggc-page.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ggc.h parser.c (synthesize_implicit_template_parm): Use grow_tree_vec. 2014-02-07 02:14:58 +00:00
gimple-builder.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-builder.h [PATCH - obvious] Remove unused create_gimple_tmp declaration 2014-01-27 09:39:21 +00:00
gimple-expr.c re PR middle-end/60746 (ICE segfault in gimple-expr.c:314) 2014-04-04 11:52:35 +00:00
gimple-expr.h re PR middle-end/60746 (ICE segfault in gimple-expr.c:314) 2014-04-04 11:52:35 +00:00
gimple-fold.c gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove pointer propagation special-case. 2014-05-08 10:19:17 +00:00
gimple-fold.h re PR lto/59468 (ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo, at gimple-fold.c:3224) 2014-02-11 22:54:21 +00:00
gimple-iterator.c gimple-iterator.c (gsi_start_edge): New function. 2014-04-17 15:53:59 +02:00
gimple-iterator.h gimple-iterator.c (gsi_start_edge): New function. 2014-04-17 15:53:59 +02:00
gimple-low.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
gimple-low.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-pretty-print.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
gimple-pretty-print.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-ssa-isolate-paths.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
gimple-ssa-strength-reduction.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
gimple-ssa.h Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
gimple-streamer-in.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
gimple-streamer-out.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-streamer.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-walk.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple-walk.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple.c Const-correctness of gimple_call_builtin_p 2014-05-07 19:35:23 +00:00
gimple.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimple.h Const-correctness of gimple_call_builtin_p 2014-05-07 19:35:23 +00:00
gimplify-me.c re PR lto/60635 (ICE when mixing C and Fortran lto1: error: use operand missing for stmt) 2014-03-25 11:43:03 +00:00
gimplify-me.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gimplify.c tree.h (OMP_CLAUSE_LINEAR_STMT): Define. 2014-05-11 22:26:36 +02:00
gimplify.h re PR middle-end/60746 (ICE segfault in gimple-expr.c:314) 2014-04-04 11:52:35 +00:00
glimits.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
godump.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
graph.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graph.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphds.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphds.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-blocking.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-clast-to-gimple.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
graphite-clast-to-gimple.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-dependences.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-htab.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-interchange.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-optimize-isl.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-poly.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-poly.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-scop-detection.c passes.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under the TODO_verify_il umbrella. 2014-04-30 08:06:49 +00:00
graphite-scop-detection.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite-sese-to-poly.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
graphite-sese-to-poly.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
graphite.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
gsstruct.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gstab.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gsyms.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gsyslimits.h
gtm-builtins.def
haifa-sched.c Add implicit parameter to find_all_hard_reg_sets 2014-04-25 11:21:18 +00:00
hard-reg-set.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hash-table.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hash-table.h Makefile.in (TREE_FLOW_H): Remove. 2014-01-09 21:02:43 +00:00
highlev-plugin-common.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hooks.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
hooks.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
host-default.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hosthooks-def.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hosthooks.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hw-doloop.c hw-doloop.c (reorg_loops): Release the bitmap obstack. 2014-01-07 22:51:49 -07:00
hw-doloop.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hwint.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
hwint.h hwint.h (zext_hwi): Fix signed overflow for prec == 63. 2014-05-02 15:35:33 +00:00
ifcvt.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
incpath.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
incpath.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
init-regs.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
input.c PR preprocessor/59935 - caret diagnostics crashes on non-file locations 2014-01-28 16:03:19 +01:00
input.h PR preprocessor/58580 - preprocessor goes OOM with warning for zero literals 2014-01-23 10:13:08 +01:00
insn-addr.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
insn-notes.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
internal-fn.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
internal-fn.def re PR ipa/58721 (The subroutine perdida is no longer inlined in fatigue.f90) 2014-03-18 12:31:04 +01:00
internal-fn.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
intl.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
intl.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ipa-cp.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
ipa-devirt.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
ipa-inline-analysis.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
ipa-inline-transform.c re PR ipa/60640 (ICE edge points to wrong declaration / verify_cgraph_node failed) 2014-04-04 16:11:06 +02:00
ipa-inline.c ipa-inline.h (INLINE_HINT_known_hot): New hint. 2014-04-18 19:36:01 +00:00
ipa-inline.h ipa-inline.h (INLINE_HINT_known_hot): New hint. 2014-04-18 19:36:01 +00:00
ipa-profile.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
ipa-prop.c re PR ipa/61085 (wrong code with -O2 -fno-early-inlining (maybe wrong devirtualization)) 2014-05-15 17:04:18 +02:00
ipa-prop.h ipa-prop.h (ipa_ancestor_jf_data): Update ocmment. 2014-02-19 07:42:06 +00:00
ipa-pure-const.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
ipa-ref-inline.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ipa-ref.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
ipa-ref.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ipa-reference.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
ipa-reference.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ipa-split.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
ipa-utils.c ipa-utils.c (ipa_merge_profiles): Merge profile_id. 2014-04-14 17:18:54 +00:00
ipa-utils.h re PR lto/59468 (ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo, at gimple-fold.c:3224) 2014-02-11 22:54:21 +00:00
ipa.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
ira-build.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ira-color.c defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C expression marco. 2014-05-02 00:03:22 -06:00
ira-conflicts.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ira-costs.c ira-costs.c (find_costs_and_classes): Add missed ira_init_register_move_cost_if_necessary. 2014-01-14 19:08:32 +00:00
ira-emit.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ira-int.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ira-lives.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ira.c gcc/ 2014-05-13 10:38:50 +00:00
ira.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
is-a.h Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
jump.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
langhooks-def.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
langhooks.c The error_mark_node is not an OpenMP mappable type. 2014-03-07 09:46:13 +01:00
langhooks.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
LANGUAGES Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lcm.c re PR tree-optimization/46590 (long compile time with -O2 and many loops) 2014-01-16 13:48:51 +00:00
libfuncs.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
limitx.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
limity.h
lists.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lock-and-run.sh
loop-doloop.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
loop-init.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
loop-invariant.c re PR rtl-optimization/38518 (Excessive compile time with -O3) 2014-01-17 10:47:59 +00:00
loop-iv.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
loop-unroll.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
lower-subreg.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
lower-subreg.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lra-assigns.c re PR target/60675 ([aarch64] internal compiler error: Max. number of generated reload insns per insn is achieved (90)) 2014-03-28 15:27:58 +00:00
lra-coalesce.c re PR rtl-optimization/59511 (FAIL: gcc.target/i386/pr36222-1.c scan-assembler-not movdqa with -mtune=corei7) 2014-01-15 17:32:47 +00:00
lra-constraints.c revert: lra-constraints.c (valid_address_p): Move earlier in file. 2014-05-06 19:22:16 +00:00
lra-eliminations.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lra-int.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lra-lives.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lra-spills.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lra.c re PR rtl-optimization/60501 (LRA emits add patterns which might clobber cc) 2014-03-24 17:38:09 +00:00
lra.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lto-cgraph.c lto-cgraph.c (compute_ltrans_boundary): Make node variables local to their respective blocks. 2014-05-06 17:47:15 +00:00
lto-compress.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lto-compress.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lto-opts.c re PR lto/60319 (wrong code (that hangs) by LTO at -Os and above on x86_64-linux-gnu) 2014-02-25 08:57:42 +00:00
lto-section-in.c lto-section-in.c (lto_get_section_data): Fix const cast. 2014-03-04 12:52:13 +00:00
lto-section-out.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lto-streamer-in.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
lto-streamer-out.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
lto-streamer.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
lto-streamer.h Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
lto-wrapper.c common.opt (lto_partition_model): New enum. 2014-04-15 12:56:16 +00:00
machmode.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
machmode.h machmode.h (bitwise_mode_for_mode): Declare. 2014-04-22 12:46:07 +00:00
main.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
Makefile.in Makefile.in: add shrink-wrap.o. 2014-05-13 07:05:46 +00:00
mcf.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
mkconfig.sh Merge in wide-int. 2014-05-06 16:25:05 +00:00
mode-classes.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
mode-switching.c target.def (mode_switching): New hook vector. 2014-05-13 10:50:51 +02:00
modulo-sched.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
omega.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
omega.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
omp-builtins.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
omp-low.c omp-low.c (expand_parallel_call): Remove shadow variable. 2014-05-14 15:38:57 +02:00
omp-low.h re PR middle-end/59917 (ICE in calc_dfs_tree, at dominance.c:401) 2014-01-29 12:02:46 +01:00
ONEWS
opt-functions.awk opts.h (CL_PCH_IGNORE): Define. 2014-03-03 21:51:58 +00:00
opt-gather.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opt-include.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opt-read.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
optabs.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
optabs.def re PR rtl-optimization/60501 (LRA emits add patterns which might clobber cc) 2014-03-24 17:38:09 +00:00
optabs.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
optc-gen.awk re PR driver/61106 ([4.8/4.9] impliedness of -Wunused-parameter depends on -W option ordering) 2014-05-08 22:17:43 +00:00
optc-save-gen.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opth-gen.awk Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opts-common.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opts-diagnostic.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opts-global.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
opts.c Change -g so that it will override -g1 but not -g3. 2014-05-14 14:48:47 -07:00
opts.h opts.h (CL_PCH_IGNORE): Define. 2014-03-03 21:51:58 +00:00
output.h output.h (output_constant): Delete. 2014-01-20 20:13:10 +00:00
params.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
params.def re PR rtl-optimization/60317 (find_hard_regno_for compile time hog in libvpx) 2014-02-25 20:34:44 +00:00
params.h re PR rtl-optimization/60317 (find_hard_regno_for compile time hog in libvpx) 2014-02-25 20:34:44 +00:00
pass_manager.h merge register_dump_files_1 into register_dump_files and remove more fiddling with properties 2014-04-17 12:36:41 +00:00
passes.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
passes.def Makefile.in (OBJS): Remove loop-unswitch.o. 2014-04-23 13:48:12 +00:00
plugin.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
plugin.def plugin.def: Improve comment for PLUGIN_INCLUDE_FILE. 2014-03-18 19:16:52 +00:00
plugin.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
pointer-set.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
pointer-set.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
postreload-gcse.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
postreload.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
predict.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
predict.def re PR ipa/58721 (The subroutine perdida is no longer inlined in fatigue.f90) 2014-03-18 12:31:04 +01:00
predict.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
prefix.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
prefix.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
pretty-print.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
pretty-print.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
print-rtl.c re PR debug/61188 (Many -fcompare-debug failures) 2014-05-14 15:53:11 +00:00
print-rtl.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
print-tree.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
print-tree.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
profile.c re PR tree-optimization/60003 (wrong code with __builtin_setjmp/__builtin_longjmp and inlining) 2014-02-01 09:40:31 +01:00
profile.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
read-md.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
read-md.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
read-rtl.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
README.Portability README.Portability: Fix typo. 2014-01-30 17:29:25 +00:00
real.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
real.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
realmpfr.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
realmpfr.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
recog.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
recog.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ree.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
reg-notes.def -fuse-caller-save - Add new reg-note REG_CALL_DECL 2014-04-24 09:34:15 +00:00
reg-stack.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
regcprop.c regcprop.h: New file. 2014-05-15 06:54:48 +00:00
regcprop.h regcprop.h: New file. 2014-05-15 06:54:48 +00:00
reginfo.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
regrename.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
regrename.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
regs.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
regset.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
regstat.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
reload.c 014-01-16 Bernd Schmidt <bernds@codesourcery.com> 2014-01-16 13:51:24 -07:00
reload.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
reload1.c re PR target/57935 (ICE in rs6000_secondary_reload_inner:15181, type = load) 2014-02-27 08:27:40 +10:30
reorg.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
resource.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
resource.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
rtl-error.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
rtl-error.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
rtl.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
rtl.def rtl.def (SYMBOL_REF): Remove middle "0" field. 2014-05-13 10:39:16 +00:00
rtl.h rtl.def (SYMBOL_REF): Remove middle "0" field. 2014-05-13 10:39:16 +00:00
rtlanal.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
rtlhooks-def.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
rtlhooks.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sanitizer.def re PR sanitizer/60275 ([UBSAN] Add -f[no-]sanitize-recover/-fsanitize-undefined-trap-on-error to make UBSAN's runtime errors fatal) 2014-04-23 10:20:12 +02:00
sbitmap.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sbitmap.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sched-deps.c re PR debug/52727 (internal compiler error at dwarf2cfi.c2:685) 2014-02-05 10:42:19 -08:00
sched-ebb.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sched-int.h re PR rtl-optimization/58960 (ICE in bmp_iter_set_init) 2014-02-18 09:41:29 +04:00
sched-rgn.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
sched-vis.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
sdbout.c re PR rtl-optimization/56356 (DJGPP compiler crashing) 2014-03-18 21:02:54 +01:00
sdbout.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sel-sched-dump.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sel-sched-dump.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sel-sched-ir.c re PR rtl-optimization/60866 (ICE: in get_seqno_for_a_jump, at sel-sched-ir.c:4068 with -fselective-scheduling -fno-if-conversion) 2014-05-14 16:09:02 +04:00
sel-sched-ir.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sel-sched.c sel-sched.c (calculate_new_fences): New parameter ptime. 2014-02-25 10:41:08 +04:00
sel-sched.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sese.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sese.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
shrink-wrap.c regcprop.h: New file. 2014-05-15 06:54:48 +00:00
shrink-wrap.h shrink-wrap.h: Update comment. 2014-05-15 06:30:58 +00:00
signop.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
simplify-rtx.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
sparseset.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sparseset.h sparseset.h (sparseset_pop): Fix the wrong index. 2014-02-24 18:35:54 +00:00
sreal.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
sreal.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ssa-iterators.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stab.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stack-ptr-mod.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
statistics.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
statistics.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stmt.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
stmt.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stor-layout.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
stor-layout.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
store-motion.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
streamer-hooks.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
streamer-hooks.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stringpool.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
stringpool.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
symtab.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
sync-builtins.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
system.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
target-def.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
target-globals.c parser.c (synthesize_implicit_template_parm): Use grow_tree_vec. 2014-02-07 02:14:58 +00:00
target-globals.h target-globals.c (save_target_globals): Allocate < 4KB structs using GC in payload of target_globals struct instead of... 2014-01-10 21:25:05 +01:00
target-hooks-macros.h Fix DEFHOOKPOD argument order in target-hooks-macros.h comment 2014-04-23 21:29:08 +00:00
target.def target.def (mode_switching): New hook vector. 2014-05-13 10:50:51 +02:00
target.h target.def (mode_switching): New hook vector. 2014-05-13 10:50:51 +02:00
targhooks.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
targhooks.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
timevar.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
timevar.def More gcc/loop-unswitch.c cleanup. 2014-05-07 15:06:46 +02:00
timevar.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tlink.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
toplev.c emit-rtl.c (init_derived_machine_modes): New functionm, split out from... 2014-05-06 17:44:15 +00:00
toplev.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tracer.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
trans-mem.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
trans-mem.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-affine.c tree-affine.c (tree_to_aff_combination): Handle MEM_REF for core part of address expressions. 2014-05-08 09:00:42 +00:00
tree-affine.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-browser.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-browser.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-call-cdce.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-cfg.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-cfg.h passes.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under the TODO_verify_il umbrella. 2014-04-30 08:06:49 +00:00
tree-cfgcleanup.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-cfgcleanup.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-chrec.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-chrec.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-complex.c re PR middle-end/39246 (FAIL: gcc.dg/uninit-13.c) 2014-05-08 01:20:17 +00:00
tree-core.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-data-ref.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-data-ref.h tree-data-ref.h (ddr_is_anti_dependent, [...]): Remove. 2014-01-28 12:49:08 +00:00
tree-dfa.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-dfa.h tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index calculation to match get_ref_base_and_extent. 2014-05-13 13:51:20 +00:00
tree-diagnostic.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-diagnostic.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-dump.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-dump.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-eh.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-eh.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-emutls.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-hasher.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-if-conv.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-inline.c tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h. 2014-05-16 08:05:50 +00:00
tree-inline.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-into-ssa.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-into-ssa.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-iterator.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-iterator.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-loop-distribution.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-nested.c tree.h (OMP_CLAUSE_LINEAR_STMT): Define. 2014-05-11 22:26:36 +02:00
tree-nested.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-nrv.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
tree-object-size.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-object-size.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-outof-ssa.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-outof-ssa.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-parloops.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-parloops.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-pass.h tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-phinodes.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
tree-phinodes.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-predcom.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-pretty-print.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-pretty-print.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-profile.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
tree-scalar-evolution.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-scalar-evolution.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-sra.c re PR tree-optimization/61090 (ICE in build_ref_for_offset) 2014-05-15 16:54:29 +02:00
tree-ssa-address.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-address.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-alias.c re PR tree-optimization/61034 (Optimizing takes too many passes) 2014-05-07 14:19:14 +00:00
tree-ssa-alias.h re PR tree-optimization/61034 (Optimizing takes too many passes) 2014-05-07 14:19:14 +00:00
tree-ssa-ccp.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-coalesce.c re PR lto/60404 (wrong code by LTO on x86_64-linux-gnu) 2014-03-05 09:46:31 +01:00
tree-ssa-coalesce.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-copy.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-copyrename.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-dce.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-dom.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-dom.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-dse.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-forwprop.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-ifcombine.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-live.c re PR middle-end/60291 (slow compile times for any mode (-O0/-O1/-O2) on large .c source file (30MBs)) 2014-02-21 13:14:23 +00:00
tree-ssa-live.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-loop-ch.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-loop-im.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-loop-ivcanon.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-loop-ivopts.c tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New. 2014-05-13 10:09:54 +00:00
tree-ssa-loop-ivopts.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-loop-manip.c passes.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under the TODO_verify_il umbrella. 2014-04-30 08:06:49 +00:00
tree-ssa-loop-manip.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-loop-niter.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-loop-niter.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-loop-prefetch.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
tree-ssa-loop-unswitch.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
tree-ssa-loop.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-loop.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-math-opts.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-operands.c tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P. 2014-04-16 10:50:58 +00:00
tree-ssa-operands.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-phiopt.c re PR tree-optimization/59100 (requesting optimization of safe rotate function) 2014-05-08 13:17:01 +00:00
tree-ssa-phiprop.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-pre.c re PR tree-optimization/61034 (Optimizing takes too many passes) 2014-05-07 14:19:14 +00:00
tree-ssa-propagate.c Makefile.in (GTFILES): Remove tree-ssa-propagate.c. 2014-05-09 07:49:18 +00:00
tree-ssa-propagate.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-reassoc.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-sccvn.c tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h. 2014-05-16 08:05:50 +00:00
tree-ssa-sccvn.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-sink.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-strlen.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-structalias.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-ssa-tail-merge.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-ter.c tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P. 2014-04-16 10:50:58 +00:00
tree-ssa-ter.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-threadedge.c re PR tree-optimization/61009 (Incorrect jump threading in dom) 2014-05-08 22:54:00 -06:00
tree-ssa-threadedge.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-threadupdate.c re PR tree-optimization/60363 (logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4) 2014-05-05 07:36:30 +00:00
tree-ssa-threadupdate.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-ssa-uncprop.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-ssa-uninit.c re PR middle-end/39246 (FAIL: gcc.dg/uninit-13.c) 2014-05-08 01:20:17 +00:00
tree-ssa.c re PR middle-end/39246 (FAIL: gcc.dg/uninit-13.c) 2014-05-08 01:20:17 +00:00
tree-ssa.h passes.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under the TODO_verify_il umbrella. 2014-04-30 08:06:49 +00:00
tree-ssanames.c re PR sanitizer/61095 (miscompile: tsan is broken in gcc trunk, works in 4.9) 2014-05-07 18:00:59 +00:00
tree-ssanames.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-stdarg.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
tree-stdarg.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tree-streamer-in.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-streamer-out.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-streamer.c tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member. 2014-04-03 14:27:02 +00:00
tree-streamer.h tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member. 2014-04-03 14:27:02 +00:00
tree-switch-conversion.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-tailcall.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-vect-data-refs.c re PR tree-optimization/52252 (An opportunity for x86 gcc vectorizer (gain up to 3 times)) 2014-05-07 12:10:22 +00:00
tree-vect-generic.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-vect-loop-manip.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-vect-loop.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-vect-patterns.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree-vect-slp.c re PR tree-optimization/60841 (gcc: internal compiler error: Killed (program cc1) out of memory) 2014-04-17 08:09:02 +00:00
tree-vect-stmts.c re PR tree-optimization/52252 (An opportunity for x86 gcc vectorizer (gain up to 3 times)) 2014-05-07 12:10:22 +00:00
tree-vectorizer.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tree-vectorizer.h re PR tree-optimization/60841 (gcc: internal compiler error: Killed (program cc1) out of memory) 2014-04-17 08:09:02 +00:00
tree-vrp.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree.c tree.h (OMP_CLAUSE_LINEAR_STMT): Define. 2014-05-11 22:26:36 +02:00
tree.def Merge in wide-int. 2014-05-06 16:25:05 +00:00
tree.h tree.h (OMP_CLAUSE_LINEAR_STMT): Define. 2014-05-11 22:26:36 +02:00
treestruct.def Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tsan.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
tsan.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
tsystem.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
typeclass.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
ubsan.c re PR sanitizer/60275 ([UBSAN] Add -f[no-]sanitize-recover/-fsanitize-undefined-trap-on-error to make UBSAN's runtime errors fatal) 2014-04-23 10:20:12 +02:00
ubsan.h ubsan.h (ubsan_create_data): Change second argument's type to const location_t *. 2014-03-26 20:33:40 +01:00
valtrack.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
valtrack.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
value-prof.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
value-prof.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
var-tracking.c rtl.def (VAR_LOCATION): Remove "i" field. 2014-05-13 10:39:08 +00:00
varasm.c Merge in wide-int. 2014-05-06 16:25:05 +00:00
varasm.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
varpool.c Change is-a.h to support typedefs of pointers 2014-04-23 19:06:40 +00:00
vec.c vec.c (vec_prefix::calculate_allocation): Move as inline variant to vec.h. 2014-02-12 16:01:03 +00:00
vec.h vec.c (vec_prefix::calculate_allocation): Move as inline variant to vec.h. 2014-02-12 16:01:03 +00:00
version.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
version.h
vmsdbg.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
vmsdbgout.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
vtable-verify.c pass cfun to pass::execute 2014-04-17 12:37:34 +00:00
vtable-verify.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
web.c tree-pass.h (TODO_verify_ssa, [...]): Remove. 2014-05-06 13:35:40 +00:00
wide-int-print.cc Merge in wide-int. 2014-05-06 16:25:05 +00:00
wide-int-print.h Merge in wide-int. 2014-05-06 16:25:05 +00:00
wide-int.cc Revert wide-int change. 2014-05-09 08:32:37 +00:00
wide-int.h re PR c/61136 (ice in tree_nop_conversion) 2014-05-11 20:21:55 +00:00
xcoff.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
xcoffout.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
xcoffout.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00: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.