summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-07 19:19:18 +0000
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-07 19:19:18 +0000
commitf2c4656b63eabfa11fac30b99ae6c972dbc1a1b5 (patch)
treeef50437c5565c1cea3cd1133d9089ab50aa25758
parent47dd33b5edc6c68df5bde65c6c0b06f288c82841 (diff)
downloadppe42-gcc-f2c4656b63eabfa11fac30b99ae6c972dbc1a1b5.tar.gz
ppe42-gcc-f2c4656b63eabfa11fac30b99ae6c972dbc1a1b5.zip
* config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
based on preprocessor flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62534 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/xtensa/xtensa.h8
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3bda14a013a..8d93b132d7f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-07 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
+ based on preprocessor flag.
+
2003-02-07 Roger Sayle <roger@eyesopen.com>
Richard Henderson <rth@redhat.com>
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index 02675328584..141aa508c3e 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -208,9 +208,11 @@ extern unsigned xtensa_current_frame_size;
} \
} while (0)
-/* Define this to set the endianness to use in libgcc2.c, which can
- not depend on target_flags. */
-#define LIBGCC2_WORDS_BIG_ENDIAN XCHAL_HAVE_BE
+#ifdef __XTENSA_EB__
+#define LIBGCC2_WORDS_BIG_ENDIAN 1
+#else
+#define LIBGCC2_WORDS_BIG_ENDIAN 0
+#endif
/* Show we can debug even without a frame pointer. */
#define CAN_DEBUG_WITHOUT_FP
OpenPOWER on IntegriCloud