From 8fcc61f8964aa9aa2e6fc08cb961f9dc2a5add77 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 16 Dec 2017 14:10:55 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 149 +++++++++++++++++++ gcc/config/aarch64/aarch64-builtins.c | 2 + gcc/config/aarch64/aarch64-c.c | 2 + gcc/config/aarch64/aarch64.c | 2 + gcc/config/aarch64/cortex-a57-fma-steering.c | 2 + gcc/config/aarch64/driver-aarch64.c | 2 + gcc/config/alpha/alpha.c | 2 + gcc/config/alpha/driver-alpha.c | 2 + gcc/config/arc/arc-c.c | 2 + gcc/config/arc/arc.c | 2 + gcc/config/arc/driver-arc.c | 2 + gcc/config/arm/aarch-common.c | 2 + gcc/config/arm/arm-builtins.c | 2 + gcc/config/arm/arm-c.c | 2 + gcc/config/arm/arm.c | 2 + gcc/config/arm/driver-arm.c | 2 + gcc/config/avr/avr-c.c | 2 + gcc/config/avr/avr-devices.c | 2 + gcc/config/avr/avr-log.c | 2 + gcc/config/avr/avr.c | 2 + gcc/config/avr/driver-avr.c | 2 + gcc/config/avr/gen-avr-mmcu-specs.c | 2 + gcc/config/bfin/bfin.c | 2 + gcc/config/c6x/c6x.c | 2 + gcc/config/cr16/cr16.c | 2 + gcc/config/cris/cris.c | 2 + gcc/config/darwin.c | 2 + gcc/config/epiphany/epiphany.c | 2 + gcc/config/epiphany/mode-switch-use.c | 2 + gcc/config/epiphany/resolve-sw-modes.c | 2 + gcc/config/fr30/fr30.c | 2 + gcc/config/frv/frv.c | 2 + gcc/config/ft32/ft32.c | 2 + gcc/config/h8300/h8300.c | 2 + gcc/config/i386/djgpp.c | 2 + gcc/config/i386/driver-i386.c | 2 + gcc/config/i386/driver-mingw32.c | 2 + gcc/config/i386/host-cygwin.c | 2 + gcc/config/i386/host-i386-darwin.c | 2 + gcc/config/i386/host-mingw32.c | 2 + gcc/config/i386/i386-c.c | 2 + gcc/config/i386/i386.c | 2 + gcc/config/i386/intelmic-mkoffload.c | 2 + gcc/config/i386/msformat-c.c | 2 + gcc/config/i386/winnt-cxx.c | 2 + gcc/config/i386/winnt-stubs.c | 2 + gcc/config/i386/winnt.c | 2 + gcc/config/i386/x86-tune-sched-atom.c | 2 + gcc/config/i386/x86-tune-sched-bd.c | 2 + gcc/config/i386/x86-tune-sched-core.c | 2 + gcc/config/i386/x86-tune-sched.c | 2 + gcc/config/ia64/ia64-c.c | 2 + gcc/config/ia64/ia64.c | 2 + gcc/config/iq2000/iq2000.c | 2 + gcc/config/lm32/lm32.c | 2 + gcc/config/m32c/m32c-pragma.c | 2 + gcc/config/m32c/m32c.c | 2 + gcc/config/m32r/m32r.c | 2 + gcc/config/m68k/m68k.c | 2 + gcc/config/mcore/mcore.c | 2 + gcc/config/microblaze/microblaze-c.c | 2 + gcc/config/microblaze/microblaze.c | 2 + gcc/config/mips/driver-native.c | 2 + gcc/config/mips/frame-header-opt.c | 2 + gcc/config/mips/mips.c | 2 + gcc/config/mmix/mmix.c | 2 + gcc/config/mn10300/mn10300.c | 2 + gcc/config/moxie/moxie.c | 2 + gcc/config/msp430/driver-msp430.c | 2 + gcc/config/msp430/msp430-c.c | 2 + gcc/config/msp430/msp430.c | 2 + gcc/config/nds32/nds32-cost.c | 2 + gcc/config/nds32/nds32-fp-as-gp.c | 2 + gcc/config/nds32/nds32-intrinsic.c | 2 + gcc/config/nds32/nds32-isr.c | 2 + gcc/config/nds32/nds32-md-auxiliary.c | 2 + gcc/config/nds32/nds32-memory-manipulation.c | 2 + gcc/config/nds32/nds32-pipelines-auxiliary.c | 2 + gcc/config/nds32/nds32-predicates.c | 2 + gcc/config/nds32/nds32.c | 2 + gcc/config/nios2/nios2.c | 2 + gcc/config/nvptx/mkoffload.c | 2 + gcc/config/nvptx/nvptx.c | 2 + gcc/config/pa/pa.c | 2 + gcc/config/pdp11/pdp11.c | 2 + gcc/config/powerpcspe/driver-powerpcspe.c | 2 + gcc/config/powerpcspe/host-darwin.c | 2 + gcc/config/powerpcspe/host-ppc64-darwin.c | 2 + gcc/config/powerpcspe/powerpcspe-c.c | 2 + gcc/config/powerpcspe/powerpcspe-linux.c | 2 + gcc/config/powerpcspe/powerpcspe.c | 2 + gcc/config/riscv/riscv-builtins.c | 2 + gcc/config/riscv/riscv-c.c | 2 + gcc/config/riscv/riscv.c | 2 + gcc/config/rl78/rl78-c.c | 2 + gcc/config/rl78/rl78.c | 2 + gcc/config/rs6000/driver-rs6000.c | 2 + gcc/config/rs6000/host-darwin.c | 2 + gcc/config/rs6000/host-ppc64-darwin.c | 2 + gcc/config/rs6000/rs6000-c.c | 2 + gcc/config/rs6000/rs6000-linux.c | 2 + gcc/config/rs6000/rs6000-p8swap.c | 2 + gcc/config/rs6000/rs6000-string.c | 2 + gcc/config/rs6000/rs6000.c | 2 + gcc/config/rx/rx.c | 2 + gcc/config/s390/driver-native.c | 2 + gcc/config/s390/s390-c.c | 2 + gcc/config/s390/s390.c | 2 + gcc/config/sh/sh-c.c | 2 + gcc/config/sh/sh-mem.cc | 2 + gcc/config/sh/sh.c | 2 + gcc/config/sh/sh_optimize_sett_clrt.cc | 2 + gcc/config/sh/sh_treg_combine.cc | 2 + gcc/config/sparc/driver-sparc.c | 2 + gcc/config/sparc/sparc-c.c | 2 + gcc/config/sparc/sparc.c | 2 + gcc/config/spu/spu-c.c | 2 + gcc/config/spu/spu.c | 2 + gcc/config/stormy16/stormy16.c | 2 + gcc/config/tilegx/mul-tables.c | 2 + gcc/config/tilegx/tilegx-c.c | 2 + gcc/config/tilegx/tilegx.c | 2 + gcc/config/tilepro/mul-tables.c | 2 + gcc/config/tilepro/tilepro-c.c | 2 + gcc/config/tilepro/tilepro.c | 2 + gcc/config/v850/v850-c.c | 2 + gcc/config/v850/v850.c | 2 + gcc/config/vax/vax.c | 2 + gcc/config/visium/visium.c | 2 + gcc/config/vms/vms-c.c | 2 + gcc/config/vms/vms-f.c | 2 + gcc/config/vms/vms.c | 2 + gcc/config/xtensa/xtensa.c | 2 + gcc/doc/sourcebuild.texi | 11 ++ gcc/genattrtab.c | 1 + gcc/genautomata.c | 1 + gcc/genconditions.c | 1 + gcc/genemit.c | 1 + gcc/genextract.c | 1 + gcc/genopinit.c | 1 + gcc/genoutput.c | 1 + gcc/genpeep.c | 1 + gcc/genpreds.c | 1 + gcc/genrecog.c | 2 + 144 files changed, 435 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 843f4927828..841e6edace2 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 8cbdb011203..29955a3fecf 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 e18ec4a0aad..81d7fea53a1 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 b9c17fc5ccc..d10fa168875 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 fa8c56aab02..a07fc9c39f4 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 75de645a0cf..dedd482f395 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 63821fc6235..16ca93d6bdb 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 6eaa586913b..f2dba39712c 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 44ff338c269..7f4a4deec0b 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 3fc867f09c4..d1d0d727df1 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 0e13878ff73..6d571d1bf58 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 979f86e5bed..34751aff8a3 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 6d1b20c80f9..d09c6e371de 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 295f03bf8ee..635bc3c1c38 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 1b2bcc3f74f..3252f849ad2 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 86212315f13..280f4202920 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 e47cefaae2e..aaab8e65eaa 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 9961588eef7..07f1976085d 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 aacaed04ef1..e3a821a4844 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 39decb820c2..8a28950dfab 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 c27cc5c2937..fe17e2df151 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 b923aa4ee3c..e09f3e46502 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 96ef232f085..d4460b53d74 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 cbc44ecf0ff..ab67577d0a6 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 70c0e34ed8e..2dd30fad85a 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 8fa234f7ff0..a31e74358e1 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 e633b88f6b0..7d3b754fd3e 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 912823160da..af296c61148 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 394ce5e841c..d607ead56b0 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 f38e2104c9e..36e4672e77b 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 91884811f17..920e65aaa29 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 c9877e74d7c..b644a63d48e 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 d7d41a2f3ca..ddc847a8eb8 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 dd5b69c44f2..c574375df63 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 a949fab7684..54c11537875 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 0cc4c4e96d6..013107ae722 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 b70363ad26a..bc3cacd3e25 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 7817752ad5b..abe6b52873c 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 3d7d2b4b535..d360380c35f 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 68100b7a226..5d2c608e113 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 8ccec7bc29f..072e49bbc0f 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 551395f4e54..b9f6e27f9b1 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 2cc01086f63..0b7c9548d19 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 716a5c68cac..6006d9b0017 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 a3569fb1b56..532d9c993ba 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 bd5588b9d0d..52a2bbf613e 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 61d94d264f0..2f8518e1f1d 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 86942c0703d..9e9f253d5c3 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 c862fc156e2..0045c631bbc 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 67b14a708e8..70e8556a1db 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 5bcaf2c59da..4902d947571 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 3319cbc7f66..37791f3e71a 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 b16c3401aa0..f99bea98d21 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 2e0c6f6a975..ee107cbd81f 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 1d6cfa0dc8a..9677087cf0f 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 68aa2287222..c44e59c4aa6 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 244e6bcc160..f6b711eaf6d 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 830e7e742fb..dbc1baec190 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 075ab47cc0b..9e428304a5d 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 4bd1671f99d..57447e6d2cd 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 0c9a6af1bb4..6dd4be6cc11 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 a808bd06133..acebb52d6cb 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 e1261a0bc98..48952160bed 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 8c41562ab4f..2a960d692f4 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 d6f7e28c030..4f6eb8441fe 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 4a73162c18c..038c394705b 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 8351a5ef959..705f577c0fc 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 49012374858..f570c06b55d 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 bad70bb6fa7..fa1d90b13a4 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 6ec5b03c602..7293fb6606f 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 e8f4c9f3652..46cbaa7b8d8 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 c507517ee8d..8f7c316766b 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 6b340b90f72..743179b6313 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 86d2ed180a1..064a8c1731d 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 933072c2863..698315e1fc4 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 5888438ffd4..b4041df6b66 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 5bc1f9b5396..5503dba8036 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 c0fd54dbba2..603ca7e69bf 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 b6cff20b0cb..32aec3c7163 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 e4ba5ff8cb6..99c3dd077c2 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 e0df9c5b8b4..f6084039eea 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 7baa593d7f3..560ea23e72b 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 f57b4f9b33b..cce0a555812 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 5d28ecda2ed..8b46252463e 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 4fdb077479d..06fef13f5d6 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 8215abbd625..f3edb861138 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 da90e2f6452..ecafe08962f 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 381fe1673ae..8f995148b24 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 661480fd479..6020d0c15b2 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 4a8d9fad6ea..f9965b660b1 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 7d1124223d2..bf90cc5cd7d 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 1311fee6f70..39d2316e9ef 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 64e7cf877af..2a045ec026b 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 cfab2e77686..0147c314b7a 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 3572ae48c7e..59409c8aa24 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 e2532b13b56..6c4caee7a35 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 8215abbd625..f3edb861138 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 da90e2f6452..ecafe08962f 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 381fe1673ae..8f995148b24 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 1bcdaa95e76..55070424686 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 4a8d9fad6ea..f9965b660b1 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 e1324b72c25..7d9ab878625 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 1ff4284073a..7e1976bbe08 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 215a1f4d3e4..42704d34d98 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 071cca5a947..150ef98dfd2 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 acb983613c2..40b59238042 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 07224ad7f39..0a2733c8d62 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 b87b49e2060..0b04ac026fb 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 31e591daa4b..ca74f0fb78d 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 4c33260d84e..c5a9a1e53e6 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 a627e8f3599..e0ad5bfc78b 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 449261e86de..bfb9aba1f7b 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 bae81af3126..05608ce5b20 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 0c25d6cfa15..9b811a871fa 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 4aacfff05ff..f8124bf96ef 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 fc50f9b1aa0..c7c0bd82e3b 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 ba858f1fbb9..4f78bb744a5 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 c1c79a2656d..4b47b4adf9e 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 bf7269391b5..a3557940d9e 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 9725f7dfb74..877df275e33 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 8f38a881d12..ba63fdef8c6 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 63fe3406ae9..794afee0988 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 99877d6d2ea..32e6ec0a97c 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 fab4689381b..13e8056628f 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 ee9bc0a9343..ae71f752690 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 1855204d898..145eef510ef 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 a26f5d655ff..ab096ea2fc8 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 82f13da1c99..8bc40eb67d2 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 4165214f5b7..991783da739 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 278c8e236be..f0c9fdc95e8 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 e0fd0fe0b7b..bde19480f3b 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 a303e963268..f17097cb478 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 92b9a600df8..665fe9594ab 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 04e18df8461..d5da39334e4 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 51dfe77401e..a2a66e3e06f 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 76dacbc3984..aed10a34e42 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 f62ff1626b1..178026a3ecb 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 6e60c0a76ca..059fdb60c9d 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 d9599adf59f..258d234d272 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 d98fcd56e28..1ad9054770a 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 d447455c6a6..1deb9b08e06 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 2fcd891121e..4b9c5379be3 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 48226f5d3ac..200869f1787 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 b3d02d755eb..275168d6070 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\ -- 2.30.2