Module Name:    src
Committed By:   jakllsch
Date:           Wed Sep  2 14:13:21 UTC 2020

Modified Files:
        src/external/gpl3/gcc.old/dist/gcc: config.gcc
        src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
Teach config.gcc about NetBSD aarch64eb


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc.old/dist/gcc/config.gcc
cvs rdiff -u -r1.62 -r1.63 src/external/gpl3/gcc/dist/gcc/config.gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc.old/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc.old/dist/gcc/config.gcc:1.15 src/external/gpl3/gcc.old/dist/gcc/config.gcc:1.16
--- src/external/gpl3/gcc.old/dist/gcc/config.gcc:1.15	Wed Aug 19 07:46:33 2020
+++ src/external/gpl3/gcc.old/dist/gcc/config.gcc	Wed Sep  2 14:13:21 2020
@@ -1000,7 +1000,11 @@ aarch64*-*-netbsd*)
 	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"

Index: src/external/gpl3/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.62 src/external/gpl3/gcc/dist/gcc/config.gcc:1.63
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.62	Wed Mar 11 08:29:45 2020
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Wed Sep  2 14:13:20 2020
@@ -1000,7 +1000,11 @@ aarch64*-*-netbsd*)
 	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"

Reply via email to