diff mbox

[x32] PATCH: Check __x86_64__ instead of __LP64__ for Linux futex

Message ID 20110218022144.GA11947@intel.com
State New
Headers show

Commit Message

H.J. Lu Feb. 18, 2011, 2:21 a.m. UTC
Hi,

Linux/x32 uses the same futex as Linux/x86-64.  We should check
__x86_64__ instead of __LP64__ for Linux futex. Checked it in.

Thanks.

H.J.
---
commit cd679cfe40eb0b41e93c084693f9f7f6058df20f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Feb 17 06:56:52 2011 -0800

    Check __x86_64__ instead of __LP64__ for futex.
diff mbox

Patch

diff --git a/libgomp/ChangeLog.x32 b/libgomp/ChangeLog.x32
new file mode 100644
index 0000000..f0d2b59
--- /dev/null
+++ b/libgomp/ChangeLog.x32
@@ -0,0 +1,4 @@ 
+2011-02-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* config/linux/x86/futex.h: Check __x86_64__ instead of
+	__LP64__.
diff --git a/libgomp/config/linux/x86/futex.h b/libgomp/config/linux/x86/futex.h
index cb7461d..419f4d9 100644
--- a/libgomp/config/linux/x86/futex.h
+++ b/libgomp/config/linux/x86/futex.h
@@ -24,7 +24,7 @@ 
 
 /* Provide target-specific access to the futex system call.  */
 
-#ifdef __LP64__
+#ifdef __x86_64__
 # ifndef SYS_futex
 #  define SYS_futex	202
 # endif
@@ -138,7 +138,7 @@  futex_wake (int *addr, int count)
     }
 }
 
-#endif /* __LP64__ */
+#endif /* __x86_64__ */
 
 static inline void
 cpu_relax (void)