This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: tweak config/dfp-bit.h (committed)


I posted this patch last week.  Archived with more commentary here:

    http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00091.html

In hindsight, I think it meets the obvious rule.  Tested on
i686-pc-linux-gnu with --enable-decimal-float (which is the only way
that this code is activated).

2006-03-06  Ben Elliston  <bje@au.ibm.com>

        * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Define.

Index: config/dfp-bit.h
===================================================================
--- config/dfp-bit.h    (revision 111750)
+++ config/dfp-bit.h    (working copy)
@@ -34,6 +34,10 @@ Software Foundation, 51 Franklin Street,
 #include "coretypes.h"
 #include "tm.h"
 
+#ifndef LIBGCC2_WORDS_BIG_ENDIAN
+#define LIBGCC2_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
+#endif
+
 #ifndef LIBGCC2_FLOAT_WORDS_BIG_ENDIAN
 #define LIBGCC2_FLOAT_WORDS_BIG_ENDIAN LIBGCC2_WORDS_BIG_ENDIAN
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]