Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/arm Fix up TARGET_ENDIAN_D...



details:   https://anonhg.NetBSD.org/src/rev/aecd538a7fcd
branches:  trunk
changeset: 338459:aecd538a7fcd
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 25 21:18:29 2015 +0000

description:
Fix up TARGET_ENDIAN_DEFAULT for BE oabi

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 4dd80f839961 -r aecd538a7fcd external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h        Mon May 25 21:02:37 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h        Mon May 25 21:18:29 2015 +0000
@@ -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



Home | Main Index | Thread Index | Old Index