r255743 - in /trunk/gcc: ChangeLog config/aarch...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Sat Dec 16 14:10:00 GMT 2017


Author: rsandifo
Date: Sat Dec 16 14:10:55 2017
New Revision: 255743

URL: https://gcc.gnu.org/viewcvs?rev=255743&root=gcc&view=rev
Log:
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  <richard.sandiford@linaro.org>
	    Alan Hayward  <alan.hayward@arm.com>
	    David Sherwood  <david.sherwood@arm.com>

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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64-builtins.c
    trunk/gcc/config/aarch64/aarch64-c.c
    trunk/gcc/config/aarch64/aarch64.c
    trunk/gcc/config/aarch64/cortex-a57-fma-steering.c
    trunk/gcc/config/aarch64/driver-aarch64.c
    trunk/gcc/config/alpha/alpha.c
    trunk/gcc/config/alpha/driver-alpha.c
    trunk/gcc/config/arc/arc-c.c
    trunk/gcc/config/arc/arc.c
    trunk/gcc/config/arc/driver-arc.c
    trunk/gcc/config/arm/aarch-common.c
    trunk/gcc/config/arm/arm-builtins.c
    trunk/gcc/config/arm/arm-c.c
    trunk/gcc/config/arm/arm.c
    trunk/gcc/config/arm/driver-arm.c
    trunk/gcc/config/avr/avr-c.c
    trunk/gcc/config/avr/avr-devices.c
    trunk/gcc/config/avr/avr-log.c
    trunk/gcc/config/avr/avr.c
    trunk/gcc/config/avr/driver-avr.c
    trunk/gcc/config/avr/gen-avr-mmcu-specs.c
    trunk/gcc/config/bfin/bfin.c
    trunk/gcc/config/c6x/c6x.c
    trunk/gcc/config/cr16/cr16.c
    trunk/gcc/config/cris/cris.c
    trunk/gcc/config/darwin.c
    trunk/gcc/config/epiphany/epiphany.c
    trunk/gcc/config/epiphany/mode-switch-use.c
    trunk/gcc/config/epiphany/resolve-sw-modes.c
    trunk/gcc/config/fr30/fr30.c
    trunk/gcc/config/frv/frv.c
    trunk/gcc/config/ft32/ft32.c
    trunk/gcc/config/h8300/h8300.c
    trunk/gcc/config/i386/djgpp.c
    trunk/gcc/config/i386/driver-i386.c
    trunk/gcc/config/i386/driver-mingw32.c
    trunk/gcc/config/i386/host-cygwin.c
    trunk/gcc/config/i386/host-i386-darwin.c
    trunk/gcc/config/i386/host-mingw32.c
    trunk/gcc/config/i386/i386-c.c
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/intelmic-mkoffload.c
    trunk/gcc/config/i386/msformat-c.c
    trunk/gcc/config/i386/winnt-cxx.c
    trunk/gcc/config/i386/winnt-stubs.c
    trunk/gcc/config/i386/winnt.c
    trunk/gcc/config/i386/x86-tune-sched-atom.c
    trunk/gcc/config/i386/x86-tune-sched-bd.c
    trunk/gcc/config/i386/x86-tune-sched-core.c
    trunk/gcc/config/i386/x86-tune-sched.c
    trunk/gcc/config/ia64/ia64-c.c
    trunk/gcc/config/ia64/ia64.c
    trunk/gcc/config/iq2000/iq2000.c
    trunk/gcc/config/lm32/lm32.c
    trunk/gcc/config/m32c/m32c-pragma.c
    trunk/gcc/config/m32c/m32c.c
    trunk/gcc/config/m32r/m32r.c
    trunk/gcc/config/m68k/m68k.c
    trunk/gcc/config/mcore/mcore.c
    trunk/gcc/config/microblaze/microblaze-c.c
    trunk/gcc/config/microblaze/microblaze.c
    trunk/gcc/config/mips/driver-native.c
    trunk/gcc/config/mips/frame-header-opt.c
    trunk/gcc/config/mips/mips.c
    trunk/gcc/config/mmix/mmix.c
    trunk/gcc/config/mn10300/mn10300.c
    trunk/gcc/config/moxie/moxie.c
    trunk/gcc/config/msp430/driver-msp430.c
    trunk/gcc/config/msp430/msp430-c.c
    trunk/gcc/config/msp430/msp430.c
    trunk/gcc/config/nds32/nds32-cost.c
    trunk/gcc/config/nds32/nds32-fp-as-gp.c
    trunk/gcc/config/nds32/nds32-intrinsic.c
    trunk/gcc/config/nds32/nds32-isr.c
    trunk/gcc/config/nds32/nds32-md-auxiliary.c
    trunk/gcc/config/nds32/nds32-memory-manipulation.c
    trunk/gcc/config/nds32/nds32-pipelines-auxiliary.c
    trunk/gcc/config/nds32/nds32-predicates.c
    trunk/gcc/config/nds32/nds32.c
    trunk/gcc/config/nios2/nios2.c
    trunk/gcc/config/nvptx/mkoffload.c
    trunk/gcc/config/nvptx/nvptx.c
    trunk/gcc/config/pa/pa.c
    trunk/gcc/config/pdp11/pdp11.c
    trunk/gcc/config/powerpcspe/driver-powerpcspe.c
    trunk/gcc/config/powerpcspe/host-darwin.c
    trunk/gcc/config/powerpcspe/host-ppc64-darwin.c
    trunk/gcc/config/powerpcspe/powerpcspe-c.c
    trunk/gcc/config/powerpcspe/powerpcspe-linux.c
    trunk/gcc/config/powerpcspe/powerpcspe.c
    trunk/gcc/config/riscv/riscv-builtins.c
    trunk/gcc/config/riscv/riscv-c.c
    trunk/gcc/config/riscv/riscv.c
    trunk/gcc/config/rl78/rl78-c.c
    trunk/gcc/config/rl78/rl78.c
    trunk/gcc/config/rs6000/driver-rs6000.c
    trunk/gcc/config/rs6000/host-darwin.c
    trunk/gcc/config/rs6000/host-ppc64-darwin.c
    trunk/gcc/config/rs6000/rs6000-c.c
    trunk/gcc/config/rs6000/rs6000-linux.c
    trunk/gcc/config/rs6000/rs6000-p8swap.c
    trunk/gcc/config/rs6000/rs6000-string.c
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/config/rx/rx.c
    trunk/gcc/config/s390/driver-native.c
    trunk/gcc/config/s390/s390-c.c
    trunk/gcc/config/s390/s390.c
    trunk/gcc/config/sh/sh-c.c
    trunk/gcc/config/sh/sh-mem.cc
    trunk/gcc/config/sh/sh.c
    trunk/gcc/config/sh/sh_optimize_sett_clrt.cc
    trunk/gcc/config/sh/sh_treg_combine.cc
    trunk/gcc/config/sparc/driver-sparc.c
    trunk/gcc/config/sparc/sparc-c.c
    trunk/gcc/config/sparc/sparc.c
    trunk/gcc/config/spu/spu-c.c
    trunk/gcc/config/spu/spu.c
    trunk/gcc/config/stormy16/stormy16.c
    trunk/gcc/config/tilegx/mul-tables.c
    trunk/gcc/config/tilegx/tilegx-c.c
    trunk/gcc/config/tilegx/tilegx.c
    trunk/gcc/config/tilepro/mul-tables.c
    trunk/gcc/config/tilepro/tilepro-c.c
    trunk/gcc/config/tilepro/tilepro.c
    trunk/gcc/config/v850/v850-c.c
    trunk/gcc/config/v850/v850.c
    trunk/gcc/config/vax/vax.c
    trunk/gcc/config/visium/visium.c
    trunk/gcc/config/vms/vms-c.c
    trunk/gcc/config/vms/vms-f.c
    trunk/gcc/config/vms/vms.c
    trunk/gcc/config/xtensa/xtensa.c
    trunk/gcc/doc/sourcebuild.texi
    trunk/gcc/genattrtab.c
    trunk/gcc/genautomata.c
    trunk/gcc/genconditions.c
    trunk/gcc/genemit.c
    trunk/gcc/genextract.c
    trunk/gcc/genopinit.c
    trunk/gcc/genoutput.c
    trunk/gcc/genpeep.c
    trunk/gcc/genpreds.c
    trunk/gcc/genrecog.c



More information about the Gcc-cvs mailing list