__i386__ and __amd64__
Shaun Jackman
sjackman@gmail.com
Thu Aug 18 20:20:00 GMT 2005
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
More information about the Newlib
mailing list