This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: __i386__ and __amd64__


There is also libc/include/sys/config.h and libc/include/machine/setjmp.h to worry about minimum. Are you by any chance building a native i686-pc-linux newlib on an amd64? If so, that has never been tested. Please send patches if/when you have it all working.

-- Jeff J.

Shaun Jackman wrote:
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


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