This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: tweak config/dfp-bit.h (committed)
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Mar 2006 12:34:05 +1100
- Subject: 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