PATCH: Check __x86_64__ for __cleanup_fct_attribute

H.J. Lu hongjiu.lu@intel.com
Fri May 11 14:43:00 GMT 2012


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



More information about the Libc-alpha mailing list