This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: [x32] libitm failures on x32
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Torvald Riegel <triegel at redhat dot com>, Richard Henderson <rth at redhat dot com>
- Date: Tue, 3 Apr 2012 12:43:48 -0700
- Subject: PATCH: [x32] libitm failures on x32
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
We need to use long long instead of long in gtm_jmpbuf for x86_64 since
long in x32 is 32bits. OK for trunk and 4.7 branch?
Thanks.
H.J.
---
2012-04-03 H.J. Lu <hongjiu.lu@intel.com>
PR libitm/52854
* config/x86/target.h (gtm_jmpbuf): Replace long with long long
for x86-64.
diff --git a/libitm/config/x86/target.h b/libitm/config/x86/target.h
index 1d81a47..5c7e6fb 100644
--- a/libitm/config/x86/target.h
+++ b/libitm/config/x86/target.h
@@ -29,13 +29,13 @@ namespace GTM HIDDEN {
typedef struct gtm_jmpbuf
{
void *cfa;
- unsigned long rbx;
- unsigned long rbp;
- unsigned long r12;
- unsigned long r13;
- unsigned long r14;
- unsigned long r15;
- unsigned long rip;
+ unsigned long long rbx;
+ unsigned long long rbp;
+ unsigned long long r12;
+ unsigned long long r13;
+ unsigned long long r14;
+ unsigned long long r15;
+ unsigned long long rip;
} gtm_jmpbuf;
#else
typedef struct gtm_jmpbuf