This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Check __x86_64__ for __cleanup_fct_attribute
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 11 May 2012 07:43:20 -0700
- Subject: PATCH: Check __x86_64__ for __cleanup_fct_attribute
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
We should check __x86_64__ for __cleanup_fct_attribute. Tested on
Linux/x86-64/x32. OK to install?
Thanks.
H.J.
----
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
(__cleanup_fct_attribute): Check __x86_64__ instead of
__x86_64__.
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
index 32be0b6..e22947f 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
@@ -219,7 +232,7 @@ typedef union
#endif
-#if __WORDSIZE == 32
+#ifndef __x86_64__
/* Extra attributes for the cleanup functions. */
# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
#endif