This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
__i386__ and __amd64__
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 18 Aug 2005 13:20:20 -0700
- Subject: __i386__ and __amd64__
I'm not sure if this is a recent development, but it looks as if gcc
4.0.1 -m64 does not define __i386__, but instead defines __amd64__.
This probably affects other files as well, but machine/ieeefp.h at
least needs to be fixed up.
Cheers,
Shaun
2005-08-18 Shaun Jackman <sjackman@gmail.com>
* newlib/libc/include/machine/ieeefp.h: Define
__IEEE_LITTLE_ENDIAN if __amd64__ is defined.
Index: newlib/libc/include/machine/ieeefp.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/machine/ieeefp.h,v
retrieving revision 1.27
diff -u -r1.27 ieeefp.h
--- newlib/libc/include/machine/ieeefp.h 10 Aug 2005 20:35:13 -0000 1.27
+++ newlib/libc/include/machine/ieeefp.h 18 Aug 2005 20:15:28 -0000
@@ -121,6 +121,10 @@
#define __IEEE_LITTLE_ENDIAN
#endif
+#ifdef __amd64__
+#define __IEEE_LITTLE_ENDIAN
+#endif
+
#ifdef __i960__
#define __IEEE_LITTLE_ENDIAN
#endif