Module Name:    src
Committed By:   skrll
Date:           Mon May 25 21:18:29 UTC 2015

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/arm: netbsd-elf.h

Log Message:
Fix up TARGET_ENDIAN_DEFAULT for BE oabi


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
    src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h

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/dist/gcc/config/arm/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.7 src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.8
--- src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.7	Sat Mar  1 09:04:12 2014
+++ src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h	Mon May 25 21:18:29 2015
@@ -30,9 +30,12 @@
 	(ARM_DEFAULT_ABI != ARM_ABI_APCS && ARM_DEFAULT_ABI != ARM_ABI_ATPCS \
 	    ? TARGET_CPU_arm926ejs : TARGET_CPU_arm6)
 
-/* This defaults us to little-endian.  */
-#ifndef TARGET_ENDIAN_DEFAULT
-#define TARGET_ENDIAN_DEFAULT 0
+/* TARGET_BIG_ENDIAN_DEFAULT is set in
+   config.gcc for big endian configurations.  */
+#if TARGET_BIG_ENDIAN_DEFAULT
+#define TARGET_ENDIAN_DEFAULT    MASK_BIG_END
+#else
+#define TARGET_ENDIAN_DEFAULT    0
 #endif
 
 #undef MULTILIB_DEFAULTS

Reply via email to