xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this based on preprocessor flag.
authorBob Wilson <bob.wilson@acm.org>
Fri, 7 Feb 2003 19:19:18 +0000 (19:19 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 7 Feb 2003 19:19:18 +0000 (19:19 +0000)
        * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
        based on preprocessor flag.

From-SVN: r62534

gcc/ChangeLog
gcc/config/xtensa/xtensa.h

index 3bda14a013a1109e571737eaed932302e8c176cb..8d93b132d7f017032f4aa10496139ae6d5aa4edd 100644 (file)
@@ -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>
 
index 026753285841004882e989c4ef8bf8449ea7ce6c..141aa508c3ed416e42483ece44828216f26efe5d 100644 (file)
@@ -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