From: Richard Sandiford Date: Thu, 25 Jun 2015 17:50:01 +0000 (+0000) Subject: aarch64.c, [...]: Add comment above target-def.h include. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=994c5d85429afb040d3e178c6647e8f91e6092a7;p=gcc.git aarch64.c, [...]: Add comment above target-def.h include. gcc/ * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c, config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c, config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c, config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c, config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c, config/visium/visium.c, config/xtensa/xtensa.c: Add comment above target-def.h include. * config/ft32/ft32.c: Likewise. Fix misapplied hunk. From-SVN: r224980 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff6333cbae6..adf043fd8ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,25 @@ +2015-06-25 Richard Sandiford + + * config/aarch64/aarch64.c, config/alpha/alpha.c, + config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c, + config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c, + config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c, + config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c, + config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c, + config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c, + config/microblaze/microblaze.c, config/mips/mips.c, + config/mmix/mmix.c, config/mn10300/mn10300.c, + config/moxie/moxie.c, config/msp430/msp430.c, + config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c, + config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c, + config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c, + config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c, + config/stormy16/stormy16.c, config/tilegx/tilegx.c, + config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c, + config/visium/visium.c, config/xtensa/xtensa.c: Add comment above + target-def.h include. + * config/ft32/ft32.c: Likewise. Fix misapplied hunk. + 2015-06-25 Richard Sandiford * Makefile.in (TARGET_DEF): Add target-insns.def. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index d9abff20eaa..d8e03b7b636 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -82,6 +82,7 @@ #include "sched-int.h" #include "cortex-a57-fma-steering.h" +/* This file should be included last. */ #include "target-def.h" /* Defined for convenience. */ diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index c7e575a82f9..7f0c6a7b4fd 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -89,6 +89,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* Specify which cpu to schedule for. */ diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 7f613f480d8..b5b9fc14755 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -85,6 +85,7 @@ #include "sched-int.h" #include "tree.h" +/* This file should be included last. */ #include "target-def.h" /* Forward definitions of types. */ diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 7712b78cb14..c002377d19e 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -71,6 +71,7 @@ #include "context.h" #include "tree-pass.h" +/* This file should be included last. */ #include "target-def.h" /* Maximal allowed offset for an address in the LD command */ diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 653a6704bb9..7ddc58ecf4d 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -76,6 +76,7 @@ #include "dumpfile.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* A C structure for machine-specific, per-function data. diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index 20d0fe3ca5d..eb697020f12 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -79,6 +79,7 @@ #include "gimple-expr.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Table of supported architecture variants. */ diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c index 73653325efb..cb135456b4f 100644 --- a/gcc/config/cr16/cr16.c +++ b/gcc/config/cr16/cr16.c @@ -63,6 +63,7 @@ #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Definitions. */ diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index a3bf00b3b23..d70e4d4a6b4 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -70,6 +70,7 @@ along with GCC; see the file COPYING3. If not see #include "cgraph.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Usable when we have an amount to add or subtract, and want the diff --git a/gcc/config/fr30/fr30.c b/gcc/config/fr30/fr30.c index c0da2bab521..2895598f215 100644 --- a/gcc/config/fr30/fr30.c +++ b/gcc/config/fr30/fr30.c @@ -64,6 +64,7 @@ #include "target.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /*}}}*/ diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 3e66286f76b..23b5f3cb826 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -71,6 +71,7 @@ along with GCC; see the file COPYING3. If not see #include "ifcvt.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" #ifndef FRV_INLINE diff --git a/gcc/config/ft32/ft32.c b/gcc/config/ft32/ft32.c index f9ca2b5a1ec..4adf39b8b57 100644 --- a/gcc/config/ft32/ft32.c +++ b/gcc/config/ft32/ft32.c @@ -60,6 +60,9 @@ #include "builtins.h" #include "emit-rtl.h" +/* This file should be included last. */ +#include "target-def.h" + #include #define LOSE_AND_RETURN(msgid, x) \ @@ -370,8 +373,6 @@ ft32_init_machine_status (void) return ggc_cleared_alloc < machine_function > (); } -#include "target-def.h" - /* The TARGET_OPTION_OVERRIDE worker. All this curently does is set init_machine_status. */ diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 343f955d309..0f11511918d 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -65,6 +65,7 @@ along with GCC; see the file COPYING3. If not see #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Classifies a h8300_src_operand or h8300_dst_operand. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 001de0534c4..0145c78b22d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -100,6 +100,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-chkp.h" #include "rtl-chkp.h" +/* This file should be included last. */ #include "target-def.h" static rtx legitimize_dllimport_symbol (rtx, bool); diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index e956144fccb..47b44691cd5 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -86,6 +86,7 @@ along with GCC; see the file COPYING3. If not see #include "dumpfile.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* This is used for communication between ASM_OUTPUT_LABEL and diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index df29089b825..0b8d0526b65 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -65,6 +65,7 @@ along with GCC; see the file COPYING3. If not see #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Enumeration for all of the relational tests, so that we can build diff --git a/gcc/config/lm32/lm32.c b/gcc/config/lm32/lm32.c index 0c4fc9a6bcf..a15bcfd281c 100644 --- a/gcc/config/lm32/lm32.c +++ b/gcc/config/lm32/lm32.c @@ -67,6 +67,7 @@ #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" struct lm32_frame_info diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index b9e041e134d..2b9aae3ecd7 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -74,6 +74,7 @@ #include "tm-constrs.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Prototypes */ diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index 27c742e1d7b..cabf8fb9221 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -62,6 +62,7 @@ #include "opts.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Array of valid operand punctuation characters. */ diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index e1558ef9c96..cf67e7588a3 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -67,6 +67,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" enum reg_class regno_reg_class[] = diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 2b284e22432..f25c0d16170 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -63,6 +63,7 @@ #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* For dumping information about frame sizes. */ diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index dd92dadf0d6..9a568795de4 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -78,6 +78,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* Structure of this file: diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 2c0919df69d..4b96dd865f2 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -69,6 +69,7 @@ #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" #define MICROBLAZE_VERSION_COMPARE(VA,VB) strcasecmp (VA, VB) diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index b3d16c69987..cc675ea8e8c 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -88,6 +88,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* True if X is an UNSPEC wrapper around a SYMBOL_REF or LABEL_REF. */ diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index 163c2e949e9..ee2da088a9d 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -60,6 +60,7 @@ along with GCC; see the file COPYING3. If not see #include "tm-constrs.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* First some local helper definitions. */ diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index 44d2da4bc6e..49bf7725e23 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -67,6 +67,7 @@ #include "dumpfile.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* This is used in the am33_2.0-linux-gnu port, in which global symbol diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c index 14ab63a2881..e79182901fa 100644 --- a/gcc/config/moxie/moxie.c +++ b/gcc/config/moxie/moxie.c @@ -66,6 +66,7 @@ #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" #define LOSE_AND_RETURN(msgid, x) \ diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index 2a42c38d3fb..e83efb68152 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -70,6 +70,7 @@ #include "opts.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index c019872153a..b58e4bc50d6 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -67,6 +67,7 @@ #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* ------------------------------------------------------------------------ */ diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index 567c9215d70..0e9c40bf9ed 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -68,6 +68,7 @@ #include "stor-layout.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Forward function declarations. */ diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index c69ddfc8775..43f197f17a1 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -61,6 +61,7 @@ #include "df.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Record the function decls we've written, and the libfuncs and function diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 25b1d364119..6cc3c2ae44e 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -69,6 +69,7 @@ along with GCC; see the file COPYING3. If not see #include "opts.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Return nonzero if there is a bypass for the output of diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index 4788b505cf6..f0b1b8b84a6 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -61,6 +61,7 @@ along with GCC; see the file COPYING3. If not see #include "dbxout.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* this is the current value returned by the macro FIRST_PARM_OFFSET diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 8cf4974eecd..680e4dbcc47 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -74,6 +74,7 @@ #include "builtins.h" #include "stringpool.h" +/* This file should be included last. */ #include "target-def.h" static inline bool is_interrupt_func (const_tree decl); diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 73fb73141ae..ccfc0a8b4ce 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -100,6 +100,7 @@ #include "gstab.h" /* for N_SLINE */ #endif +/* This file should be included last. */ #include "target-def.h" #ifndef TARGET_NO_PROTOTYPE diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 5cadd3ae947..9d9182010a5 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -74,6 +74,7 @@ #include "cgraph.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" static unsigned int rx_gp_base_regnum_val = INVALID_REGNUM; diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 2f2c436a957..1de8d07a01a 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -87,6 +87,7 @@ along with GCC; see the file COPYING3. If not see #include "ipa-ref.h" #include "cgraph.h" +/* This file should be included last. */ #include "target-def.h" /* Define the specific costs for a given cpu. */ diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 5c0c6a1c9ca..0139095cf53 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -87,6 +87,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch; diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 2163201cb01..2556eecc8ca 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -82,6 +82,7 @@ along with GCC; see the file COPYING3. If not see #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* Processor costs */ diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index d89c6cc1f6e..97690e3b34b 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -79,6 +79,7 @@ #include "builtins.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* Builtin types, data and prototypes. */ diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index 761bc4e54b2..142498db47d 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -75,6 +75,7 @@ #include "reload.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" static rtx emit_addhi3_postreload (rtx, rtx, rtx); diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c index 86ad324aaeb..1f285e09139 100644 --- a/gcc/config/tilegx/tilegx.c +++ b/gcc/config/tilegx/tilegx.c @@ -76,6 +76,7 @@ #include "diagnostic.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* SYMBOL_REF for GOT */ diff --git a/gcc/config/tilepro/tilepro.c b/gcc/config/tilepro/tilepro.c index 81c93955223..92447391eba 100644 --- a/gcc/config/tilepro/tilepro.c +++ b/gcc/config/tilepro/tilepro.c @@ -77,6 +77,7 @@ #include "diagnostic.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* SYMBOL_REF for GOT */ diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 851986f243f..96811654e81 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -61,6 +61,7 @@ #include "opts.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" #ifndef streq diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 8880d6493fa..08706f74791 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -63,6 +63,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" static void vax_option_override (void); diff --git a/gcc/config/visium/visium.c b/gcc/config/visium/visium.c index fcf435988cd..135f74d41ef 100644 --- a/gcc/config/visium/visium.c +++ b/gcc/config/visium/visium.c @@ -67,6 +67,7 @@ #include "context.h" #include "builtins.h" +/* This file should be included last. */ #include "target-def.h" /* Machine specific function data. */ diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 35fc423f3e0..cacb79eb17c 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -77,6 +77,7 @@ along with GCC; see the file COPYING3. If not see #include "hw-doloop.h" #include "rtl-iter.h" +/* This file should be included last. */ #include "target-def.h" /* Enumeration for all of the relational tests, so that we can build