This is the second set of patches which updates the #includes required
for compilation. I've reduced it to the base required set, except for
the target config files... Most seem to require it, so in the interest
of not breaking a target, I simply include builtins.h in all target
config files that included tree.h or expr.h.
GO changes can now be directly checked in, is that right Ian?
Andrew
* asan.c: Include builtins.h.
* cfgexpand.c: Likewise.
* convert.c: Likewise.
* emit-rtl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* gimple-fold.c: Likewise.
* gimple-ssa-strength-reduction.c: Likewise.
* gimplify.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-prop.c: Likewise.
* lto-streamer-out.c: Likewise.
* stmt.c: Likewise.
* tree-inline.c: Likewise.
* tree-object-size.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-ccp.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-streamer-in.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-stmts.c: Likewise.
c
* c-decl.c: Include builtins.h.
* c-parser.c: Likewise.
cp
* decl.c: Include builtins.h.
* semantics.c: Likewise.
go
* go-gcc.cc: Include builtins.h.
lto
* lto-symtab.c: Include builtins.h.
config
* aarch64/aarch64.c: Include builtins.h.
* alpha/alpha.c: Likewise.
* arc/arc.c: Likewise.
* arm/arm.c: Likewise.
* avr/avr.c: Likewise.
* bfin/bfin.c: Likewise.
* c6x/c6x.c: Likewise.
* cr16/cr16.c: Likewise.
* cris/cris.c: Likewise.
* epiphany/epiphany.c: Likewise.
* fr30/fr30.c: Likewise.
* frv/frv.c: Likewise.
* h8300/h8300.c: Likewise.
* i386/i386.c: Likewise.
* i386/winnt.c: Likewise.
* ia64/ia64.c: Likewise.
* iq2000/iq2000.c: Likewise.
* lm32/lm32.c: Likewise.
* m32c/m32c.c: Likewise.
* m32r/m32r.c: Likewise.
* m68k/m68k.c: Likewise.
* mcore/mcore.c: Likewise.
* mep/mep.c: Likewise.
* microblaze/microblaze.c: Likewise.
* mips/mips.c: Likewise.
* mmix/mmix.c: Likewise.
* mn10300/mn10300.c: Likewise.
* moxie/moxie.c: Likewise.
* msp430/msp430.c: Likewise.
* nds32/nds32.c: Likewise.
* pa/pa.c: Likewise.
* pdp11/pdp11.c: Likewise.
* picochip/picochip.c: Likewise.
* rl78/rl78.c: Likewise.
* rs6000/rs6000.c: Likewise.
* rx/rx.c: Likewise.
* s390/s390.c: Likewise.
* score/score.c: Likewise.
* sh/sh.c: Likewise.
* sparc/sparc.c: Likewise.
* spu/spu.c: Likewise.
* stormy16/stormy16.c: Likewise.
* tilegx/tilegx.c: Likewise.
* tilepro/tilepro.c: Likewise.
* v850/v850.c: Likewise.
* vax/vax.c: Likewise.
* xtensa/xtensa.c: Likewise.
Index: asan.c
===================================================================
*** asan.c (revision 211131)
--- asan.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 54,59 ****
--- 54,60 ----
#include "ubsan.h"
#include "predict.h"
#include "params.h"
+ #include "builtins.h"
/* AddressSanitizer finds out-of-bounds and use-after-free bugs
with <2x slowdown on average.
Index: cfgexpand.c
===================================================================
*** cfgexpand.c (revision 211131)
--- cfgexpand.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 73,78 ****
--- 73,79 ----
#include "tree-ssa-address.h"
#include "recog.h"
#include "output.h"
+ #include "builtins.h"
/* Some systems use __main in a way incompatible with its use in gcc, in these
cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
Index: convert.c
===================================================================
*** convert.c (revision 211131)
--- convert.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 32,37 ****
--- 32,38 ----
#include "diagnostic-core.h"
#include "target.h"
#include "langhooks.h"
+ #include "builtins.h"
#include "ubsan.h"
/* Convert EXPR to some pointer or reference type TYPE.
Index: emit-rtl.c
===================================================================
*** emit-rtl.c (revision 211131)
--- emit-rtl.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 57,62 ****
--- 57,63 ----
#include "df.h"
#include "params.h"
#include "target.h"
+ #include "builtins.h"
struct target_rtl default_target_rtl;
#if SWITCHABLE_TARGET
Index: except.c
===================================================================
*** except.c (revision 211131)
--- except.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 141,146 ****
--- 141,147 ----
#include "tree-pass.h"
#include "pointer-set.h"
#include "cfgloop.h"
+ #include "builtins.h"
/* Provide defaults for stuff that may not be defined when using
sjlj exceptions. */
Index: expr.c
===================================================================
*** expr.c (revision 211131)
--- expr.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 67,72 ****
--- 67,73 ----
#include "params.h"
#include "tree-ssa-address.h"
#include "cfgexpand.h"
+ #include "builtins.h"
#ifndef STACK_PUSH_CODE
#ifdef STACK_GROWS_DOWNWARD
Index: fold-const.c
===================================================================
*** fold-const.c (revision 211131)
--- fold-const.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 68,73 ****
--- 68,74 ----
#include "gimplify.h"
#include "tree-dfa.h"
#include "hash-table.h" /* Required for ENABLE_FOLD_CHECKING. */
+ #include "builtins.h"
/* Nonzero if we are folding constants inside an initializer; zero
otherwise. */
Index: gimple-fold.c
===================================================================
*** gimple-fold.c (revision 211131)
--- gimple-fold.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 53,58 ****
--- 53,59 ----
#include "langhooks.h"
#include "gimplify-me.h"
#include "dbgcnt.h"
+ #include "builtins.h"
/* Return true when DECL can be referenced from current unit.
FROM_DECL (if non-null) specify constructor of variable DECL was taken from.
Index: gimple-ssa-strength-reduction.c
===================================================================
*** gimple-ssa-strength-reduction.c (revision 211131)
--- gimple-ssa-strength-reduction.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 64,69 ****
--- 64,70 ----
#include "tree-ssa-address.h"
#include "tree-affine.h"
#include "wide-int-print.h"
+ #include "builtins.h"
/* Information about a strength reduction candidate. Each statement
in the candidate table represents an expression of one of the
Index: gimplify.c
===================================================================
*** gimplify.c (revision 211131)
--- gimplify.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 62,67 ****
--- 62,68 ----
#include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name */
#include "tree-pass.h" /* FIXME: only for PROP_gimple_any */
+ #include "builtins.h"
enum gimplify_omp_var_data
{
Index: ipa-inline.c
===================================================================
*** ipa-inline.c (revision 211131)
--- ipa-inline.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 122,127 ****
--- 122,128 ----
#include "ipa-utils.h"
#include "sreal.h"
#include "cilk.h"
+ #include "builtins.h"
/* Statistics we collect about inlining algorithm. */
static int overall_size;
Index: ipa-prop.c
===================================================================
*** ipa-prop.c (revision 211131)
--- ipa-prop.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 61,66 ****
--- 61,67 ----
#include "tree-ssanames.h"
#include "dbgcnt.h"
#include "domwalk.h"
+ #include "builtins.h"
/* Intermediate information that we get from alias analysis about a particular
parameter in a particular basic_block. When a parameter or the memory it
Index: lto-streamer-out.c
===================================================================
*** lto-streamer-out.c (revision 211131)
--- lto-streamer-out.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 52,57 ****
--- 52,58 ----
#include "tree-streamer.h"
#include "streamer-hooks.h"
#include "cfgloop.h"
+ #include "builtins.h"
static void lto_write_tree (struct output_block*, tree, bool);
Index: stmt.c
===================================================================
*** stmt.c (revision 211131)
--- stmt.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 59,64 ****
--- 59,65 ----
#include "pretty-print.h"
#include "params.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* Functions and data structures for expanding case statements. */
Index: tree-inline.c
===================================================================
*** tree-inline.c (revision 211131)
--- tree-inline.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 67,72 ****
--- 67,73 ----
#include "tree-pass.h"
#include "target.h"
#include "cfgloop.h"
+ #include "builtins.h"
#include "rtl.h" /* FIXME: For asm_str_count. */
Index: tree-object-size.c
===================================================================
*** tree-object-size.c (revision 211131)
--- tree-object-size.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 42,47 ****
--- 42,48 ----
#include "tree-ssa-propagate.h"
#include "tree-phinodes.h"
#include "ssa-iterators.h"
+ #include "builtins.h"
struct object_size_info
{
Index: tree-sra.c
===================================================================
*** tree-sra.c (revision 211131)
--- tree-sra.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 112,117 ****
--- 112,118 ----
#include "gimple-pretty-print.h"
#include "ipa-inline.h"
#include "ipa-utils.h"
+ #include "builtins.h"
/* Enumeration of all aggregate reductions we can do. */
enum sra_mode { SRA_MODE_EARLY_IPA, /* early call regularization */
Index: tree-ssa-ccp.c
===================================================================
*** tree-ssa-ccp.c (revision 211131)
--- tree-ssa-ccp.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 154,159 ****
--- 154,160 ----
#include "dbgcnt.h"
#include "params.h"
#include "wide-int-print.h"
+ #include "builtins.h"
/* Possible lattice values. */
Index: tree-ssa-forwprop.c
===================================================================
*** tree-ssa-forwprop.c (revision 211131)
--- tree-ssa-forwprop.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 52,57 ****
--- 52,58 ----
#include "optabs.h"
#include "tree-ssa-propagate.h"
#include "tree-ssa-dom.h"
+ #include "builtins.h"
/* This pass propagates the RHS of assignment statements into use
sites of the LHS of the assignment. It's basically a specialized
Index: tree-ssa-loop-ivcanon.c
===================================================================
*** tree-ssa-loop-ivcanon.c (revision 211131)
--- tree-ssa-loop-ivcanon.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 68,73 ****
--- 68,74 ----
#include "tree-inline.h"
#include "target.h"
#include "tree-cfgcleanup.h"
+ #include "builtins.h"
/* Specifies types of loops that may be unrolled. */
Index: tree-ssa-loop-ivopts.c
===================================================================
*** tree-ssa-loop-ivopts.c (revision 211131)
--- tree-ssa-loop-ivopts.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 109,114 ****
--- 109,115 ----
#include "tree-ssa-propagate.h"
#include "expmed.h"
#include "tree-ssa-address.h"
+ #include "builtins.h"
/* FIXME: Expressions are expanded to RTL in this pass to determine the
cost of different addressing modes. This should be moved to a TBD
Index: tree-ssa-math-opts.c
===================================================================
*** tree-ssa-math-opts.c (revision 211131)
--- tree-ssa-math-opts.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 114,119 ****
--- 114,120 ----
#include "alloc-pool.h"
#include "target.h"
#include "gimple-pretty-print.h"
+ #include "builtins.h"
/* FIXME: RTL headers have to be included here for optabs. */
#include "rtl.h" /* Because optabs.h wants enum rtx_code. */
Index: tree-ssa-reassoc.c
===================================================================
*** tree-ssa-reassoc.c (revision 211131)
--- tree-ssa-reassoc.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 60,65 ****
--- 60,66 ----
#include "target.h"
#include "params.h"
#include "diagnostic-core.h"
+ #include "builtins.h"
/* This is a simple global reassociation pass. It is, in part, based
on the LLVM pass of the same name (They do some things more/less
Index: tree-ssa-threadedge.c
===================================================================
*** tree-ssa-threadedge.c (revision 211131)
--- tree-ssa-threadedge.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 48,53 ****
--- 48,54 ----
#include "langhooks.h"
#include "params.h"
#include "tree-ssa-threadedge.h"
+ #include "builtins.h"
/* To avoid code explosion due to jump threading, we limit the
number of statements we are going to copy. This variable
Index: tree-streamer-in.c
===================================================================
*** tree-streamer-in.c (revision 211131)
--- tree-streamer-in.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 35,40 ****
--- 35,41 ----
#include "data-streamer.h"
#include "streamer-hooks.h"
#include "lto-streamer.h"
+ #include "builtins.h"
/* Read a STRING_CST from the string table in DATA_IN using input
block IB. */
Index: tree-vect-data-refs.c
===================================================================
*** tree-vect-data-refs.c (revision 211131)
--- tree-vect-data-refs.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 57,62 ****
--- 57,63 ----
/* Need to include rtl.h, expr.h, etc. for optabs. */
#include "expr.h"
#include "optabs.h"
+ #include "builtins.h"
/* Return true if load- or store-lanes optab OPTAB is implemented for
COUNT vectors of type VECTYPE. NAME is the name of OPTAB. */
Index: tree-vect-patterns.c
===================================================================
*** tree-vect-patterns.c (revision 211131)
--- tree-vect-patterns.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 49,54 ****
--- 49,55 ----
#include "recog.h" /* FIXME: for insn_data */
#include "diagnostic-core.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* Pattern recognition functions */
static gimple vect_recog_widen_sum_pattern (vec<gimple> *, tree *,
Index: tree-vect-stmts.c
===================================================================
*** tree-vect-stmts.c (revision 211131)
--- tree-vect-stmts.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 55,60 ****
--- 55,61 ----
#include "tree-vectorizer.h"
#include "dumpfile.h"
#include "cgraph.h"
+ #include "builtins.h"
/* For lang_hooks.types.type_for_mode. */
#include "langhooks.h"
Index: c/c-decl.c
===================================================================
*** c/c-decl.c (revision 211131)
--- c/c-decl.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 63,68 ****
--- 63,69 ----
#include "plugin.h"
#include "c-family/c-ada-spec.h"
#include "cilk.h"
+ #include "builtins.h"
/* In grokdeclarator, distinguish syntactic contexts of declarators. */
enum decl_context
Index: c/c-parser.c
===================================================================
*** c/c-parser.c (revision 211131)
--- c/c-parser.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 61,66 ****
--- 61,67 ----
#include "cgraph.h"
#include "plugin.h"
#include "omp-low.h"
+ #include "builtins.h"
/* Initialization routine for this file. */
Index: cp/decl.c
===================================================================
*** cp/decl.c (revision 211131)
--- cp/decl.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 61,66 ****
--- 61,67 ----
#include "cgraph.h"
#include "cilk.h"
#include "wide-int.h"
+ #include "builtins.h"
/* Possible cases of bad specifiers type used by bad_specifiers. */
enum bad_spec_place {
Index: cp/semantics.c
===================================================================
*** cp/semantics.c (revision 211131)
--- cp/semantics.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 49,54 ****
--- 49,55 ----
#include "gimplify.h"
#include "bitmap.h"
#include "omp-low.h"
+ #include "builtins.h"
static bool verify_constant (tree, bool, bool *, bool *);
#define VERIFY_CONSTANT(X) \
Index: go/go-gcc.cc
===================================================================
*** go/go-gcc.cc (revision 211131)
--- go/go-gcc.cc (working copy)
***************
*** 39,44 ****
--- 39,45 ----
#include "output.h"
#include "real.h"
#include "realmpfr.h"
+ #include "builtins.h"
#include "go-c.h"
Index: lto/lto-symtab.c
===================================================================
*** lto/lto-symtab.c (revision 211131)
--- lto/lto-symtab.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 34,39 ****
--- 34,40 ----
#include "lto-streamer.h"
#include "ipa-utils.h"
#include "ipa-inline.h"
+ #include "builtins.h"
/* Replace the cgraph node NODE with PREVAILING_NODE in the cgraph, merging
all edges and removing the old node. */
Index: config/aarch64/aarch64.c
===================================================================
*** config/aarch64/aarch64.c (revision 211131)
--- config/aarch64/aarch64.c (working copy)
***************
*** 64,69 ****
--- 64,70 ----
#include "tree-vectorizer.h"
#include "config/arm/aarch-cost-tables.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* Defined for convenience. */
#define POINTER_BYTES (POINTER_SIZE / BITS_PER_UNIT)
Index: config/alpha/alpha.c
===================================================================
*** config/alpha/alpha.c (revision 211131)
--- config/alpha/alpha.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 73,78 ****
--- 73,79 ----
#include "libfuncs.h"
#include "opts.h"
#include "params.h"
+ #include "builtins.h"
/* Specify which cpu to schedule for. */
enum processor_type alpha_tune;
Index: config/arc/arc.c
===================================================================
*** config/arc/arc.c (revision 211131)
--- config/arc/arc.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 66,71 ****
--- 66,72 ----
#include "context.h"
#include "pass_manager.h"
#include "wide-int.h"
+ #include "builtins.h"
/* Which cpu we're compiling for (A5, ARC600, ARC601, ARC700). */
static const char *arc_cpu_string = "";
Index: config/arm/arm.c
===================================================================
*** config/arm/arm.c (revision 211131)
--- config/arm/arm.c (working copy)
***************
*** 61,66 ****
--- 61,67 ----
#include "opts.h"
#include "dumpfile.h"
#include "gimple-expr.h"
+ #include "builtins.h"
/* Forward definitions of types. */
typedef struct minipool_node Mnode;
Index: config/avr/avr.c
===================================================================
*** config/avr/avr.c (revision 211131)
--- config/avr/avr.c (working copy)
***************
*** 51,56 ****
--- 51,57 ----
#include "target-def.h"
#include "params.h"
#include "df.h"
+ #include "builtins.h"
/* Maximal allowed offset for an address in the LD command */
#define MAX_LD_OFFSET(MODE) (64 - (signed)GET_MODE_SIZE (MODE))
Index: config/bfin/bfin.c
===================================================================
*** config/bfin/bfin.c (revision 211131)
--- config/bfin/bfin.c (working copy)
***************
*** 59,64 ****
--- 59,65 ----
#include "hw-doloop.h"
#include "opts.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* A C structure for machine-specific, per-function data.
This is added to the cfun structure. */
Index: config/c6x/c6x.c
===================================================================
*** config/c6x/c6x.c (revision 211131)
--- config/c6x/c6x.c (working copy)
***************
*** 57,62 ****
--- 57,63 ----
#include "regrename.h"
#include "dumpfile.h"
#include "gimple-expr.h"
+ #include "builtins.h"
/* Table of supported architecture variants. */
typedef struct
Index: config/cr16/cr16.c
===================================================================
*** config/cr16/cr16.c (revision 211131)
--- config/cr16/cr16.c (working copy)
***************
*** 45,50 ****
--- 45,51 ----
#include "target.h"
#include "target-def.h"
#include "df.h"
+ #include "builtins.h"
/* Definitions. */
Index: config/cris/cris.c
===================================================================
*** config/cris/cris.c (revision 211131)
--- config/cris/cris.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 51,56 ****
--- 51,57 ----
#include "df.h"
#include "opts.h"
#include "cgraph.h"
+ #include "builtins.h"
/* Usable when we have an amount to add or subtract, and want the
optimal size of the insn. */
Index: config/epiphany/epiphany.c
===================================================================
*** config/epiphany/epiphany.c (revision 211131)
--- config/epiphany/epiphany.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 51,56 ****
--- 51,57 ----
#include "tree-pass.h" /* for current_pass */
#include "context.h"
#include "pass_manager.h"
+ #include "builtins.h"
/* Which cpu we're compiling for. */
int epiphany_cpu_type;
Index: config/fr30/fr30.c
===================================================================
*** config/fr30/fr30.c (revision 211131)
--- config/fr30/fr30.c (working copy)
***************
*** 45,50 ****
--- 45,51 ----
#include "tm_p.h"
#include "target.h"
#include "target-def.h"
+ #include "builtins.h"
/*}}}*/
/*{{{ Function Prologues & Epilogues */
Index: config/frv/frv.c
===================================================================
*** config/frv/frv.c (revision 211131)
--- config/frv/frv.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 51,56 ****
--- 51,57 ----
#include "langhooks.h"
#include "df.h"
#include "dumpfile.h"
+ #include "builtins.h"
#ifndef FRV_INLINE
#define FRV_INLINE inline
Index: config/h8300/h8300.c
===================================================================
*** config/h8300/h8300.c (revision 211131)
--- config/h8300/h8300.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 48,53 ****
--- 48,54 ----
#include "target.h"
#include "target-def.h"
#include "df.h"
+ #include "builtins.h"
/* Classifies a h8300_src_operand or h8300_dst_operand.
Index: config/i386/i386.c
===================================================================
*** config/i386/i386.c (revision 211131)
--- config/i386/i386.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 84,89 ****
--- 84,90 ----
#include "target-globals.h"
#include "tree-vectorizer.h"
#include "shrink-wrap.h"
+ #include "builtins.h"
static rtx legitimize_dllimport_symbol (rtx, bool);
static rtx legitimize_pe_coff_extern_decl (rtx, bool);
Index: config/i386/winnt.c
===================================================================
*** config/i386/winnt.c (revision 211131)
--- config/i386/winnt.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 50,55 ****
--- 50,56 ----
#include "gimple.h"
#include "lto-streamer.h"
#include "lto-section-names.h"
+ #include "builtins.h"
/* i386/PE specific attribute support.
Index: config/ia64/ia64.c
===================================================================
*** config/ia64/ia64.c (revision 211131)
--- config/ia64/ia64.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 74,79 ****
--- 74,80 ----
#include "reload.h"
#include "opts.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* This is used for communication between ASM_OUTPUT_LABEL and
ASM_OUTPUT_LABELREF. */
Index: config/iq2000/iq2000.c
===================================================================
*** config/iq2000/iq2000.c (revision 211131)
--- config/iq2000/iq2000.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 47,52 ****
--- 47,53 ----
#include "target-def.h"
#include "langhooks.h"
#include "df.h"
+ #include "builtins.h"
/* Enumeration for all of the relational tests, so that we can build
arrays indexed by the test type, and not worry about the order
Index: config/lm32/lm32.c
===================================================================
*** config/lm32/lm32.c (revision 211131)
--- config/lm32/lm32.c (working copy)
***************
*** 50,55 ****
--- 50,56 ----
#include "langhooks.h"
#include "tm-constrs.h"
#include "df.h"
+ #include "builtins.h"
struct lm32_frame_info
{
Index: config/m32c/m32c.c
===================================================================
*** config/m32c/m32c.c (revision 211131)
--- config/m32c/m32c.c (working copy)
***************
*** 61,66 ****
--- 61,67 ----
#include "gimple.h"
#include "df.h"
#include "tm-constrs.h"
+ #include "builtins.h"
/* Prototypes */
Index: config/m32r/m32r.c
===================================================================
*** config/m32r/m32r.c (revision 211131)
--- config/m32r/m32r.c (working copy)
***************
*** 46,51 ****
--- 46,52 ----
#include "target-def.h"
#include "tm-constrs.h"
#include "opts.h"
+ #include "builtins.h"
/* Array of valid operand punctuation characters. */
static char m32r_punct_chars[256];
Index: config/m68k/m68k.c
===================================================================
*** config/m68k/m68k.c (revision 211131)
--- config/m68k/m68k.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 49,54 ****
--- 49,55 ----
#include "ggc.h"
#include "opts.h"
#include "optabs.h"
+ #include "builtins.h"
enum reg_class regno_reg_class[] =
{
Index: config/mcore/mcore.c
===================================================================
*** config/mcore/mcore.c (revision 211131)
--- config/mcore/mcore.c (working copy)
***************
*** 46,51 ****
--- 46,52 ----
#include "target.h"
#include "target-def.h"
#include "df.h"
+ #include "builtins.h"
/* For dumping information about frame sizes. */
char * mcore_current_function_name = 0;
Index: config/mep/mep.c
===================================================================
*** config/mep/mep.c (revision 211131)
--- config/mep/mep.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 65,70 ****
--- 65,71 ----
#include "gimplify.h"
#include "opts.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* Structure of this file:
Index: config/microblaze/microblaze.c
===================================================================
*** config/microblaze/microblaze.c (revision 211131)
--- config/microblaze/microblaze.c (working copy)
***************
*** 51,56 ****
--- 51,57 ----
#include "optabs.h"
#include "diagnostic-core.h"
#include "cgraph.h"
+ #include "builtins.h"
#define MICROBLAZE_VERSION_COMPARE(VA,VB) strcasecmp (VA, VB)
Index: config/mips/mips.c
===================================================================
*** config/mips/mips.c (revision 211131)
--- config/mips/mips.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 72,77 ****
--- 72,78 ----
#include "tree-pass.h"
#include "context.h"
#include "cgraph.h"
+ #include "builtins.h"
/* True if X is an UNSPEC wrapper around a SYMBOL_REF or LABEL_REF. */
#define UNSPEC_ADDRESS_P(X) \
Index: config/mmix/mmix.c
===================================================================
*** config/mmix/mmix.c (revision 211131)
--- config/mmix/mmix.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 46,51 ****
--- 46,52 ----
#include "target-def.h"
#include "df.h"
#include "tm-constrs.h"
+ #include "builtins.h"
/* First some local helper definitions. */
#define MMIX_FIRST_GLOBAL_REGNUM 32
Index: config/mn10300/mn10300.c
===================================================================
*** config/mn10300/mn10300.c (revision 211131)
--- config/mn10300/mn10300.c (working copy)
***************
*** 49,54 ****
--- 49,55 ----
#include "opts.h"
#include "cfgloop.h"
#include "dumpfile.h"
+ #include "builtins.h"
/* This is used in the am33_2.0-linux-gnu port, in which global symbol
names are not prefixed by underscores, to tell whether to prefix a
Index: config/moxie/moxie.c
===================================================================
*** config/moxie/moxie.c (revision 211131)
--- config/moxie/moxie.c (working copy)
***************
*** 49,54 ****
--- 49,55 ----
#include "tm_p.h"
#include "langhooks.h"
#include "df.h"
+ #include "builtins.h"
#define LOSE_AND_RETURN(msgid, x) \
do \
Index: config/msp430/msp430.c
===================================================================
*** config/msp430/msp430.c (revision 211131)
--- config/msp430/msp430.c (working copy)
***************
*** 51,56 ****
--- 51,57 ----
#include "msp430-protos.h"
#include "dumpfile.h"
#include "opts.h"
+ #include "builtins.h"
static void msp430_compute_frame_info (void);
Index: config/nds32/nds32.c
===================================================================
*** config/nds32/nds32.c (revision 211131)
--- config/nds32/nds32.c (working copy)
***************
*** 50,55 ****
--- 50,56 ----
#include "target-def.h"
#include "langhooks.h" /* For add_builtin_function(). */
#include "ggc.h"
+ #include "builtins.h"
/* ------------------------------------------------------------------------ */
Index: config/pa/pa.c
===================================================================
*** config/pa/pa.c (revision 211131)
--- config/pa/pa.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 52,57 ****
--- 52,58 ----
#include "langhooks.h"
#include "df.h"
#include "opts.h"
+ #include "builtins.h"
/* Return nonzero if there is a bypass for the output of
OUT_INSN and the fp store IN_INSN. */
Index: config/pdp11/pdp11.c
===================================================================
*** config/pdp11/pdp11.c (revision 211131)
--- config/pdp11/pdp11.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 44,49 ****
--- 44,50 ----
#include "df.h"
#include "opts.h"
#include "dbxout.h"
+ #include "builtins.h"
/* this is the current value returned by the macro FIRST_PARM_OFFSET
defined in tm.h */
Index: config/picochip/picochip.c
===================================================================
*** config/picochip/picochip.c (revision 211131)
--- config/picochip/picochip.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 65,70 ****
--- 65,71 ----
#include "libfuncs.h" /* For memcpy_libfuncs, etc. */
#include "df.h" /* For df_regs_ever_live_df_regs_ever_live_pp, etc. */
#include "dbxout.h"
+ #include "builtins.h"
/* Target AE ISA information. */
Index: config/rl78/rl78.c
===================================================================
*** config/rl78/rl78.c (revision 211131)
--- config/rl78/rl78.c (working copy)
***************
*** 55,60 ****
--- 55,61 ----
#include "context.h"
#include "tm-constrs.h" /* for satisfies_constraint_*(). */
#include "insn-flags.h" /* for gen_*(). */
+ #include "builtins.h"
static inline bool is_interrupt_func (const_tree decl);
static inline bool is_brk_interrupt_func (const_tree decl);
Index: config/rs6000/rs6000.c
===================================================================
*** config/rs6000/rs6000.c (revision 211131)
--- config/rs6000/rs6000.c (working copy)
***************
*** 79,84 ****
--- 79,85 ----
#include "dumpfile.h"
#include "cgraph.h"
#include "target-globals.h"
+ #include "builtins.h"
#if TARGET_XCOFF
#include "xcoffout.h" /* get declarations of xcoff_*_section_name */
#endif
Index: config/rx/rx.c
===================================================================
*** config/rx/rx.c (revision 211131)
--- config/rx/rx.c (working copy)
***************
*** 55,60 ****
--- 55,61 ----
#include "langhooks.h"
#include "opts.h"
#include "cgraph.h"
+ #include "builtins.h"
static unsigned int rx_gp_base_regnum_val = INVALID_REGNUM;
static unsigned int rx_pid_base_regnum_val = INVALID_REGNUM;
Index: config/s390/s390.c
===================================================================
*** config/s390/s390.c (revision 211131)
--- config/s390/s390.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 70,75 ****
--- 70,76 ----
#include "opts.h"
#include "tree-pass.h"
#include "context.h"
+ #include "builtins.h"
/* Define the specific costs for a given cpu. */
Index: config/score/score.c
===================================================================
*** config/score/score.c (revision 211131)
--- config/score/score.c (working copy)
***************
*** 51,56 ****
--- 51,57 ----
#include "langhooks.h"
#include "df.h"
#include "opts.h"
+ #include "builtins.h"
#define SCORE_SDATA_MAX score_sdata_max
#define SCORE_STACK_ALIGN(LOC) (((LOC) + 3) & ~3)
Index: config/sh/sh.c
===================================================================
*** config/sh/sh.c (revision 211131)
--- config/sh/sh.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 73,78 ****
--- 73,79 ----
#include "tree-pass.h"
#include "pass_manager.h"
#include "context.h"
+ #include "builtins.h"
int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch;
Index: config/sparc/sparc.c
===================================================================
*** config/sparc/sparc.c (revision 211131)
--- config/sparc/sparc.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 70,75 ****
--- 70,76 ----
#include "tree-pass.h"
#include "context.h"
#include "wide-int.h"
+ #include "builtins.h"
/* Processor costs */
Index: config/spu/spu.c
===================================================================
*** config/spu/spu.c (revision 211131)
--- config/spu/spu.c (working copy)
***************
*** 66,71 ****
--- 66,72 ----
#include "df.h"
#include "dumpfile.h"
#include "cfgloop.h"
+ #include "builtins.h"
/* Builtin types, data and prototypes. */
Index: config/stormy16/stormy16.c
===================================================================
*** config/stormy16/stormy16.c (revision 211131)
--- config/stormy16/stormy16.c (working copy)
***************
*** 62,67 ****
--- 62,68 ----
#include "gimplify.h"
#include "df.h"
#include "reload.h"
+ #include "builtins.h"
static rtx emit_addhi3_postreload (rtx, rtx, rtx);
static void xstormy16_asm_out_constructor (rtx, int);
Index: config/tilegx/tilegx.c
===================================================================
*** config/tilegx/tilegx.c (revision 211131)
--- config/tilegx/tilegx.c (working copy)
***************
*** 61,66 ****
--- 61,67 ----
#include "tilegx-builtins.h"
#include "tilegx-multiply.h"
#include "diagnostic.h"
+ #include "builtins.h"
/* SYMBOL_REF for GOT */
static GTY(()) rtx g_got_symbol = NULL;
Index: config/tilepro/tilepro.c
===================================================================
*** config/tilepro/tilepro.c (revision 211131)
--- config/tilepro/tilepro.c (working copy)
***************
*** 62,67 ****
--- 62,68 ----
#include "tilepro-builtins.h"
#include "tilepro-multiply.h"
#include "diagnostic.h"
+ #include "builtins.h"
/* SYMBOL_REF for GOT */
static GTY(()) rtx g_got_symbol = NULL;
Index: config/v850/v850.c
===================================================================
*** config/v850/v850.c (revision 211131)
--- config/v850/v850.c (working copy)
***************
*** 45,50 ****
--- 45,51 ----
#include "target-def.h"
#include "df.h"
#include "opts.h"
+ #include "builtins.h"
#ifndef streq
#define streq(a,b) (strcmp (a, b) == 0)
Index: config/vax/vax.c
===================================================================
*** config/vax/vax.c (revision 211131)
--- config/vax/vax.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 46,51 ****
--- 46,52 ----
#include "target.h"
#include "target-def.h"
#include "wide-int.h"
+ #include "builtins.h"
static void vax_option_override (void);
static bool vax_legitimate_address_p (enum machine_mode, rtx, bool);
Index: config/xtensa/xtensa.c
===================================================================
*** config/xtensa/xtensa.c (revision 211131)
--- config/xtensa/xtensa.c (working copy)
*************** along with GCC; see the file COPYING3.
*** 61,66 ****
--- 61,67 ----
#include "gimple.h"
#include "gimplify.h"
#include "df.h"
+ #include "builtins.h"
/* Enumeration for all of the relational tests, so that we can build