gcc/gcc
Chung-Lin Tang 317c184928 opts-common.c (integral_argument): Add support for hexadecimal command option integer arguments.
2013-12-16  Chung-Lin Tang  <cltang@codesourcery.com>

	* opts-common.c (integral_argument): Add support for
	hexadecimal command option integer arguments. Update comments.

From-SVN: r206008
2013-12-16 04:28:24 +00:00
..
ada * gcc-interface/Makefile.in (ARM linux, GNU eabi): Tweak regexp. 2013-12-12 22:59:35 +00:00
c Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
c-family Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
common re PR target/52898 (SH Target: Inefficient DImode comparisons) 2013-12-08 22:15:59 +00:00
config Restore flag_pic in ix86_function_specific_restore 2013-12-14 09:01:49 -08:00
cp comment 2013-12-12 22:58:54 -05:00
doc arc.h (BITS_PER_UNIT): Removed. 2013-12-13 16:38:53 +00:00
fortran re PR fortran/59493 ([OOP] ICE: Segfault on Class(*) pointer association) 2013-12-15 10:49:51 +01:00
ginclude
go compiler: Better error messages for { on line after if/for/switch. 2013-12-12 21:35:02 +00:00
java
lto asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
objc re PR c/52023 ([C11] _Alignof (double) yields wrong value on x86) 2013-12-04 22:57:20 +00:00
objcp
po
testsuite re PR ipa/59265 (Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006) 2013-12-15 22:19:33 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c Eliminate BASIC_BLOCK macro. 2013-12-09 20:09:29 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
asan.h
attribs.c
attribs.h
auto-inc-dec.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
BASE-VER
basic-block.h Put back typedef for gcov_working_set_t/gcov_bucket_type 2013-12-10 09:48:42 -08:00
bb-reorder.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
bb-reorder.h
bitmap.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
bitmap.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
bt-load.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
builtin-attrs.def
builtin-types.def
builtins.c
builtins.def
builtins.h
caller-save.c Eliminate BASIC_BLOCK macro. 2013-12-09 20:09:29 +00:00
calls.c Fix REG_PARM_STACK_SPACE usage in expand_call 2013-12-14 08:06:22 +00:00
calls.h
cfg-flags.def
cfg.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cfganal.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cfgbuild.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cfgcleanup.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cfgexpand.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cfgexpand.h
cfghooks.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cfghooks.h
cfgloop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cfgloop.h tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
cfgloopanal.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cfgloopmanip.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
cfgrtl.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
cgraph.c
cgraph.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
cgraphbuild.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cgraphclones.c re PR c++/58477 (ice in cgraph_speculative_call_info) 2013-12-14 18:28:22 +00:00
cgraphunit.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ChangeLog opts-common.c (integral_argument): Add support for hexadecimal command option integer arguments. 2013-12-16 04:28:24 +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.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def
cilk-builtins.def
cilk-common.c
cilk.h Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
cilkplus.def
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
combine.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
common.opt common.opt: Split up -fisolate-erroneous-paths into -fisolate-erroneous-paths-dereference... 2013-12-04 20:18:18 -07:00
compare-elim.c
conditions.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
config.build
config.gcc Fix mips64-linux and s390x-linux builds. 2013-12-10 08:24:10 +00:00
config.host
config.in Regenerate gcc/configure and gcc/config.in 2013-12-11 14:13:43 +01:00
configure Regenerate gcc/configure and gcc/config.in 2013-12-11 14:13:43 +01:00
configure.ac configure.ac: Add check for aarch64 assembler -mabi support. 2013-12-11 13:57:08 +01:00
context.c
context.h
convert.c
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
coverage.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cse.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
cselib.c
cselib.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
DATESTAMP Daily bump. 2013-12-16 00:16:47 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
dbxout.h
dce.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
dce.h
ddg.c
ddg.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
debug.c
debug.h
defaults.h arc.h (BITS_PER_UNIT): Removed. 2013-12-13 16:38:53 +00:00
DEV-PHASE
df-core.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
df-problems.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
df-scan.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
df.h Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic.c
diagnostic.def
diagnostic.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
dojump.c
dominance.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
domwalk.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
domwalk.h
double-int.c
double-int.h
dse.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
dumpfile.c
dumpfile.h
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
dwarf2out.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
dwarf2out.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
emit-rtl.c
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
except.h
exec-tool.in
explow.c
expmed.c re PR middle-end/59134 (infinite loop between store_fixed_bit_field and store_split_bit_field with STRICT_ALIGNMENT) 2013-12-11 17:09:17 +00:00
expmed.h
expr.c expr.c (expand_assignment): Remove dependency on flag_strict_volatile_bitfields. 2013-12-11 17:15:44 +00:00
expr.h
file-find.c
file-find.h
final.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
fixed-value.c
fixed-value.h
flag-types.h Implement -fsanitize=signed-integer-overflow. 2013-12-04 22:47:11 +00:00
flags.h
fold-const.c Implement -fsanitize=signed-integer-overflow. 2013-12-04 22:47:11 +00:00
fold-const.h
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
function.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
fwprop.c
gcc-ar.c
gcc-plugin.h
gcc-symtab.h
gcc.c
gcc.h
gcov-dump.c
gcov-io.c
gcov-io.h Put back typedef for gcov_working_set_t/gcov_bucket_type 2013-12-10 09:48:42 -08:00
gcov-iov.c
gcov.c
gcse.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
gcse.h
gdbasan.in Put a breakpoint on __asan_report_error for ASAN 2013-12-04 06:53:36 -08:00
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c
genautomata.c
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genenums.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c
gengtype.h
genhooks.c
genmddeps.c
genmddump.c
genmodes.c genmodes.c (emit_max_int): Fixed missing parens. 2013-12-13 19:04:14 +00:00
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c genrecog.c (validate_pattern): Treat all messages except missing modes as errors. 2013-12-10 18:28:51 +00:00
gensupport.c
gensupport.h
ggc-common.c
ggc-internal.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ggc-none.c
ggc-page.c
ggc.h
gimple-builder.c
gimple-builder.h
gimple-expr.c
gimple-expr.h
gimple-fold.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
gimple-fold.h
gimple-iterator.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
gimple-iterator.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
gimple-low.c
gimple-low.h
gimple-pretty-print.c
gimple-pretty-print.h
gimple-ssa-isolate-paths.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
gimple-ssa-strength-reduction.c gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard the get_alternative_base call with flag_expensive_optimizations. 2013-12-05 17:28:08 +00:00
gimple-ssa.h
gimple-streamer-in.c Rename macros (basic_block_info_for_function, BASIC_BLOCK_FOR_FUNCTION, 2013-12-09 19:28:00 +00:00
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c
gimple-walk.h
gimple.c Eliminate label_to_block_map macro. 2013-12-09 20:28:31 +00:00
gimple.def
gimple.h tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
gimplify-me.c
gimplify-me.h
gimplify.c re PR libgomp/59467 (copyprivate in the fortran testsuite) 2013-12-12 09:52:06 +01:00
gimplify.h
glimits.h
godump.c
graph.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
graph.h
graphds.c
graphds.h
graphite-blocking.c
graphite-clast-to-gimple.c
graphite-clast-to-gimple.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
graphite-dependences.c
graphite-htab.h
graphite-interchange.c
graphite-optimize-isl.c
graphite-poly.c
graphite-poly.h
graphite-scop-detection.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
graphite-sese-to-poly.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
graphite.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
hard-reg-set.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
hash-table.c
hash-table.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
hw-doloop.h
hwint.c
hwint.h
ifcvt.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
incpath.c
incpath.h
init-regs.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c re PR sanitizer/59503 (Bogus integer-overflow error with long long with -m32) 2013-12-14 12:19:56 +00:00
internal-fn.def tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
internal-fn.h
intl.c
intl.h
ipa-cp.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ipa-devirt.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ipa-inline-analysis.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ipa-inline-transform.c
ipa-inline.c
ipa-inline.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ipa-profile.c
ipa-prop.c re PR ipa/59265 (Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006) 2013-12-15 22:19:33 +00:00
ipa-prop.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ipa-pure-const.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ipa-ref-inline.h asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ipa-ref.c
ipa-ref.h asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ipa-reference.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ipa-reference.h
ipa-split.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ipa-utils.c Rename last_basic_block_for_function to last_basic_block_for_fn. 2013-12-09 19:35:13 +00:00
ipa-utils.h
ipa.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
ira-build.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ira-color.c
ira-conflicts.c
ira-costs.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ira-emit.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ira-int.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ira-lives.c
ira.c ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s. 2013-12-13 20:47:19 +00:00
ira.h ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s. 2013-12-13 20:47:19 +00:00
is-a.h
jump.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
langhooks-def.h Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
langhooks.c Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
langhooks.h Added Compiler Support for _Cilk_spawn and _Cilk_sync for C++. 2013-12-11 10:23:27 -08:00
LANGUAGES
lcm.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c
loop-init.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
loop-invariant.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
loop-iv.c
loop-unroll.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
loop-unswitch.c
lower-subreg.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
lower-subreg.h
lra-assigns.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
lra-coalesce.c re PR middle-end/59470 (libstdc++ miscompilation after r205709) 2013-12-12 15:51:49 +00:00
lra-constraints.c ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s. 2013-12-13 20:47:19 +00:00
lra-eliminations.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
lra-int.h ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s. 2013-12-13 20:47:19 +00:00
lra-lives.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
lra-spills.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
lra.c ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s. 2013-12-13 20:47:19 +00:00
lra.h
lto-cgraph.c cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-out.c
lto-streamer-in.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
lto-streamer-out.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
lto-streamer.c
lto-streamer.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
lto-wrapper.c
machmode.def
machmode.h
main.c
Makefile.in
mcf.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
mkconfig.sh arc.h (BITS_PER_UNIT): Removed. 2013-12-13 16:38:53 +00:00
mode-classes.def
mode-switching.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
modulo-sched.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
omp-low.h
ONEWS
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
optabs.def tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
optabs.h tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c opts-common.c (integral_argument): Add support for hexadecimal command option integer arguments. 2013-12-16 04:28:24 +00:00
opts-diagnostic.h
opts-global.c
opts.c common.opt: Split up -fisolate-erroneous-paths into -fisolate-erroneous-paths-dereference... 2013-12-04 20:18:18 -07:00
opts.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
output.h
params.c
params.def
params.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
pass_manager.h cgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or class opt_pass. 2013-12-06 10:27:20 +00:00
passes.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
passes.def tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
plugin.c
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
postreload.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
predict.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
predict.def
predict.h Implement -fsanitize=signed-integer-overflow. 2013-12-04 22:47:11 +00:00
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-rtl.h
print-tree.c
print-tree.h
profile.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c
README.Portability
real.c
real.h
realmpfr.c
realmpfr.h
recog.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
recog.h
ree.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
reg-notes.def
reg-stack.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
regcprop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
reginfo.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
regrename.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
regrename.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
regs.h
regset.h
regstat.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
reload1.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
reload.c
reload.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
reorg.c
resource.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
rtl.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
rtlanal.c Eliminate redundant vec_select moves. 2013-12-05 17:24:52 +00:00
rtlhooks-def.h
rtlhooks.c
sanitizer.def Implement -fsanitize=signed-integer-overflow. 2013-12-04 22:47:11 +00:00
sbitmap.c
sbitmap.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
sched-deps.c re PR rtl-optimization/59020 (internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933) 2013-12-03 18:35:24 +00:00
sched-ebb.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
sched-int.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
sched-rgn.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
sched-vis.c Eliminate BASIC_BLOCK macro. 2013-12-09 20:09:29 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
sel-sched-dump.h
sel-sched-ir.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
sel-sched-ir.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
sel-sched.c Eliminate BASIC_BLOCK macro. 2013-12-09 20:09:29 +00:00
sel-sched.h
sese.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
sese.h
simplify-rtx.c re PR rtl-optimization/58295 (Missed zero-extension elimination in the combiner) 2013-12-10 22:58:37 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
ssa-iterators.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
stab.def
stack-ptr-mod.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
statistics.c
statistics.h
stmt.c
stmt.h
stor-layout.c
stor-layout.h
store-motion.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symtab.c
sync-builtins.def
system.h
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
target.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
targhooks.c
targhooks.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
toplev.h
tracer.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
trans-mem.c re PR tree-optimization/59149 (diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR) 2013-12-13 17:50:18 +00:00
trans-mem.h
tree-affine.c
tree-affine.h re PR tree-optimization/58296 (ivopts is unable to handle some loops altered by the loop header copying pass) 2013-12-13 11:36:22 +00:00
tree-browser.c
tree-browser.def
tree-call-cdce.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-cfg.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
tree-cfg.h
tree-cfgcleanup.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-cfgcleanup.h
tree-chrec.c
tree-chrec.h
tree-complex.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-core.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-data-ref.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-data-ref.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-dfa.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-eh.h
tree-emutls.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-hasher.h
tree-if-conv.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-inline.c re PR tree-optimization/59386 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu in 64-bit mode) 2013-12-11 10:18:33 +01:00
tree-inline.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-into-ssa.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-into-ssa.h
tree-iterator.c
tree-iterator.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-loop-distribution.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-nested.c
tree-nested.h
tree-nrv.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-object-size.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-object-size.h
tree-outof-ssa.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-outof-ssa.h
tree-parloops.c
tree-parloops.h
tree-pass.h asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
tree-phinodes.c
tree-phinodes.h
tree-predcom.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-pretty-print.c
tree-pretty-print.h
tree-profile.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-scalar-evolution.c re PR tree-optimization/58296 (ivopts is unable to handle some loops altered by the loop header copying pass) 2013-12-13 11:36:22 +00:00
tree-scalar-evolution.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-sra.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-address.c
tree-ssa-address.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-ssa-alias.c
tree-ssa-alias.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-ssa-ccp.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-coalesce.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-coalesce.h
tree-ssa-copy.c re PR tree-optimization/59417 (ICE in determine_value_range, at tree-ssa-loop-niter.c:176) 2013-12-11 10:19:41 +01:00
tree-ssa-copyrename.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-dce.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-dom.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-ifcombine.c
tree-ssa-live.c Eliminate FOR_EACH_BB_REVERSE macro. 2013-12-09 21:16:25 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c re PR tree-optimization/58296 (ivopts is unable to handle some loops altered by the loop header copying pass) 2013-12-13 11:36:22 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c re PR tree-optimization/59417 (ICE in determine_value_range, at tree-ssa-loop-niter.c:176) 2013-12-11 10:19:41 +01:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-loop.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-ssa-math-opts.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-operands.c
tree-ssa-operands.h cgraph.h (cgraph_node_set_iterator, [...]): Remove typedef. 2013-12-10 16:48:44 +00:00
tree-ssa-phiopt.c re PR tree-optimization/45685 (missed conditional move opportunity in loop) 2013-12-13 09:34:39 -07:00
tree-ssa-phiprop.c
tree-ssa-pre.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
tree-ssa-propagate.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
tree-ssa-sccvn.c Eliminate last_basic_block macro. 2013-12-09 20:44:49 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c Eliminate BASIC_BLOCK macro. 2013-12-09 20:09:29 +00:00
tree-ssa-strlen.c
tree-ssa-structalias.c re PR middle-end/38474 (compile time explosion in dataflow_set_preserve_mem_locs at -O3) 2013-12-10 12:31:39 +00:00
tree-ssa-tail-merge.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-ter.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-ter.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c re PR rtl-optimization/59446 (loop2_doloop creates constant comparison and dead jump) 2013-12-11 15:15:14 -07:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa-uninit.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-ssa.h
tree-ssanames.c
tree-ssanames.h
tree-stdarg.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-stdarg.h
tree-streamer-in.c
tree-streamer-out.c
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-tailcall.c
tree-vect-data-refs.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vect-generic.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree-vect-loop-manip.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vect-loop.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vect-patterns.c
tree-vect-slp.c
tree-vect-stmts.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vectorizer.c tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vectorizer.h tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field. 2013-12-10 12:46:01 +01:00
tree-vrp.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tree.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
tree.def re PR debug/37132 (Debug: No DW_TAG_namelist emitted for NAMELISTS) 2013-12-04 20:59:42 +01:00
tree.h re PR debug/37132 (Debug: No DW_TAG_namelist emitted for NAMELISTS) 2013-12-04 20:59:42 +01:00
treestruct.def
tsan.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
tsan.h
tsystem.h
typeclass.h
ubsan.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
ubsan.h re PR sanitizer/59333 (ICE with long long and -m32 -fsanitize=undefined) 2013-12-05 18:03:44 +00:00
valtrack.c
valtrack.h
value-prof.c Eliminate FOR_EACH_BB macro. 2013-12-09 21:06:06 +00:00
value-prof.h
var-tracking.c * var-tracking.c (add_stores): Fix oversight in latest commit. 2013-12-14 15:24:58 +00:00
varasm.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
varasm.h
varpool.c asan.c: Remove struct tags when referring to class varpool_node. 2013-12-06 10:40:53 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c re PR sanitizer/59437 (ICE in for g++ -S -fvtable-verify=std -fsanitize=null) 2013-12-10 10:49:39 +00:00
vtable-verify.h
web.c Eliminate FOR_ALL_BB macro. 2013-12-09 21:29:15 +00:00
xcoff.h
xcoffout.c
xcoffout.h

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