aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJoshua Conner <joshconner@google.com>2017-01-10 18:00:43 +0000
committerJosh Conner <jconner@gcc.gnu.org>2017-01-10 18:00:43 +0000
commit491b3c5f229565df2e58ddfbf732eef82f9ad0ab (patch)
tree4cdc16db25e5598a25a3df3c7223d2b6cf43b5ef /gcc/config.gcc
parent904112f6bbb64776936b04c7b6513ffbe7260433 (diff)
downloadgcc-491b3c5f229565df2e58ddfbf732eef82f9ad0ab.zip
gcc-491b3c5f229565df2e58ddfbf732eef82f9ad0ab.tar.gz
gcc-491b3c5f229565df2e58ddfbf732eef82f9ad0ab.tar.bz2
fuchsia-elf.h: New file.
2017-01-10 Joshua Conner <joshconner@google.com> * config/arm/fuchsia-elf.h: New file. * config/fuchsia.h: New file. * config.gcc (*-*-fuchsia*): Set native_system_header_dir. (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to targets. * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts. From-SVN: r244281
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc19
1 files changed, 17 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bb25d54..5413246 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -708,6 +708,9 @@ case ${target} in
esac
use_gcc_stdint=wrap
;;
+*-*-fuchsia*)
+ native_system_header_dir=/include
+ ;;
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
extra_options="$extra_options gnu-user.opt"
gas=yes
@@ -910,7 +913,7 @@ case ${target} in
esac
case ${target} in
-aarch64*-*-elf | aarch64*-*-rtems*)
+aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h"
tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h"
tmake_file="${tmake_file} aarch64/t-aarch64"
@@ -918,6 +921,9 @@ aarch64*-*-elf | aarch64*-*-rtems*)
aarch64-*-elf*)
use_gcc_stdint=wrap
;;
+ aarch64-*-fuchsia*)
+ tm_file="${tm_file} fuchsia.h"
+ ;;
aarch64-*-rtems*)
tm_file="${tm_file} rtems.h aarch64/rtems.h"
;;
@@ -1121,7 +1127,7 @@ arm*-*-phoenix*)
tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-phoenix"
target_cpu_cname="arm7tdmi"
;;
-arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
+arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems* | arm*-*-fuchsia*)
case ${target} in
arm*eb-*-eabi*)
tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
@@ -1136,6 +1142,11 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
tmake_file="${tmake_file} arm/t-bpabi"
use_gcc_stdint=wrap
;;
+ arm*-*-fuchsia*)
+ tm_file="${tm_file} fuchsia.h arm/fuchsia-elf.h glibc-stdint.h"
+ tmake_file="${tmake_file} arm/t-bpabi"
+ target_cpu_cname="genericv7a"
+ ;;
arm*-*-rtems*)
tm_file="${tm_file} rtems.h arm/rtems.h newlib-stdint.h"
tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems"
@@ -1779,6 +1790,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
;;
esac
;;
+x86_64-*-fuchsia*)
+ tmake_file="${tmake_file} i386/t-x86_64-elf"
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h fuchsia.h"
+ ;;
ia64*-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
tmake_file="ia64/t-ia64"