diff options
author | David S. Miller <davem@davemloft.net> | 2011-09-26 19:04:35 +0000 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2011-09-26 12:04:35 -0700 |
commit | 8d12174db5a92005143deae74b57e553cfa97266 (patch) | |
tree | 6c047b798984899fe89ec8b5c02c76d52d97768a /gcc/config.gcc | |
parent | 6cb1ef51438f731064431977ca56f7db598409d1 (diff) | |
download | gcc-8d12174db5a92005143deae74b57e553cfa97266.zip gcc-8d12174db5a92005143deae74b57e553cfa97266.tar.gz gcc-8d12174db5a92005143deae74b57e553cfa97266.tar.bz2 |
Move target CPP macro handling to C file and add __VIS/__VIS__.
* config/sparc/sparc-c.c: New file implementing sparc_target_macros,
which will now define __VIS and __VIS__ when -mvis is enabled.
* config/sparc/t-sparc: Likewise.
* config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
and add t-sparc to tmake_file for all sparc targets.
* config/sparc/sparc-protos.h (sparc_target_macros): Declare.
* config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
From-SVN: r179210
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 7183f26..cf11364 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -422,6 +422,8 @@ score*-*-*) ;; sparc*-*-*) cpu_type=sparc + c_target_objs="sparc-c.o" + cxx_target_objs="sparc-c.o" extra_headers="visintrin.h" need_64bit_hwint=yes ;; @@ -2457,32 +2459,32 @@ sparc-*-elf*) tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h" case ${target} in *-leon-*) - tmake_file="sparc/t-leon" + tmake_file="sparc/t-sparc sparc/t-leon" ;; *-leon[3-9]*) - tmake_file="sparc/t-leon3" + tmake_file="sparc/t-sparc sparc/t-leon3" ;; *) - tmake_file="sparc/t-elf" + tmake_file="sparc/t-sparc sparc/t-elf" ;; esac ;; sparc-*-rtems*) tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" - tmake_file="sparc/t-elf t-rtems" + tmake_file="sparc/t-sparc sparc/t-elf t-rtems" ;; sparc-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h" extra_options="${extra_options} sparc/long-double-switch.opt" case ${target} in *-leon-*) - tmake_file="${tmake_file} sparc/t-leon" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon" ;; *-leon[3-9]*) - tmake_file="${tmake_file} sparc/t-leon3" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3" ;; *) - tmake_file="${tmake_file} sparc/t-linux" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux" ;; esac if test x$enable_targets = xall; then @@ -2497,6 +2499,7 @@ sparc-*-netbsdelf*) tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" extra_options="${extra_options} netbsd.opt netbsd-elf.opt" extra_options="${extra_options} sparc/long-double-switch.opt" + tmake_file="${tmake_file} sparc/t-sparc" ;; sparc*-*-solaris2*) tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h" @@ -2508,25 +2511,26 @@ sparc*-*-solaris2*) test x$with_cpu != x || with_cpu=v9 ;; esac - tmake_file="${tmake_file} sparc/t-sol2-64" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2-64" ;; sparc-wrs-vxworks) tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" - tmake_file="${tmake_file} sparc/t-vxworks" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks" ;; sparc64-*-elf*) tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h" extra_options="${extra_options} sparc/little-endian.opt" + tmake_file="${tmake_file} sparc/t-sparc" ;; sparc64-*-rtems*) tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" extra_options="${extra_options} sparc/little-endian.opt" - tmake_file="${tmake_file} t-rtems" + tmake_file="${tmake_file} sparc/t-sparc t-rtems" ;; sparc64-*-linux*) tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h" extra_options="${extra_options} sparc/long-double-switch.opt" - tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux sparc/t-linux64" extra_parts="${extra_parts} crtfastmath.o" ;; sparc64-*-freebsd*|ultrasparc-*-freebsd*) @@ -2538,13 +2542,14 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*) *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; esac extra_parts="${extra_parts} crtfastmath.o" + tmake_file="${tmake_file} sparc/t-sparc" ;; sparc64-*-netbsd*) tm_file="sparc/biarch64.h ${tm_file}" tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" extra_options="${extra_options} netbsd.opt netbsd-elf.opt" extra_options="${extra_options} sparc/long-double-switch.opt" - tmake_file="${tmake_file} sparc/t-netbsd64" + tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64" ;; sparc64-*-openbsd*) tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" @@ -2553,6 +2558,7 @@ sparc64-*-openbsd*) extra_options="${extra_options} sparc/little-endian.opt" gas=yes gnu_ld=yes with_cpu=ultrasparc + tmake_file="${tmake_file} sparc/t-sparc" ;; spu-*-elf*) tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" |