This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Fix __WORDSIZE for ia64.
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