Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3 Teach config.gcc about NetBSD aarch64eb



details:   https://anonhg.NetBSD.org/src/rev/ae6f3c5f4a38
branches:  trunk
changeset: 975615:ae6f3c5f4a38
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Sep 02 14:13:20 2020 +0000

description:
Teach config.gcc about NetBSD aarch64eb

diffstat:

 external/gpl3/gcc.old/dist/gcc/config.gcc |  6 +++++-
 external/gpl3/gcc/dist/gcc/config.gcc     |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 0391a8307ca4 -r ae6f3c5f4a38 external/gpl3/gcc.old/dist/gcc/config.gcc
--- a/external/gpl3/gcc.old/dist/gcc/config.gcc Wed Sep 02 09:28:25 2020 +0000
+++ b/external/gpl3/gcc.old/dist/gcc/config.gcc Wed Sep 02 14:13:20 2020 +0000
@@ -1000,7 +1000,11 @@
        tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-netbsd.h"
        tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-netbsd"
        extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
-       # XXX big endian
+       case $target in
+       aarch64_be-*)
+               tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
+               ;;
+       esac
        ;;
 aarch64*-*-linux*)
        tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
diff -r 0391a8307ca4 -r ae6f3c5f4a38 external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc     Wed Sep 02 09:28:25 2020 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc     Wed Sep 02 14:13:20 2020 +0000
@@ -1000,7 +1000,11 @@
        tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-netbsd.h"
        tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-netbsd"
        extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
-       # XXX big endian
+       case $target in
+       aarch64_be-*)
+               tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
+               ;;
+       esac
        ;;
 aarch64*-*-linux*)
        tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"



Home | Main Index | Thread Index | Old Index