aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@gcc.gnu.org>2017-02-27 14:56:02 +0100
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2017-02-27 14:56:02 +0100
commitfad92291a67d76d59acbfc33b817986871a3fd1e (patch)
tree19e81791a035c9cb280d64ca88033c2c966a3b93 /gcc/config.gcc
parentd66d45909d13baafab5d0be977314d4c0ed1d395 (diff)
downloadgcc-fad92291a67d76d59acbfc33b817986871a3fd1e.zip
gcc-fad92291a67d76d59acbfc33b817986871a3fd1e.tar.gz
gcc-fad92291a67d76d59acbfc33b817986871a3fd1e.tar.bz2
[ARC] Clean up arc header file.
gcc/ 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com> * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and arc/linux.h headers. * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove. (LINK_SPEC): Likewise. (ARC_TLS_EXTRA_START_SPEC): Likewise. (EXTRA_SPECS): Likewise. (STARTFILE_SPEC): Likewise. (ENDFILE_SPEC): Likewise. (LIB_SPEC): Likewise. (TARGET_SDATA_DEFAULT): Likewise. (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise. (MULTILIB_DEFAULTS): Likewise. (DWARF2_UNWIND_INFO): Likewise. * config/arc/big.h: New file. * config/arc/elf.h: Likewise. * config/arc/linux.h: Likewise. * config/arc/t-uClibc: Remove. From-SVN: r245759
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc15
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 75f9f81..f7f6967 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -319,6 +319,7 @@ arc*-*-*)
c_target_objs="arc-c.o"
cxx_target_objs="arc-c.o"
extra_options="${extra_options} arc/arc-tables.opt"
+ extra_headers="arc-simd.h"
;;
arm*-*-*)
cpu_type=arm
@@ -1015,8 +1016,7 @@ alpha*-dec-*vms*)
tmake_file="${tmake_file} alpha/t-vms alpha/t-alpha"
;;
arc*-*-elf*)
- extra_headers="arc-simd.h"
- tm_file="arc/arc-arch.h dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
+ tm_file="arc/arc-arch.h dbxelf.h elfos.h newlib-stdint.h arc/elf.h ${tm_file}"
tmake_file="arc/t-multilib arc/t-arc"
extra_gcc_objs="driver-arc.o"
if test "x$with_cpu" != x; then
@@ -1033,15 +1033,12 @@ arc*-*-elf*)
*) echo "with_endian=${with_endian} not supported."; exit 1 ;;
esac
case ${with_endian} in
- big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
+ big*) tm_file="arc/big.h ${tm_file}"
esac
;;
arc*-*-linux-uclibc*)
- extra_headers="arc-simd.h"
- tm_file="arc/arc-arch.h dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file}"
- tmake_file="${tmake_file} arc/t-uClibc arc/t-arc"
- tm_defines="${tm_defines} TARGET_SDATA_DEFAULT=0"
- tm_defines="${tm_defines} TARGET_MMEDIUM_CALLS_DEFAULT=1"
+ tm_file="arc/arc-arch.h dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arc/linux.h ${tm_file}"
+ tmake_file="${tmake_file} arc/t-arc"
extra_gcc_objs="driver-arc.o"
if test "x$with_cpu" != x; then
tm_defines="${tm_defines} TARGET_CPU_BUILD=PROCESSOR_$with_cpu"
@@ -1057,7 +1054,7 @@ arc*-*-linux-uclibc*)
*) echo "with_endian=${with_endian} not supported."; exit 1 ;;
esac
case ${with_endian} in
- big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
+ big*) tm_file="arc/big.h ${tm_file}"
esac
;;
arm-wrs-vxworks)