From: Richard Sandiford Date: Sat, 16 Dec 2017 14:10:55 +0000 (+0000) Subject: poly_int: IN_TARGET_CODE X-Git-Tag: basepoints/gcc-9~2625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fcc61f8964aa9aa2e6fc08cb961f9dc2a5add77;p=thirdparty%2Fgcc.git poly_int: IN_TARGET_CODE This patch makes each target-specifc TU define an IN_TARGET_CODE macro, which is used to decide whether poly_int<1, C> should convert to C. 2017-12-16 Richard Sandiford Alan Hayward David Sherwood gcc/ * doc/sourcebuild.texi: Document IN_TARGET_CODE. * genattrtab.c (write_header): Define IN_TARGET_CODE to 1 in the target C file. * genautomata.c (main): Likewise. * genconditions.c (write_header): Likewise. * genemit.c (main): Likewise. * genextract.c (print_header): Likewise. * genopinit.c (main): Likewise. * genoutput.c (output_prologue): Likewise. * genpeep.c (main): Likewise. * genpreds.c (write_insn_preds_c): Likewise. * genrecog.c (writer_header): Likewise. * config/aarch64/aarch64-builtins.c (IN_TARGET_CODE): Define. * config/aarch64/aarch64-c.c (IN_TARGET_CODE): Likewise. * config/aarch64/aarch64.c (IN_TARGET_CODE): Likewise. * config/aarch64/cortex-a57-fma-steering.c (IN_TARGET_CODE): Likewise. * config/aarch64/driver-aarch64.c (IN_TARGET_CODE): Likewise. * config/alpha/alpha.c (IN_TARGET_CODE): Likewise. * config/alpha/driver-alpha.c (IN_TARGET_CODE): Likewise. * config/arc/arc-c.c (IN_TARGET_CODE): Likewise. * config/arc/arc.c (IN_TARGET_CODE): Likewise. * config/arc/driver-arc.c (IN_TARGET_CODE): Likewise. * config/arm/aarch-common.c (IN_TARGET_CODE): Likewise. * config/arm/arm-builtins.c (IN_TARGET_CODE): Likewise. * config/arm/arm-c.c (IN_TARGET_CODE): Likewise. * config/arm/arm.c (IN_TARGET_CODE): Likewise. * config/arm/driver-arm.c (IN_TARGET_CODE): Likewise. * config/avr/avr-c.c (IN_TARGET_CODE): Likewise. * config/avr/avr-devices.c (IN_TARGET_CODE): Likewise. * config/avr/avr-log.c (IN_TARGET_CODE): Likewise. * config/avr/avr.c (IN_TARGET_CODE): Likewise. * config/avr/driver-avr.c (IN_TARGET_CODE): Likewise. * config/avr/gen-avr-mmcu-specs.c (IN_TARGET_CODE): Likewise. * config/bfin/bfin.c (IN_TARGET_CODE): Likewise. * config/c6x/c6x.c (IN_TARGET_CODE): Likewise. * config/cr16/cr16.c (IN_TARGET_CODE): Likewise. * config/cris/cris.c (IN_TARGET_CODE): Likewise. * config/darwin.c (IN_TARGET_CODE): Likewise. * config/epiphany/epiphany.c (IN_TARGET_CODE): Likewise. * config/epiphany/mode-switch-use.c (IN_TARGET_CODE): Likewise. * config/epiphany/resolve-sw-modes.c (IN_TARGET_CODE): Likewise. * config/fr30/fr30.c (IN_TARGET_CODE): Likewise. * config/frv/frv.c (IN_TARGET_CODE): Likewise. * config/ft32/ft32.c (IN_TARGET_CODE): Likewise. * config/h8300/h8300.c (IN_TARGET_CODE): Likewise. * config/i386/djgpp.c (IN_TARGET_CODE): Likewise. * config/i386/driver-i386.c (IN_TARGET_CODE): Likewise. * config/i386/driver-mingw32.c (IN_TARGET_CODE): Likewise. * config/i386/host-cygwin.c (IN_TARGET_CODE): Likewise. * config/i386/host-i386-darwin.c (IN_TARGET_CODE): Likewise. * config/i386/host-mingw32.c (IN_TARGET_CODE): Likewise. * config/i386/i386-c.c (IN_TARGET_CODE): Likewise. * config/i386/i386.c (IN_TARGET_CODE): Likewise. * config/i386/intelmic-mkoffload.c (IN_TARGET_CODE): Likewise. * config/i386/msformat-c.c (IN_TARGET_CODE): Likewise. * config/i386/winnt-cxx.c (IN_TARGET_CODE): Likewise. * config/i386/winnt-stubs.c (IN_TARGET_CODE): Likewise. * config/i386/winnt.c (IN_TARGET_CODE): Likewise. * config/i386/x86-tune-sched-atom.c (IN_TARGET_CODE): Likewise. * config/i386/x86-tune-sched-bd.c (IN_TARGET_CODE): Likewise. * config/i386/x86-tune-sched-core.c (IN_TARGET_CODE): Likewise. * config/i386/x86-tune-sched.c (IN_TARGET_CODE): Likewise. * config/ia64/ia64-c.c (IN_TARGET_CODE): Likewise. * config/ia64/ia64.c (IN_TARGET_CODE): Likewise. * config/iq2000/iq2000.c (IN_TARGET_CODE): Likewise. * config/lm32/lm32.c (IN_TARGET_CODE): Likewise. * config/m32c/m32c-pragma.c (IN_TARGET_CODE): Likewise. * config/m32c/m32c.c (IN_TARGET_CODE): Likewise. * config/m32r/m32r.c (IN_TARGET_CODE): Likewise. * config/m68k/m68k.c (IN_TARGET_CODE): Likewise. * config/mcore/mcore.c (IN_TARGET_CODE): Likewise. * config/microblaze/microblaze-c.c (IN_TARGET_CODE): Likewise. * config/microblaze/microblaze.c (IN_TARGET_CODE): Likewise. * config/mips/driver-native.c (IN_TARGET_CODE): Likewise. * config/mips/frame-header-opt.c (IN_TARGET_CODE): Likewise. * config/mips/mips.c (IN_TARGET_CODE): Likewise. * config/mmix/mmix.c (IN_TARGET_CODE): Likewise. * config/mn10300/mn10300.c (IN_TARGET_CODE): Likewise. * config/moxie/moxie.c (IN_TARGET_CODE): Likewise. * config/msp430/driver-msp430.c (IN_TARGET_CODE): Likewise. * config/msp430/msp430-c.c (IN_TARGET_CODE): Likewise. * config/msp430/msp430.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-cost.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-fp-as-gp.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-intrinsic.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-isr.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-md-auxiliary.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-memory-manipulation.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-pipelines-auxiliary.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32-predicates.c (IN_TARGET_CODE): Likewise. * config/nds32/nds32.c (IN_TARGET_CODE): Likewise. * config/nios2/nios2.c (IN_TARGET_CODE): Likewise. * config/nvptx/mkoffload.c (IN_TARGET_CODE): Likewise. * config/nvptx/nvptx.c (IN_TARGET_CODE): Likewise. * config/pa/pa.c (IN_TARGET_CODE): Likewise. * config/pdp11/pdp11.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/driver-powerpcspe.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/host-darwin.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/host-ppc64-darwin.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/powerpcspe-c.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/powerpcspe-linux.c (IN_TARGET_CODE): Likewise. * config/powerpcspe/powerpcspe.c (IN_TARGET_CODE): Likewise. * config/riscv/riscv-builtins.c (IN_TARGET_CODE): Likewise. * config/riscv/riscv-c.c (IN_TARGET_CODE): Likewise. * config/riscv/riscv.c (IN_TARGET_CODE): Likewise. * config/rl78/rl78-c.c (IN_TARGET_CODE): Likewise. * config/rl78/rl78.c (IN_TARGET_CODE): Likewise. * config/rs6000/driver-rs6000.c (IN_TARGET_CODE): Likewise. * config/rs6000/host-darwin.c (IN_TARGET_CODE): Likewise. * config/rs6000/host-ppc64-darwin.c (IN_TARGET_CODE): Likewise. * config/rs6000/rs6000-c.c (IN_TARGET_CODE): Likewise. * config/rs6000/rs6000-linux.c (IN_TARGET_CODE): Likewise. * config/rs6000/rs6000-p8swap.c (IN_TARGET_CODE): Likewise. * config/rs6000/rs6000-string.c (IN_TARGET_CODE): Likewise. * config/rs6000/rs6000.c (IN_TARGET_CODE): Likewise. * config/rx/rx.c (IN_TARGET_CODE): Likewise. * config/s390/driver-native.c (IN_TARGET_CODE): Likewise. * config/s390/s390-c.c (IN_TARGET_CODE): Likewise. * config/s390/s390.c (IN_TARGET_CODE): Likewise. * config/sh/sh-c.c (IN_TARGET_CODE): Likewise. * config/sh/sh-mem.cc (IN_TARGET_CODE): Likewise. * config/sh/sh.c (IN_TARGET_CODE): Likewise. * config/sh/sh_optimize_sett_clrt.cc (IN_TARGET_CODE): Likewise. * config/sh/sh_treg_combine.cc (IN_TARGET_CODE): Likewise. * config/sparc/driver-sparc.c (IN_TARGET_CODE): Likewise. * config/sparc/sparc-c.c (IN_TARGET_CODE): Likewise. * config/sparc/sparc.c (IN_TARGET_CODE): Likewise. * config/spu/spu-c.c (IN_TARGET_CODE): Likewise. * config/spu/spu.c (IN_TARGET_CODE): Likewise. * config/stormy16/stormy16.c (IN_TARGET_CODE): Likewise. * config/tilegx/mul-tables.c (IN_TARGET_CODE): Likewise. * config/tilegx/tilegx-c.c (IN_TARGET_CODE): Likewise. * config/tilegx/tilegx.c (IN_TARGET_CODE): Likewise. * config/tilepro/mul-tables.c (IN_TARGET_CODE): Likewise. * config/tilepro/tilepro-c.c (IN_TARGET_CODE): Likewise. * config/tilepro/tilepro.c (IN_TARGET_CODE): Likewise. * config/v850/v850-c.c (IN_TARGET_CODE): Likewise. * config/v850/v850.c (IN_TARGET_CODE): Likewise. * config/vax/vax.c (IN_TARGET_CODE): Likewise. * config/visium/visium.c (IN_TARGET_CODE): Likewise. * config/vms/vms-c.c (IN_TARGET_CODE): Likewise. * config/vms/vms-f.c (IN_TARGET_CODE): Likewise. * config/vms/vms.c (IN_TARGET_CODE): Likewise. * config/xtensa/xtensa.c (IN_TARGET_CODE): Likewise. Co-Authored-By: Alan Hayward Co-Authored-By: David Sherwood From-SVN: r255743 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 843f4927828d..841e6edace20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,152 @@ +2017-12-16 Richard Sandiford + Alan Hayward + David Sherwood + + * doc/sourcebuild.texi: Document IN_TARGET_CODE. + * genattrtab.c (write_header): Define IN_TARGET_CODE to 1 in the + target C file. + * genautomata.c (main): Likewise. + * genconditions.c (write_header): Likewise. + * genemit.c (main): Likewise. + * genextract.c (print_header): Likewise. + * genopinit.c (main): Likewise. + * genoutput.c (output_prologue): Likewise. + * genpeep.c (main): Likewise. + * genpreds.c (write_insn_preds_c): Likewise. + * genrecog.c (writer_header): Likewise. + * config/aarch64/aarch64-builtins.c (IN_TARGET_CODE): Define. + * config/aarch64/aarch64-c.c (IN_TARGET_CODE): Likewise. + * config/aarch64/aarch64.c (IN_TARGET_CODE): Likewise. + * config/aarch64/cortex-a57-fma-steering.c (IN_TARGET_CODE): Likewise. + * config/aarch64/driver-aarch64.c (IN_TARGET_CODE): Likewise. + * config/alpha/alpha.c (IN_TARGET_CODE): Likewise. + * config/alpha/driver-alpha.c (IN_TARGET_CODE): Likewise. + * config/arc/arc-c.c (IN_TARGET_CODE): Likewise. + * config/arc/arc.c (IN_TARGET_CODE): Likewise. + * config/arc/driver-arc.c (IN_TARGET_CODE): Likewise. + * config/arm/aarch-common.c (IN_TARGET_CODE): Likewise. + * config/arm/arm-builtins.c (IN_TARGET_CODE): Likewise. + * config/arm/arm-c.c (IN_TARGET_CODE): Likewise. + * config/arm/arm.c (IN_TARGET_CODE): Likewise. + * config/arm/driver-arm.c (IN_TARGET_CODE): Likewise. + * config/avr/avr-c.c (IN_TARGET_CODE): Likewise. + * config/avr/avr-devices.c (IN_TARGET_CODE): Likewise. + * config/avr/avr-log.c (IN_TARGET_CODE): Likewise. + * config/avr/avr.c (IN_TARGET_CODE): Likewise. + * config/avr/driver-avr.c (IN_TARGET_CODE): Likewise. + * config/avr/gen-avr-mmcu-specs.c (IN_TARGET_CODE): Likewise. + * config/bfin/bfin.c (IN_TARGET_CODE): Likewise. + * config/c6x/c6x.c (IN_TARGET_CODE): Likewise. + * config/cr16/cr16.c (IN_TARGET_CODE): Likewise. + * config/cris/cris.c (IN_TARGET_CODE): Likewise. + * config/darwin.c (IN_TARGET_CODE): Likewise. + * config/epiphany/epiphany.c (IN_TARGET_CODE): Likewise. + * config/epiphany/mode-switch-use.c (IN_TARGET_CODE): Likewise. + * config/epiphany/resolve-sw-modes.c (IN_TARGET_CODE): Likewise. + * config/fr30/fr30.c (IN_TARGET_CODE): Likewise. + * config/frv/frv.c (IN_TARGET_CODE): Likewise. + * config/ft32/ft32.c (IN_TARGET_CODE): Likewise. + * config/h8300/h8300.c (IN_TARGET_CODE): Likewise. + * config/i386/djgpp.c (IN_TARGET_CODE): Likewise. + * config/i386/driver-i386.c (IN_TARGET_CODE): Likewise. + * config/i386/driver-mingw32.c (IN_TARGET_CODE): Likewise. + * config/i386/host-cygwin.c (IN_TARGET_CODE): Likewise. + * config/i386/host-i386-darwin.c (IN_TARGET_CODE): Likewise. + * config/i386/host-mingw32.c (IN_TARGET_CODE): Likewise. + * config/i386/i386-c.c (IN_TARGET_CODE): Likewise. + * config/i386/i386.c (IN_TARGET_CODE): Likewise. + * config/i386/intelmic-mkoffload.c (IN_TARGET_CODE): Likewise. + * config/i386/msformat-c.c (IN_TARGET_CODE): Likewise. + * config/i386/winnt-cxx.c (IN_TARGET_CODE): Likewise. + * config/i386/winnt-stubs.c (IN_TARGET_CODE): Likewise. + * config/i386/winnt.c (IN_TARGET_CODE): Likewise. + * config/i386/x86-tune-sched-atom.c (IN_TARGET_CODE): Likewise. + * config/i386/x86-tune-sched-bd.c (IN_TARGET_CODE): Likewise. + * config/i386/x86-tune-sched-core.c (IN_TARGET_CODE): Likewise. + * config/i386/x86-tune-sched.c (IN_TARGET_CODE): Likewise. + * config/ia64/ia64-c.c (IN_TARGET_CODE): Likewise. + * config/ia64/ia64.c (IN_TARGET_CODE): Likewise. + * config/iq2000/iq2000.c (IN_TARGET_CODE): Likewise. + * config/lm32/lm32.c (IN_TARGET_CODE): Likewise. + * config/m32c/m32c-pragma.c (IN_TARGET_CODE): Likewise. + * config/m32c/m32c.c (IN_TARGET_CODE): Likewise. + * config/m32r/m32r.c (IN_TARGET_CODE): Likewise. + * config/m68k/m68k.c (IN_TARGET_CODE): Likewise. + * config/mcore/mcore.c (IN_TARGET_CODE): Likewise. + * config/microblaze/microblaze-c.c (IN_TARGET_CODE): Likewise. + * config/microblaze/microblaze.c (IN_TARGET_CODE): Likewise. + * config/mips/driver-native.c (IN_TARGET_CODE): Likewise. + * config/mips/frame-header-opt.c (IN_TARGET_CODE): Likewise. + * config/mips/mips.c (IN_TARGET_CODE): Likewise. + * config/mmix/mmix.c (IN_TARGET_CODE): Likewise. + * config/mn10300/mn10300.c (IN_TARGET_CODE): Likewise. + * config/moxie/moxie.c (IN_TARGET_CODE): Likewise. + * config/msp430/driver-msp430.c (IN_TARGET_CODE): Likewise. + * config/msp430/msp430-c.c (IN_TARGET_CODE): Likewise. + * config/msp430/msp430.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-cost.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-fp-as-gp.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-intrinsic.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-isr.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-md-auxiliary.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-memory-manipulation.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-pipelines-auxiliary.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32-predicates.c (IN_TARGET_CODE): Likewise. + * config/nds32/nds32.c (IN_TARGET_CODE): Likewise. + * config/nios2/nios2.c (IN_TARGET_CODE): Likewise. + * config/nvptx/mkoffload.c (IN_TARGET_CODE): Likewise. + * config/nvptx/nvptx.c (IN_TARGET_CODE): Likewise. + * config/pa/pa.c (IN_TARGET_CODE): Likewise. + * config/pdp11/pdp11.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/driver-powerpcspe.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/host-darwin.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/host-ppc64-darwin.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/powerpcspe-c.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/powerpcspe-linux.c (IN_TARGET_CODE): Likewise. + * config/powerpcspe/powerpcspe.c (IN_TARGET_CODE): Likewise. + * config/riscv/riscv-builtins.c (IN_TARGET_CODE): Likewise. + * config/riscv/riscv-c.c (IN_TARGET_CODE): Likewise. + * config/riscv/riscv.c (IN_TARGET_CODE): Likewise. + * config/rl78/rl78-c.c (IN_TARGET_CODE): Likewise. + * config/rl78/rl78.c (IN_TARGET_CODE): Likewise. + * config/rs6000/driver-rs6000.c (IN_TARGET_CODE): Likewise. + * config/rs6000/host-darwin.c (IN_TARGET_CODE): Likewise. + * config/rs6000/host-ppc64-darwin.c (IN_TARGET_CODE): Likewise. + * config/rs6000/rs6000-c.c (IN_TARGET_CODE): Likewise. + * config/rs6000/rs6000-linux.c (IN_TARGET_CODE): Likewise. + * config/rs6000/rs6000-p8swap.c (IN_TARGET_CODE): Likewise. + * config/rs6000/rs6000-string.c (IN_TARGET_CODE): Likewise. + * config/rs6000/rs6000.c (IN_TARGET_CODE): Likewise. + * config/rx/rx.c (IN_TARGET_CODE): Likewise. + * config/s390/driver-native.c (IN_TARGET_CODE): Likewise. + * config/s390/s390-c.c (IN_TARGET_CODE): Likewise. + * config/s390/s390.c (IN_TARGET_CODE): Likewise. + * config/sh/sh-c.c (IN_TARGET_CODE): Likewise. + * config/sh/sh-mem.cc (IN_TARGET_CODE): Likewise. + * config/sh/sh.c (IN_TARGET_CODE): Likewise. + * config/sh/sh_optimize_sett_clrt.cc (IN_TARGET_CODE): Likewise. + * config/sh/sh_treg_combine.cc (IN_TARGET_CODE): Likewise. + * config/sparc/driver-sparc.c (IN_TARGET_CODE): Likewise. + * config/sparc/sparc-c.c (IN_TARGET_CODE): Likewise. + * config/sparc/sparc.c (IN_TARGET_CODE): Likewise. + * config/spu/spu-c.c (IN_TARGET_CODE): Likewise. + * config/spu/spu.c (IN_TARGET_CODE): Likewise. + * config/stormy16/stormy16.c (IN_TARGET_CODE): Likewise. + * config/tilegx/mul-tables.c (IN_TARGET_CODE): Likewise. + * config/tilegx/tilegx-c.c (IN_TARGET_CODE): Likewise. + * config/tilegx/tilegx.c (IN_TARGET_CODE): Likewise. + * config/tilepro/mul-tables.c (IN_TARGET_CODE): Likewise. + * config/tilepro/tilepro-c.c (IN_TARGET_CODE): Likewise. + * config/tilepro/tilepro.c (IN_TARGET_CODE): Likewise. + * config/v850/v850-c.c (IN_TARGET_CODE): Likewise. + * config/v850/v850.c (IN_TARGET_CODE): Likewise. + * config/vax/vax.c (IN_TARGET_CODE): Likewise. + * config/visium/visium.c (IN_TARGET_CODE): Likewise. + * config/vms/vms-c.c (IN_TARGET_CODE): Likewise. + * config/vms/vms-f.c (IN_TARGET_CODE): Likewise. + * config/vms/vms.c (IN_TARGET_CODE): Likewise. + * config/xtensa/xtensa.c (IN_TARGET_CODE): Likewise. + 2017-12-16 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c index 8cbdb0112032..29955a3fecf3 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/aarch64/aarch64-c.c b/gcc/config/aarch64/aarch64-c.c index e18ec4a0aad4..81d7fea53a18 100644 --- a/gcc/config/aarch64/aarch64-c.c +++ b/gcc/config/aarch64/aarch64-c.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index b9c17fc5ccc2..d10fa1688757 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_STRING #include "system.h" diff --git a/gcc/config/aarch64/cortex-a57-fma-steering.c b/gcc/config/aarch64/cortex-a57-fma-steering.c index fa8c56aab022..a07fc9c39f49 100644 --- a/gcc/config/aarch64/cortex-a57-fma-steering.c +++ b/gcc/config/aarch64/cortex-a57-fma-steering.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_LIST #include "system.h" diff --git a/gcc/config/aarch64/driver-aarch64.c b/gcc/config/aarch64/driver-aarch64.c index 75de645a0cfb..dedd482f395d 100644 --- a/gcc/config/aarch64/driver-aarch64.c +++ b/gcc/config/aarch64/driver-aarch64.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_STRING #include "system.h" diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 63821fc62350..16ca93d6bdb1 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/alpha/driver-alpha.c b/gcc/config/alpha/driver-alpha.c index 6eaa586913bc..f2dba39712c3 100644 --- a/gcc/config/alpha/driver-alpha.c +++ b/gcc/config/alpha/driver-alpha.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arc/arc-c.c b/gcc/config/arc/arc-c.c index 44ff338c2699..7f4a4deec0b0 100644 --- a/gcc/config/arc/arc-c.c +++ b/gcc/config/arc/arc-c.c @@ -17,6 +17,8 @@ . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 3fc867f09c40..d1d0d727df14 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -28,6 +28,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arc/driver-arc.c b/gcc/config/arc/driver-arc.c index 0e13878ff732..6d571d1bf58a 100644 --- a/gcc/config/arc/driver-arc.c +++ b/gcc/config/arc/driver-arc.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arm/aarch-common.c b/gcc/config/arm/aarch-common.c index 979f86e5bedc..34751aff8a3e 100644 --- a/gcc/config/arm/aarch-common.c +++ b/gcc/config/arm/aarch-common.c @@ -21,6 +21,8 @@ . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arm/arm-builtins.c b/gcc/config/arm/arm-builtins.c index 6d1b20c80f9a..d09c6e371de5 100644 --- a/gcc/config/arm/arm-builtins.c +++ b/gcc/config/arm/arm-builtins.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arm/arm-c.c b/gcc/config/arm/arm-c.c index 295f03bf8ee0..635bc3c1c38d 100644 --- a/gcc/config/arm/arm-c.c +++ b/gcc/config/arm/arm-c.c @@ -16,6 +16,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 1b2bcc3f74f1..3252f849ad27 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_STRING #include "system.h" diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c index 86212315f13e..280f4202920e 100644 --- a/gcc/config/arm/driver-arm.c +++ b/gcc/config/arm/driver-arm.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/avr/avr-c.c b/gcc/config/avr/avr-c.c index e47cefaae2e2..aaab8e65eaab 100644 --- a/gcc/config/avr/avr-c.c +++ b/gcc/config/avr/avr-c.c @@ -19,6 +19,8 @@ /* Not included in avr.c since this requires C front end. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/avr/avr-devices.c b/gcc/config/avr/avr-devices.c index 9961588eef76..07f1976085d4 100644 --- a/gcc/config/avr/avr-devices.c +++ b/gcc/config/avr/avr-devices.c @@ -18,6 +18,8 @@ . */ #ifndef IN_GEN_AVR_MMCU_TEXI +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c index aacaed04ef11..e3a821a48444 100644 --- a/gcc/config/avr/avr-log.c +++ b/gcc/config/avr/avr-log.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 39decb820c21..8a28950dfab1 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "intl.h" diff --git a/gcc/config/avr/driver-avr.c b/gcc/config/avr/driver-avr.c index c27cc5c2937e..fe17e2df151a 100644 --- a/gcc/config/avr/driver-avr.c +++ b/gcc/config/avr/driver-avr.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/avr/gen-avr-mmcu-specs.c b/gcc/config/avr/gen-avr-mmcu-specs.c index b923aa4ee3cd..e09f3e465027 100644 --- a/gcc/config/avr/gen-avr-mmcu-specs.c +++ b/gcc/config/avr/gen-avr-mmcu-specs.c @@ -21,6 +21,8 @@ #include #include +#define IN_TARGET_CODE 1 + #include "config.h" #define IN_GEN_AVR_MMCU_TEXI diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 96ef232f0853..d4460b53d748 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index cbc44ecf0ffb..ab67577d0a6a 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c index 70c0e34ed8ec..2dd30fad85a8 100644 --- a/gcc/config/cr16/cr16.c +++ b/gcc/config/cr16/cr16.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 8fa234f7ff05..a31e74358e1f 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index e633b88f6b0c..7d3b754fd3e6 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index 912823160dae..af296c61148e 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/epiphany/mode-switch-use.c b/gcc/config/epiphany/mode-switch-use.c index 394ce5e841c9..d607ead56b0b 100644 --- a/gcc/config/epiphany/mode-switch-use.c +++ b/gcc/config/epiphany/mode-switch-use.c @@ -19,6 +19,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/epiphany/resolve-sw-modes.c b/gcc/config/epiphany/resolve-sw-modes.c index f38e2104c9ed..36e4672e77bf 100644 --- a/gcc/config/epiphany/resolve-sw-modes.c +++ b/gcc/config/epiphany/resolve-sw-modes.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/fr30/fr30.c b/gcc/config/fr30/fr30.c index 91884811f17e..920e65aaa291 100644 --- a/gcc/config/fr30/fr30.c +++ b/gcc/config/fr30/fr30.c @@ -20,6 +20,8 @@ /*{{{ Includes */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index c9877e74d7c3..b644a63d48e8 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/ft32/ft32.c b/gcc/config/ft32/ft32.c index d7d41a2f3cae..ddc847a8eb86 100644 --- a/gcc/config/ft32/ft32.c +++ b/gcc/config/ft32/ft32.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index dd5b69c44f24..c574375df633 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -19,6 +19,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/djgpp.c b/gcc/config/i386/djgpp.c index a949fab7684c..54c115378752 100644 --- a/gcc/config/i386/djgpp.c +++ b/gcc/config/i386/djgpp.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 0cc4c4e96d6a..013107ae7220 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/driver-mingw32.c b/gcc/config/i386/driver-mingw32.c index b70363ad26a7..bc3cacd3e25d 100644 --- a/gcc/config/i386/driver-mingw32.c +++ b/gcc/config/i386/driver-mingw32.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" /* When defined, force the use (if non null) or not (otherwise) of CLI diff --git a/gcc/config/i386/host-cygwin.c b/gcc/config/i386/host-cygwin.c index 7817752ad5ba..abe6b52873c0 100644 --- a/gcc/config/i386/host-cygwin.c +++ b/gcc/config/i386/host-cygwin.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/host-i386-darwin.c b/gcc/config/i386/host-i386-darwin.c index 3d7d2b4b535d..d360380c35f7 100644 --- a/gcc/config/i386/host-i386-darwin.c +++ b/gcc/config/i386/host-i386-darwin.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c index 68100b7a226e..5d2c608e1139 100644 --- a/gcc/config/i386/host-mingw32.c +++ b/gcc/config/i386/host-mingw32.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 8ccec7bc29f2..072e49bbc0fb 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 551395f4e54c..b9f6e27f9b13 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/intelmic-mkoffload.c b/gcc/config/i386/intelmic-mkoffload.c index 2cc01086f638..0b7c9548d196 100644 --- a/gcc/config/i386/intelmic-mkoffload.c +++ b/gcc/config/i386/intelmic-mkoffload.c @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include #include "system.h" diff --git a/gcc/config/i386/msformat-c.c b/gcc/config/i386/msformat-c.c index 716a5c68cac2..6006d9b00175 100644 --- a/gcc/config/i386/msformat-c.c +++ b/gcc/config/i386/msformat-c.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/winnt-cxx.c b/gcc/config/i386/winnt-cxx.c index a3569fb1b561..532d9c993ba2 100644 --- a/gcc/config/i386/winnt-cxx.c +++ b/gcc/config/i386/winnt-cxx.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/winnt-stubs.c b/gcc/config/i386/winnt-stubs.c index bd5588b9d0d8..52a2bbf613e3 100644 --- a/gcc/config/i386/winnt-stubs.c +++ b/gcc/config/i386/winnt-stubs.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 61d94d264f03..2f8518e1f1d6 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/x86-tune-sched-atom.c b/gcc/config/i386/x86-tune-sched-atom.c index 86942c0703d5..9e9f253d5c38 100644 --- a/gcc/config/i386/x86-tune-sched-atom.c +++ b/gcc/config/i386/x86-tune-sched-atom.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/x86-tune-sched-bd.c b/gcc/config/i386/x86-tune-sched-bd.c index c862fc156e21..0045c631bbc4 100644 --- a/gcc/config/i386/x86-tune-sched-bd.c +++ b/gcc/config/i386/x86-tune-sched-bd.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/x86-tune-sched-core.c b/gcc/config/i386/x86-tune-sched-core.c index 67b14a708e8c..70e8556a1db2 100644 --- a/gcc/config/i386/x86-tune-sched-core.c +++ b/gcc/config/i386/x86-tune-sched-core.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/i386/x86-tune-sched.c b/gcc/config/i386/x86-tune-sched.c index 5bcaf2c59daa..4902d9475714 100644 --- a/gcc/config/i386/x86-tune-sched.c +++ b/gcc/config/i386/x86-tune-sched.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/ia64/ia64-c.c b/gcc/config/ia64/ia64-c.c index 3319cbc7f66a..37791f3e71a4 100644 --- a/gcc/config/ia64/ia64-c.c +++ b/gcc/config/ia64/ia64-c.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b16c3401aa09..f99bea98d218 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -19,6 +19,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index 2e0c6f6a975e..ee107cbd81f4 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/lm32/lm32.c b/gcc/config/lm32/lm32.c index 1d6cfa0dc8a9..9677087cf0fe 100644 --- a/gcc/config/lm32/lm32.c +++ b/gcc/config/lm32/lm32.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/m32c/m32c-pragma.c b/gcc/config/m32c/m32c-pragma.c index 68aa2287222b..c44e59c4aa65 100644 --- a/gcc/config/m32c/m32c-pragma.c +++ b/gcc/config/m32c/m32c-pragma.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index 244e6bcc160d..f6b711eaf6db 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index 830e7e742fbf..dbc1baec190b 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 075ab47cc0b3..9e428304a5d4 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 4bd1671f99d2..57447e6d2cd0 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/microblaze/microblaze-c.c b/gcc/config/microblaze/microblaze-c.c index 0c9a6af1bb49..6dd4be6cc11f 100644 --- a/gcc/config/microblaze/microblaze-c.c +++ b/gcc/config/microblaze/microblaze-c.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index a808bd061337..acebb52d6cbe 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/mips/driver-native.c b/gcc/config/mips/driver-native.c index e1261a0bc98d..48952160bed4 100644 --- a/gcc/config/mips/driver-native.c +++ b/gcc/config/mips/driver-native.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/mips/frame-header-opt.c b/gcc/config/mips/frame-header-opt.c index 8c41562ab4fa..2a960d692f4a 100644 --- a/gcc/config/mips/frame-header-opt.c +++ b/gcc/config/mips/frame-header-opt.c @@ -23,6 +23,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "context.h" diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index d6f7e28c030a..4f6eb8441fea 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -21,6 +21,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index 4a73162c18c0..038c394705b6 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index 8351a5ef9595..705f577c0fc3 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c index 490123748584..f570c06b55d8 100644 --- a/gcc/config/moxie/moxie.c +++ b/gcc/config/moxie/moxie.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/msp430/driver-msp430.c b/gcc/config/msp430/driver-msp430.c index bad70bb6fa7c..fa1d90b13a46 100644 --- a/gcc/config/msp430/driver-msp430.c +++ b/gcc/config/msp430/driver-msp430.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/msp430/msp430-c.c b/gcc/config/msp430/msp430-c.c index 6ec5b03c6021..7293fb6606fe 100644 --- a/gcc/config/msp430/msp430-c.c +++ b/gcc/config/msp430/msp430-c.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index e8f4c9f36521..46cbaa7b8d85 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-cost.c b/gcc/config/nds32/nds32-cost.c index c507517ee8d2..8f7c316766bd 100644 --- a/gcc/config/nds32/nds32-cost.c +++ b/gcc/config/nds32/nds32-cost.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-fp-as-gp.c b/gcc/config/nds32/nds32-fp-as-gp.c index 6b340b90f725..743179b63136 100644 --- a/gcc/config/nds32/nds32-fp-as-gp.c +++ b/gcc/config/nds32/nds32-fp-as-gp.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-intrinsic.c b/gcc/config/nds32/nds32-intrinsic.c index 86d2ed180a1f..064a8c1731d8 100644 --- a/gcc/config/nds32/nds32-intrinsic.c +++ b/gcc/config/nds32/nds32-intrinsic.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-isr.c b/gcc/config/nds32/nds32-isr.c index 933072c2863f..698315e1fc4d 100644 --- a/gcc/config/nds32/nds32-isr.c +++ b/gcc/config/nds32/nds32-isr.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-md-auxiliary.c b/gcc/config/nds32/nds32-md-auxiliary.c index 5888438ffd43..b4041df6b664 100644 --- a/gcc/config/nds32/nds32-md-auxiliary.c +++ b/gcc/config/nds32/nds32-md-auxiliary.c @@ -21,6 +21,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-memory-manipulation.c b/gcc/config/nds32/nds32-memory-manipulation.c index 5bc1f9b5396e..5503dba8036b 100644 --- a/gcc/config/nds32/nds32-memory-manipulation.c +++ b/gcc/config/nds32/nds32-memory-manipulation.c @@ -21,6 +21,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-pipelines-auxiliary.c b/gcc/config/nds32/nds32-pipelines-auxiliary.c index c0fd54dbba2f..603ca7e69bf2 100644 --- a/gcc/config/nds32/nds32-pipelines-auxiliary.c +++ b/gcc/config/nds32/nds32-pipelines-auxiliary.c @@ -21,6 +21,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32-predicates.c b/gcc/config/nds32/nds32-predicates.c index b6cff20b0cbe..32aec3c71631 100644 --- a/gcc/config/nds32/nds32-predicates.c +++ b/gcc/config/nds32/nds32-predicates.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index e4ba5ff8cb61..99c3dd077c26 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -20,6 +20,8 @@ /* ------------------------------------------------------------------------ */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index e0df9c5b8b44..f6084039eea4 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nvptx/mkoffload.c b/gcc/config/nvptx/mkoffload.c index 7baa593d7f3d..560ea23e72b8 100644 --- a/gcc/config/nvptx/mkoffload.c +++ b/gcc/config/nvptx/mkoffload.c @@ -27,6 +27,8 @@ This is not a complete assembler. We presume the source is well formed from the compiler and can die horribly if it is not. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index f57b4f9b33be..cce0a5558127 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include #include "system.h" diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 5d28ecda2edf..8b46252463e1 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index 4fdb077479d5..06fef13f5d67 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/driver-powerpcspe.c b/gcc/config/powerpcspe/driver-powerpcspe.c index 8215abbd6258..f3edb861138d 100644 --- a/gcc/config/powerpcspe/driver-powerpcspe.c +++ b/gcc/config/powerpcspe/driver-powerpcspe.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/host-darwin.c b/gcc/config/powerpcspe/host-darwin.c index da90e2f64522..ecafe08962f5 100644 --- a/gcc/config/powerpcspe/host-darwin.c +++ b/gcc/config/powerpcspe/host-darwin.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/host-ppc64-darwin.c b/gcc/config/powerpcspe/host-ppc64-darwin.c index 381fe1673ae5..8f995148b246 100644 --- a/gcc/config/powerpcspe/host-ppc64-darwin.c +++ b/gcc/config/powerpcspe/host-ppc64-darwin.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/powerpcspe-c.c b/gcc/config/powerpcspe/powerpcspe-c.c index 661480fd479f..6020d0c15b25 100644 --- a/gcc/config/powerpcspe/powerpcspe-c.c +++ b/gcc/config/powerpcspe/powerpcspe-c.c @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/powerpcspe-linux.c b/gcc/config/powerpcspe/powerpcspe-linux.c index 4a8d9fad6ea2..f9965b660b11 100644 --- a/gcc/config/powerpcspe/powerpcspe-linux.c +++ b/gcc/config/powerpcspe/powerpcspe-linux.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/powerpcspe/powerpcspe.c b/gcc/config/powerpcspe/powerpcspe.c index 7d1124223d22..bf90cc5cd7de 100644 --- a/gcc/config/powerpcspe/powerpcspe.c +++ b/gcc/config/powerpcspe/powerpcspe.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/riscv/riscv-builtins.c b/gcc/config/riscv/riscv-builtins.c index 1311fee6f70b..39d2316e9ef8 100644 --- a/gcc/config/riscv/riscv-builtins.c +++ b/gcc/config/riscv/riscv-builtins.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/riscv/riscv-c.c b/gcc/config/riscv/riscv-c.c index 64e7cf877afe..2a045ec026b4 100644 --- a/gcc/config/riscv/riscv-c.c +++ b/gcc/config/riscv/riscv-c.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c index cfab2e77686a..0147c314b7a9 100644 --- a/gcc/config/riscv/riscv.c +++ b/gcc/config/riscv/riscv.c @@ -19,6 +19,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rl78/rl78-c.c b/gcc/config/rl78/rl78-c.c index 3572ae48c7ef..59409c8aa248 100644 --- a/gcc/config/rl78/rl78-c.c +++ b/gcc/config/rl78/rl78-c.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index e2532b13b56c..6c4caee7a355 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index 8215abbd6258..f3edb861138d 100644 --- a/gcc/config/rs6000/driver-rs6000.c +++ b/gcc/config/rs6000/driver-rs6000.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index da90e2f64522..ecafe08962f5 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/host-ppc64-darwin.c b/gcc/config/rs6000/host-ppc64-darwin.c index 381fe1673ae5..8f995148b246 100644 --- a/gcc/config/rs6000/host-ppc64-darwin.c +++ b/gcc/config/rs6000/host-ppc64-darwin.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 1bcdaa95e769..550704246869 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/rs6000-linux.c b/gcc/config/rs6000/rs6000-linux.c index 4a8d9fad6ea2..f9965b660b11 100644 --- a/gcc/config/rs6000/rs6000-linux.c +++ b/gcc/config/rs6000/rs6000-linux.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/rs6000-p8swap.c b/gcc/config/rs6000/rs6000-p8swap.c index e1324b72c251..7d9ab878625b 100644 --- a/gcc/config/rs6000/rs6000-p8swap.c +++ b/gcc/config/rs6000/rs6000-p8swap.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/rs6000-string.c b/gcc/config/rs6000/rs6000-string.c index 1ff4284073a4..7e1976bbe085 100644 --- a/gcc/config/rs6000/rs6000-string.c +++ b/gcc/config/rs6000/rs6000-string.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 215a1f4d3e4c..42704d34d981 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 071cca5a947d..150ef98dfd26 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -22,6 +22,8 @@ * Re-enable memory-to-memory copies and fix up reload. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/s390/driver-native.c b/gcc/config/s390/driver-native.c index acb983613c24..40b592380426 100644 --- a/gcc/config/s390/driver-native.c +++ b/gcc/config/s390/driver-native.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index 07224ad7f394..0a2733c8d628 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -27,6 +27,8 @@ included anymore - a mechanism supposed to avoid adding frontend - backend dependencies. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index b87b49e2060e..0b04ac026fbd 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sh/sh-c.c b/gcc/config/sh/sh-c.c index 31e591daa4b4..ca74f0fb78d0 100644 --- a/gcc/config/sh/sh-c.c +++ b/gcc/config/sh/sh-c.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc index 4c33260d84e6..c5a9a1e53e66 100644 --- a/gcc/config/sh/sh-mem.cc +++ b/gcc/config/sh/sh-mem.cc @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index a627e8f35998..e0ad5bfc78b7 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -21,6 +21,8 @@ along with GCC; see the file COPYING3. If not see #include +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_VECTOR #include "system.h" diff --git a/gcc/config/sh/sh_optimize_sett_clrt.cc b/gcc/config/sh/sh_optimize_sett_clrt.cc index 449261e86de4..bfb9aba1f7bf 100644 --- a/gcc/config/sh/sh_optimize_sett_clrt.cc +++ b/gcc/config/sh/sh_optimize_sett_clrt.cc @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sh/sh_treg_combine.cc b/gcc/config/sh/sh_treg_combine.cc index bae81af3126e..05608ce5b20c 100644 --- a/gcc/config/sh/sh_treg_combine.cc +++ b/gcc/config/sh/sh_treg_combine.cc @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #define INCLUDE_ALGORITHM #define INCLUDE_LIST diff --git a/gcc/config/sparc/driver-sparc.c b/gcc/config/sparc/driver-sparc.c index 0c25d6cfa150..9b811a871fad 100644 --- a/gcc/config/sparc/driver-sparc.c +++ b/gcc/config/sparc/driver-sparc.c @@ -17,6 +17,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sparc/sparc-c.c b/gcc/config/sparc/sparc-c.c index 4aacfff05ff7..f8124bf96ef8 100644 --- a/gcc/config/sparc/sparc-c.c +++ b/gcc/config/sparc/sparc-c.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index fc50f9b1aa03..c7c0bd82e3b3 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index ba858f1fbb91..4f78bb744a50 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/config/spu/spu-c.c @@ -14,6 +14,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index c1c79a2656df..4b47b4adf9ea 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -14,6 +14,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index bf7269391b50..a3557940d9ef 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilegx/mul-tables.c b/gcc/config/tilegx/mul-tables.c index 9725f7dfb74b..877df275e33a 100644 --- a/gcc/config/tilegx/mul-tables.c +++ b/gcc/config/tilegx/mul-tables.c @@ -21,6 +21,8 @@ /* Note this file is auto-generated from gen-mul-tables.cc. Make any required changes there. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilegx/tilegx-c.c b/gcc/config/tilegx/tilegx-c.c index 8f38a881d126..ba63fdef8c60 100644 --- a/gcc/config/tilegx/tilegx-c.c +++ b/gcc/config/tilegx/tilegx-c.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c index 63fe3406ae98..794afee09889 100644 --- a/gcc/config/tilegx/tilegx.c +++ b/gcc/config/tilegx/tilegx.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilepro/mul-tables.c b/gcc/config/tilepro/mul-tables.c index 99877d6d2ea7..32e6ec0a97ce 100644 --- a/gcc/config/tilepro/mul-tables.c +++ b/gcc/config/tilepro/mul-tables.c @@ -21,6 +21,8 @@ /* Note this file is auto-generated from gen-mul-tables.cc. Make any required changes there. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilepro/tilepro-c.c b/gcc/config/tilepro/tilepro-c.c index fab4689381bb..13e8056628f9 100644 --- a/gcc/config/tilepro/tilepro-c.c +++ b/gcc/config/tilepro/tilepro-c.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/tilepro/tilepro.c b/gcc/config/tilepro/tilepro.c index ee9bc0a93437..ae71f7526900 100644 --- a/gcc/config/tilepro/tilepro.c +++ b/gcc/config/tilepro/tilepro.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/v850/v850-c.c b/gcc/config/v850/v850-c.c index 1855204d8984..145eef510ef9 100644 --- a/gcc/config/v850/v850-c.c +++ b/gcc/config/v850/v850-c.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index a26f5d655fff..ab096ea2fc87 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 82f13da1c994..8bc40eb67d27 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/visium/visium.c b/gcc/config/visium/visium.c index 4165214f5b78..991783da7394 100644 --- a/gcc/config/visium/visium.c +++ b/gcc/config/visium/visium.c @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/vms/vms-c.c b/gcc/config/vms/vms-c.c index 278c8e236be5..f0c9fdc95e8e 100644 --- a/gcc/config/vms/vms-c.c +++ b/gcc/config/vms/vms-c.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/vms/vms-f.c b/gcc/config/vms/vms-f.c index e0fd0fe0b7b2..bde19480f3bf 100644 --- a/gcc/config/vms/vms-f.c +++ b/gcc/config/vms/vms-f.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/vms/vms.c b/gcc/config/vms/vms.c index a303e963268a..f17097cb4787 100644 --- a/gcc/config/vms/vms.c +++ b/gcc/config/vms/vms.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 92b9a600df82..665fe9594aba 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 04e18df84615..d5da39334e4a 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -822,6 +822,17 @@ manual needs to be installed as info for this to work, or to be a chapter of this manual. @end itemize +GCC uses the macro @code{IN_TARGET_CODE} to distinguish between +machine-specific @file{.c} and @file{.cc} files and +machine-independent @file{.c} and @file{.cc} files. Machine-specific +files should use the directive: + +@example +#define IN_TARGET_CODE 1 +@end example + +before including @code{config.h}. + If the back end is added to the official GCC source repository, the following are also necessary: diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 51dfe77401e8..a2a66e3e06f0 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -5072,6 +5072,7 @@ write_header (FILE *outf) fprintf (outf, "/* Generated automatically by the program `genattrtab'\n" " from the machine description file `md'. */\n\n"); + fprintf (outf, "#define IN_TARGET_CODE 1\n"); fprintf (outf, "#include \"config.h\"\n"); fprintf (outf, "#include \"system.h\"\n"); fprintf (outf, "#include \"coretypes.h\"\n"); diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 76dacbc39846..aed10a34e421 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -9641,6 +9641,7 @@ main (int argc, const char **argv) { puts ("/* Generated automatically by the program `genautomata'\n" " from the machine description file `md'. */\n\n" + "#define IN_TARGET_CODE 1\n" "#include \"config.h\"\n" "#include \"system.h\"\n" "#include \"coretypes.h\"\n" diff --git a/gcc/genconditions.c b/gcc/genconditions.c index f62ff1626b11..178026a3ecb9 100644 --- a/gcc/genconditions.c +++ b/gcc/genconditions.c @@ -50,6 +50,7 @@ write_header (void) /* Generated automatically by the program `genconditions' from the target\n\ machine description file. */\n\ \n\ +#define IN_TARGET_CODE 1\n\ #include \"bconfig.h\"\n\ #define INCLUDE_STRING\n\ #include \"system.h\"\n\ diff --git a/gcc/genemit.c b/gcc/genemit.c index 6e60c0a76ca3..059fdb60c9d2 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -764,6 +764,7 @@ main (int argc, const char **argv) printf ("/* Generated automatically by the program `genemit'\n\ from the machine description file `md'. */\n\n"); + printf ("#define IN_TARGET_CODE 1\n"); printf ("#include \"config.h\"\n"); printf ("#include \"system.h\"\n"); printf ("#include \"coretypes.h\"\n"); diff --git a/gcc/genextract.c b/gcc/genextract.c index d9599adf59f9..258d234d2729 100644 --- a/gcc/genextract.c +++ b/gcc/genextract.c @@ -343,6 +343,7 @@ print_header (void) /* Generated automatically by the program `genextract'\n\ from the machine description file `md'. */\n\ \n\ +#define IN_TARGET_CODE 1\n\ #include \"config.h\"\n\ #include \"system.h\"\n\ #include \"coretypes.h\"\n\ diff --git a/gcc/genopinit.c b/gcc/genopinit.c index d98fcd56e280..1ad9054770a4 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -246,6 +246,7 @@ main (int argc, const char **argv) "#endif\n"); fprintf (s_file, + "#define IN_TARGET_CODE 1\n" "#include \"config.h\"\n" "#include \"system.h\"\n" "#include \"coretypes.h\"\n" diff --git a/gcc/genoutput.c b/gcc/genoutput.c index d447455c6a66..1deb9b08e060 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -203,6 +203,7 @@ output_prologue (void) printf ("/* Generated automatically by the program `genoutput'\n\ from the machine description file `md'. */\n\n"); + printf ("#define IN_TARGET_CODE 1\n"); printf ("#include \"config.h\"\n"); printf ("#include \"system.h\"\n"); printf ("#include \"coretypes.h\"\n"); diff --git a/gcc/genpeep.c b/gcc/genpeep.c index 2fcd891121ea..4b9c5379be32 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -355,6 +355,7 @@ main (int argc, const char **argv) printf ("/* Generated automatically by the program `genpeep'\n\ from the machine description file `md'. */\n\n"); + printf ("#define IN_TARGET_CODE 1\n"); printf ("#include \"config.h\"\n"); printf ("#include \"system.h\"\n"); printf ("#include \"coretypes.h\"\n"); diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 48226f5d3ac2..200869f1787b 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -1558,6 +1558,7 @@ write_insn_preds_c (void) md_reader_ptr->get_top_level_filename ()); puts ("\ +#define IN_TARGET_CODE 1\n\ #include \"config.h\"\n\ #include \"system.h\"\n\ #include \"coretypes.h\"\n\ diff --git a/gcc/genrecog.c b/gcc/genrecog.c index b3d02d755ebb..275168d60707 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -4218,6 +4218,8 @@ write_header (void) /* Generated automatically by the program `genrecog' from the target\n\ machine description file. */\n\ \n\ +#define IN_TARGET_CODE 1\n\ +\n\ #include \"config.h\"\n\ #include \"system.h\"\n\ #include \"coretypes.h\"\n\