PATCH: Fix __WORDSIZE for ia64.

H. J. Lu hjl@lucon.org
Fri Aug 1 14:12:00 GMT 2003


On Fri, Aug 01, 2003 at 01:45:55AM -0700, Roland McGrath wrote:
> > I think it is even questionable whether to define __WORDSIZE 32 in IA-64
> > headers if __ia64__ is not defined. 
> 
> I agree that part of the patch is wrong even if the utmp format change is
> chosen.  There is not a full set of biarch headers using __ia64__, so this
> does not belong.

This header file is intended for 64bit ia64. I agree checking __ia64__
is not right. _LP64 is a better choice.


-----
2003-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/ia64/bits/wordsize.h: New.

--- sysdeps/ia64/bits/wordsize.h.ia64	2003-07-31 15:17:44.000000000 -0700
+++ sysdeps/ia64/bits/wordsize.h	2003-08-01 07:08:47.000000000 -0700
@@ -0,0 +1,8 @@
+/* Determine the wordsize from the preprocessor defines.  */
+
+#if defined _LP64
+# define __WORDSIZE	64
+# define __WORDSIZE_COMPAT32	1
+#else
+# define __WORDSIZE	32
+#endif



More information about the Libc-alpha mailing list