gcc/gcc
Andrew Pinski 7745730ff6 explow.c (convert_memory_address_addr_space): Rename to ...
2014-10-14  Andrew Pinski  <apinski@cavium.com>

	* explow.c (convert_memory_address_addr_space): Rename to ...
	(convert_memory_address_addr_space_1): This.  Add in_const argument.
	Inside a CONST RTL, permute the conversion and addition of constant
	for zero and sign extended pointers.
	(convert_memory_address_addr_space): New function.

From-SVN: r216230
2014-10-14 17:39:16 -07:00
..
ada re PR ada/63225 (ada bootstrap failure when -fno-inline in STAGE1_CFLAGS) 2014-10-13 08:19:45 +00:00
c More missed bits from the big __intN patch 2014-10-14 16:53:29 -04:00
c-family Missed bit of previous commit. 2014-10-14 16:01:39 -04:00
common remove score-* support 2014-10-04 14:53:41 +00:00
config msp430-modes.def (PSI): Add. 2014-10-14 17:35:03 -04:00
cp More missed bits from the big __intN patch 2014-10-14 16:53:29 -04:00
doc re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
fortran move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
ginclude re PR target/58757 (Advertise the lack of denormal support on alpha without -mieee) 2014-09-11 20:55:37 +00:00
go compiler: Permit "for range x" clauses. 2014-10-09 23:56:07 +00:00
java move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
lto machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
objc move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
objcp
po
testsuite machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog explow.c (convert_memory_address_addr_space): Rename to ... 2014-10-14 17:39:16 -07:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2014-10-15 00:16:19 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in * Makefile.in (TAGS): Tag ../include files. 2014-10-13 19:57:14 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
alias.c re PR rtl-optimization/63475 (Postreload CSE propagates aliased memory operand) 2014-10-14 20:40:59 +02:00
alias.h
alloc-pool.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
alloc-pool.h
asan.c asan.c (instrument_derefs): BIT_FIELD_REF added. 2014-10-13 10:44:45 +00:00
asan.h
attribs.c
attribs.h
auto-inc-dec.c
basic-block.h control_flow_insn_p takes an insn 2014-09-08 20:52:19 +00:00
bb-reorder.c
bb-reorder.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
bitmap.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
builtins.c
builtins.def
builtins.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
caller-save.c lra-constraints.c (inherit_in_ebb): Handle calls with multiple return values. 2014-10-03 08:43:21 +00:00
calls.c calls.c (expand_call): Do not use the target as the return slot if it is not sufficiently aligned. 2014-10-06 17:30:34 +00:00
calls.h
cfg-flags.def
cfg.c
cfganal.c
cfgbuild.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
cfgcleanup.c cfgcleanup.c (try_optimize_cfg): Do not remove label with LABEL_PRESERVE_P flag set. 2014-09-23 08:26:34 +00:00
cfgexpand.c cfgexpand.c (expand_debug_expr): Get address space from operand 0 (BASE). 2014-10-08 13:33:43 +01:00
cfgexpand.h
cfghooks.c
cfghooks.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
cfgloop.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
cfgloop.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c cfgrtl.c [...]: Update comments and fix spacing to conform to coding style. 2014-09-19 10:28:42 -06:00
cgraph.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
cgraph.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
cgraphbuild.c
cgraphclones.c cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR 2014-10-03 19:52:11 +00:00
cgraphunit.c cgraphunit.c (symbol_table::process_new_functions): Missing call for call_cgraph_insertion_hooks added. 2014-10-10 23:37:42 +00:00
cif-code.def
cilk-builtins.def
cilk-common.c
cilk.h
cilkplus.def
collect-utils.c
collect-utils.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
collect2-aix.c
collect2-aix.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
collect2.c
collect2.h
combine-stack-adj.c Handle cfa adjustments in csa pass 2014-10-13 13:20:44 -07:00
combine.c re PR rtl-optimization/62151 (wrong code at -O2 and -O3 on x86_64-linux-gnu) 2014-10-02 04:18:01 +02:00
common.md
common.opt common.opt: New option. 2014-09-26 11:03:09 +03:00
compare-elim.c
conditions.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
config.build
config.gcc linux64.h: Remove. 2014-10-08 16:14:11 +00:00
config.host
config.in
configure [AArch64] Add --enable-fix-cortex-a53-835769 configure-time option 2014-10-10 12:31:51 +00:00
configure.ac [AArch64] Add --enable-fix-cortex-a53-835769 configure-time option 2014-10-10 12:31:51 +00:00
context.c
context.h
convert.c convert.c (convert_to_integer): Do not introduce useless conversions between integral types. 2014-10-03 10:28:50 +00:00
convert.h
coretypes.h coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn): Define. 2014-09-10 11:01:35 +00:00
coverage.c
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
cse.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
cselib.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
cselib.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c Fix signed integer overflow in data-streamer.c 2014-09-30 07:07:55 +00:00
data-streamer.h
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h Remove no-longer-needed fp-bit target macros. 2014-09-08 13:22:56 +01:00
df-core.c
df-problems.c
df-scan.c
df.h
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h diagnostic.c (warning_n): New function. 2014-09-20 03:06:26 +00:00
diagnostic.c diagnostic.c (warning_n): New function. 2014-09-20 03:06:26 +00:00
diagnostic.def
diagnostic.h
dojump.c
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
dumpfile.c
dumpfile.h
dwarf2asm.c
dwarf2asm.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
dwarf2cfi.c * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering. 2014-10-06 09:58:42 +00:00
dwarf2out.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
dwarf2out.h
emit-rtl.c re PR rtl-optimization/63348 (gcc.dg/pr43670.c fail on MIPS) 2014-09-25 19:58:35 +02:00
emit-rtl.h INSN_LOCATION takes an rtx_insn 2014-09-09 15:20:07 +00:00
errors.c
errors.h
et-forest.c
et-forest.h
except.c
except.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
exec-tool.in
explow.c explow.c (convert_memory_address_addr_space): Rename to ... 2014-10-14 17:39:16 -07:00
expmed.c
expmed.h
expr.c revert: calls.c (precompute_arguments): Check promoted_for_signed_and_unsigned_p and set the promoted mode. 2014-09-10 00:19:23 +00:00
expr.h revert: calls.c (precompute_arguments): Check promoted_for_signed_and_unsigned_p and set the promoted mode. 2014-09-10 00:19:23 +00:00
file-find.c
file-find.h
final.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
fixed-value.c
fixed-value.h
flag-types.h asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
flags.h
fold-const.c Workaround following [PATCH] Pul all constants last in tree_swap_operands_p 2014-09-22 14:20:16 +00:00
fold-const.h
fp-test.c
function.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
function.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
fwprop.c
gcc-ar.c
gcc-plugin.h
gcc-symtab.h
gcc.c Fix build breakage on darwin introduced by me in r215861 2014-10-03 20:25:30 +00:00
gcc.h
gcov-counter.def Makefile.in: Fix dependence. 2014-10-07 04:02:31 +00:00
gcov-dump.c
gcov-io.c
gcov-io.h Makefile.in: Fix dependence. 2014-10-07 04:02:31 +00:00
gcov-iov.c
gcov-tool.c Add overlap functionality to gcov-tool. 2014-10-08 21:51:41 +00:00
gcov.c
gcse.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
gcse.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
genattrtab.c Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
genautomata.c lra.c (lra_set_insn_recog_data): Fix typo in comment. 2014-09-25 10:34:03 -06:00
gencheck.c
genchecksum.c
gencodes.c
genconditions.c Fix dupplicate declaration of ggc_realloc in gencondmd 2014-10-04 13:29:26 +00:00
genconfig.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
genconstants.c
genemit.c
genenums.c
genextract.c insn_extract takes an rtx_insn 2014-09-10 14:35:16 +00:00
genflags.c
gengenrtl.c Handcode gen_rtx_INSN 2014-09-09 15:14:03 +00:00
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gengtype.h
genhooks.c
genmddeps.c
genmddump.c
genmodes.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
genmultilib
genopinit.c
genoutput.c [Patch] Teach genrecog/genoutput that scratch registers require write constraint modifiers 2014-09-19 10:37:40 +00:00
genpeep.c
genpreds.c
genrecog.c Re: [Patch] Teach genrecog/genoutput that scratch registers require write constraint modifiers 2014-09-19 16:23:44 +00:00
gensupport.c
gensupport.h
ggc-common.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
ggc-internal.h
ggc-none.c
ggc-page.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
ggc.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-builder.c
gimple-builder.h
gimple-expr.c
gimple-expr.h
gimple-fold.c re PR c++/63419 (verify_gimple failed: "vector CONSTRUCTOR element is not a GIMPLE value") 2014-10-13 07:58:05 +00:00
gimple-fold.h re PR c++/63419 (verify_gimple failed: "vector CONSTRUCTOR element is not a GIMPLE value") 2014-10-13 07:58:05 +00:00
gimple-iterator.c
gimple-iterator.h
gimple-low.c
gimple-low.h
gimple-pretty-print.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
gimple-pretty-print.h
gimple-ssa-isolate-paths.c
gimple-ssa-strength-reduction.c
gimple-ssa.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple-walk.c
gimple-walk.h
gimple.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
gimple.def
gimple.h
gimplify-me.c
gimplify-me.h
gimplify.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
gimplify.h
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
graphite-blocking.c
graphite-clast-to-gimple.c
graphite-clast-to-gimple.h
graphite-dependences.c
graphite-htab.h
graphite-interchange.c
graphite-isl-ast-to-gimple.c
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c
graphite-poly.c
graphite-poly.h
graphite-scop-detection.c
graphite-scop-detection.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
graphite-sese-to-poly.c
graphite-sese-to-poly.h
graphite.c
gsstruct.def
gstab.h
gsyms.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
gsyslimits.h
gtm-builtins.def
haifa-sched.c re PR debug/63285 (-fcompare-debug scheduler related failure) 2014-09-18 19:14:19 +00:00
hard-reg-set.h hard-reg-set.h: Include hash-table.h. 2014-09-22 07:38:12 +00:00
hash-map.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
hash-set.h
hash-table.c
hash-table.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
highlev-plugin-common.h
hooks.c Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
hooks.h Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
hwint.c
hwint.h
ifcvt.c re PR inline-asm/63282 (ICE in redirect_jump_1) 2014-09-30 12:30:45 +02:00
inchash.c
inchash.h
incpath.c
incpath.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
init-regs.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
internal-fn.def asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
internal-fn.h
intl.c
intl.h
ipa-comdats.c
ipa-cp.c ipa-polymorphic-call.c (walk_ssa_copies): Recognize NULL pointer checks. 2014-10-05 05:02:19 +00:00
ipa-devirt.c ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE when speculation is added. 2014-10-02 07:03:15 +00:00
ipa-inline-analysis.c
ipa-inline-transform.c
ipa-inline.c cgraph.h (cgraph_node::get_fun): Declare. 2014-10-07 09:18:37 +00:00
ipa-inline.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
ipa-polymorphic-call.c re PR bootstrap/63496 (../../gcc/ipa-polymorphic-call.c:2117:1: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]) 2014-10-13 12:44:00 +00:00
ipa-profile.c
ipa-prop.c ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive sanity check. 2014-10-05 19:51:39 +00:00
ipa-prop.h ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE when speculation is added. 2014-10-02 07:03:15 +00:00
ipa-pure-const.c re PR c/61405 (Not emitting "enumeration value not handled in switch" warning for bit-field enums) 2014-09-24 17:23:56 +00:00
ipa-ref.c
ipa-ref.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
ipa-reference.c
ipa-reference.h
ipa-split.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
ipa-utils.c
ipa-utils.h ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE when speculation is added. 2014-10-02 07:03:15 +00:00
ipa-visibility.c Add an no_reorder attribute for LTO 2014-09-24 03:29:24 +00:00
ipa.c ipa.c (walk_polymorphic_call_targets): Avoid ICE when dumping during WPA. 2014-10-02 05:49:32 +00:00
ira-build.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-color.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-conflicts.c ira-int.h (ira_allocno): Add "wmode" field. 2014-09-30 08:04:32 +00:00
ira-costs.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-emit.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-int.h ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira-lives.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira.c ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
ira.h ira.c: Fix typo in comment. 2014-10-14 13:13:33 -06:00
is-a.h
jump.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
langhooks-def.h PR debug/63239 Add DWARF representation for C++11 deleted member function. 2014-10-05 15:25:03 +00:00
langhooks.c common.opt (flto-odr-type-merging): New flag. 2014-09-11 23:16:42 +00:00
langhooks.h PR debug/63239 Add DWARF representation for C++11 deleted member function. 2014-10-05 15:25:03 +00:00
lcm.c
libfuncs.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c
loop-init.c re PR bootstrap/63204 (gtype-desc.c:887:40: error: 'struct loop' has no member named 'former_header' breaks bootstrap) 2014-09-08 12:01:50 +00:00
loop-invariant.c
loop-iv.c
loop-unroll.c
lower-subreg.c
lower-subreg.h
lra-assigns.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
lra-coalesce.c
lra-constraints.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
lra-eliminations.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
lra-int.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
lra-lives.c Fix ICE in bitmap routines with LRA and inline assembly language 2014-09-10 10:36:00 +00:00
lra-spills.c
lra.c lra.c (lra_set_insn_recog_data): Fix typo in comment. 2014-09-25 10:34:03 -06:00
lra.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
lto-cgraph.c cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR 2014-10-03 19:52:11 +00:00
lto-compress.c
lto-compress.h
lto-opts.c lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. 2014-10-07 07:56:43 +00:00
lto-section-in.c
lto-section-names.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
lto-section-out.c
lto-streamer-in.c
lto-streamer-out.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
lto-streamer.c
lto-streamer.h
lto-wrapper.c lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. 2014-10-07 07:56:43 +00:00
machmode.def machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
machmode.h machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
main.c
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c single_set takes an insn 2014-09-09 17:02:34 +00:00
omega.c
omega.h
omp-builtins.def
omp-low.c re PR libgomp/61200 (internal compiler error: Segmentation fault, assert & openmp) 2014-10-03 09:29:42 +02:00
omp-low.h
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk opth-gen.awk: Generate mapping from cpp message reasons to the options that enable them. 2014-09-09 22:17:54 +00:00
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
opts.h
output.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
params.c
params.def params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
params.h
pass_manager.h
passes.c
passes.def re PR middle-end/35545 (tracer pass is run too late) 2014-09-27 00:03:23 +00:00
plugin.c
plugin.def
plugin.h
postreload-gcse.c recog_memoized works on an rtx_insn * 2014-09-09 16:34:56 +00:00
postreload.c
predict.c re PR c/61405 (Not emitting "enumeration value not handled in switch" warning for bit-field enums) 2014-09-24 17:23:56 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c INSN_LOCATION takes an rtx_insn 2014-09-09 15:20:07 +00:00
print-rtl.h
print-tree.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
print-tree.h
profile.c params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
profile.h tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
read-md.c
read-md.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
read-rtl.c
real.c
real.h
realmpfr.c
realmpfr.h
recog.c recog.c (scratch_operand): Do not simply allow all hard registers: only allow those that are allocatable. 2014-09-19 18:42:26 +02:00
recog.h Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
ree.c [Ree] Ensure inserted copy don't change the number of hard registers 2014-09-12 09:29:16 +00:00
reg-notes.def
reg-stack.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
regcprop.c re PR rtl-optimization/57003 (gcc breaks -O2 optimization with Wine(64) - links/info/bisect of commits included) 2014-10-09 08:36:08 +02:00
regcprop.h
reginfo.c hard-reg-set.h: Include hash-table.h. 2014-09-22 07:38:12 +00:00
regrename.c
regrename.h
regs.h Eliminate the checked cast from get_call_reg_set_usage 2014-09-05 14:13:28 +00:00
regset.h
regstat.c
reload.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
reload.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
reload1.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
reorg.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
resource.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
resource.h
rtl-error.c error_for_asm and warning_for_asm take const rtx_insn * 2014-09-10 14:42:05 +00:00
rtl-error.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
rtl-iter.h
rtl.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
rtl.def
rtl.h move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
rtlanal.c rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue): Add the parts of an insn in reverse order, with the pattern at the top of the queue. 2014-10-13 07:05:46 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c
sanitizer.def [libsanitizer merge from upstream r218156] 2014-09-23 17:59:53 +00:00
sbitmap.c
sbitmap.h
sched-deps.c deps_start_bb takes an insn 2014-09-15 15:42:57 +00:00
sched-ebb.c
sched-int.h deps_start_bb takes an insn 2014-09-15 15:42:57 +00:00
sched-rgn.c
sched-vis.c Introduce LABEL_REF_LABEL 2014-09-11 20:47:39 +00:00
sdbout.c
sdbout.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c Replace INSN_DELETED_P with rtx_insn member functions 2014-09-16 01:23:42 +00:00
sel-sched-ir.h Use rtx_insn for various jump-handling functions and predicates 2014-09-05 15:15:43 +00:00
sel-sched.c Instruction attributes take an rtx_insn * 2014-09-15 16:14:15 +00:00
sel-sched.h
sese.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
sese.h
shrink-wrap.c re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
shrink-wrap.h shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED. 2014-09-09 05:30:36 +00:00
signop.h
simplify-rtx.c re PR rtl-optimization/62208 (ICE with -fwhole-program on valid code at -O3 on x86_64-linux-gnu in trunc_int_for_mode, at explow.c:56) 2014-09-07 08:54:49 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssa-iterators.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c
stmt.h
stor-layout.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
stor-layout.h
store-motion.c single_set takes an insn 2014-09-09 17:02:34 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
stringpool.h
symtab.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
sync-builtins.def
system.h Remove LIBGCC2_LONG_DOUBLE_TYPE_SIZE target macro. 2014-09-23 01:48:46 +01:00
target-def.h
target-globals.c re PR bootstrap/63280 (Double free in GCC compiled with LTO and -O3.) 2014-09-23 14:47:45 +00:00
target-globals.h bb-reorder.h (default_target_bb_reorder): Remove redundant GTY. 2014-09-09 12:12:06 +00:00
target-hooks-macros.h
target.def re PR target/8340 (ICE on x86 inline asm w/ -fPIC) 2014-10-13 17:26:49 +00:00
target.h
targhooks.c Remove LIBGCC2_HAS_?F_MODE target macros. 2014-09-12 13:05:18 +01:00
targhooks.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
toplev.h
tracer.c
trans-mem.c Add an no_reorder attribute for LTO 2014-09-24 03:29:24 +00:00
trans-mem.h
tree-affine.c
tree-affine.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
tree-cfg.h
tree-cfgcleanup.c re PR debug/63284 (-fcompare-debug issue due to redirection to __builtin_unreachable ()) 2014-09-17 21:05:49 +02:00
tree-cfgcleanup.h
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-core.h machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
tree-data-ref.c
tree-data-ref.h
tree-dfa.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
tree-dfa.h
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c re PR ada/62019 (gnat.dg/weak2.adb fails everywhere) 2014-10-14 21:04:05 +00:00
tree-eh.h
tree-emutls.c
tree-hasher.h
tree-if-conv.c
tree-inline.c re PR c++/62127 (ICE with VLA in constructor) 2014-10-13 14:43:24 +00:00
tree-inline.h
tree-into-ssa.c
tree-into-ssa.h
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c
tree-nested.c
tree-nested.h
tree-nrv.c re PR lto/61969 (wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)) 2014-10-09 08:21:46 +00:00
tree-object-size.c
tree-object-size.h
tree-outof-ssa.c
tree-outof-ssa.h
tree-parloops.c
tree-parloops.h
tree-pass.h
tree-phinodes.c
tree-phinodes.h
tree-predcom.c
tree-pretty-print.c tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
tree-pretty-print.h tree-pretty-print.c (dump_location): Make it extern. 2014-10-03 21:22:10 +00:00
tree-profile.c params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
tree-scalar-evolution.c
tree-scalar-evolution.h
tree-sra.c re PR rtl-optimization/63375 (reordering of reads across fences) 2014-10-02 18:49:14 +02:00
tree-ssa-address.c
tree-ssa-address.h
tree-ssa-alias.c cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced. 2014-09-26 10:37:44 +00:00
tree-ssa-alias.h cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced. 2014-09-26 10:37:44 +00:00
tree-ssa-ccp.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
tree-ssa-coalesce.c
tree-ssa-coalesce.h
tree-ssa-copy.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:39:44 +00:00
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c
tree-ssa-dom.h
tree-ssa-dse.c
tree-ssa-forwprop.c
tree-ssa-ifcombine.c
tree-ssa-live.c
tree-ssa-live.h
tree-ssa-loop-ch.c
tree-ssa-loop-im.c tree-ssa-ccp.c (prop_value_d): Rename to ... 2014-09-22 19:41:02 +00:00
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c
tree-ssa-loop.h
tree-ssa-math-opts.c re PR tree-optimization/63266 (Test regression: gcc.target/sh/pr53568-1.c) 2014-09-24 08:27:21 +00:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phiopt.c
tree-ssa-phiprop.c
tree-ssa-pre.c re PR tree-optimization/63512 (ICE: error: virtual use of statement not up-to-date) 2014-10-14 07:36:02 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c
tree-ssa-sccvn.c
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-strlen.c
tree-ssa-structalias.c
tree-ssa-tail-merge.c re PR tree-optimization/63380 (Wrong constant folding) 2014-10-09 12:45:07 +00:00
tree-ssa-ter.c
tree-ssa-ter.h
tree-ssa-threadedge.c
tree-ssa-threadedge.h
tree-ssa-threadupdate.c re PR bootstrap/63432 (profiledbootstrap failure with bootstrap-lto) 2014-10-09 04:38:24 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c
tree-ssa-uninit.c
tree-ssa.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
tree-ssa.h
tree-ssanames.c
tree-ssanames.h
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
tree-streamer-out.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
tree-streamer.c
tree-streamer.h
tree-switch-conversion.c re PR tree-optimization/63464 (compare one character to many: faster) 2014-10-10 14:15:30 +02:00
tree-tailcall.c
tree-vect-data-refs.c tree-vect-data-refs.c (vect_permute_load_chain, [...]): Fix a typo in temporary var names, suffle3 to shuffle3. 2014-10-03 10:15:03 +02:00
tree-vect-generic.c
tree-vect-loop-manip.c
tree-vect-loop.c
tree-vect-patterns.c
tree-vect-slp.c re PR tree-optimization/63379 (Incorrect vectorization when enabling SSE and O3, initialises loop with wrong value) 2014-10-10 11:17:13 +00:00
tree-vect-stmts.c re PR tree-optimization/63341 (Vectorization miscompilation with -mcpu=power7) 2014-09-25 10:12:49 +02:00
tree-vectorizer.c
tree-vectorizer.h re PR tree-optimization/63341 (Vectorization miscompilation with -mcpu=power7) 2014-09-25 10:12:49 +02:00
tree-vrp.c re PR tree-optimization/63445 (request: make -Wstrict-overflow avoid a class of false positives) 2014-10-09 08:20:53 +00:00
tree.c machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
tree.def
tree.h machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
treestruct.def
tsan.c
tsan.h
tsystem.h
typeclass.h
ubsan.c asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
ubsan.h asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE. 2014-10-10 17:19:25 +00:00
valtrack.c
valtrack.h
value-prof.c params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
value-prof.h params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param. 2014-10-07 04:06:12 +00:00
var-tracking.c
varasm.c move many gc hashtab to hash_table 2014-10-12 22:22:53 +00:00
varasm.h
varpool.c cgraph.h, [...]: Rename all instances of DECL_ABSTRACT to DECL_ABSTRACT_P. 2014-09-24 19:50:24 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c
vtable-verify.h
web.c
wide-int-print.cc
wide-int-print.h
wide-int.cc
wide-int.h
xcoff.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00
xcoffout.c
xcoffout.h Add header guard to several header files. 2014-09-18 23:34:23 +01:00

README.Portability

Copyright (C) 2000-2014 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until now has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


String literals
---------------

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

Some compilers like MSVC++ have fairly low limits on the maximum
length of a string literal; 509 is the lowest we've come across.  You
may need to break up a long printf statement into many smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


Avoid unnecessary test before free
----------------------------------

Since SunOS 4 stopped being a reasonable portability target,
(which happened around 2007) there has been no need to guard
against "free (NULL)".  Thus, any guard like the following
constitutes a redundant test:

  if (P)
    free (P);

It is better to avoid the test.[*]
Instead, simply free P, regardless of whether it is NULL.

[*] However, if your profiling exposes a test like this in a
performance-critical loop, say where P is nearly always NULL, and
the cost of calling free on a NULL pointer would be prohibitively
high, consider using __builtin_expect, e.g., like this:

  if (__builtin_expect (ptr != NULL, 0))
    free (ptr);



Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


Suffixes on Integer Constants
-----------------------------

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (int a, int b)
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending.

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.