about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-20 08:53:42 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-03-20 08:53:42 -0700
commit114883e00a8aebc3ce48831aa60bef8f963c7e95 (patch)
treeb6831ba24872e7c0f813f34a72ffe0b6dd99021f
parentc135cc1b5f24fab392af069daa637b51621c67ff (diff)
downloadglibc-114883e00a8aebc3ce48831aa60bef8f963c7e95.tar.gz
glibc-114883e00a8aebc3ce48831aa60bef8f963c7e95.tar.xz
glibc-114883e00a8aebc3ce48831aa60bef8f963c7e95.zip
Support x86-64 __jmp_buf with __WORDSIZE != 64
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86_64/bits/setjmp.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fefa7789f3..04d9d83115 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
+	__WORDSIZE != 64.
+
 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
 
 	* math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
diff --git a/sysdeps/x86_64/bits/setjmp.h b/sysdeps/x86_64/bits/setjmp.h
index a66ca0fa5a..bb6920d44e 100644
--- a/sysdeps/x86_64/bits/setjmp.h
+++ b/sysdeps/x86_64/bits/setjmp.h
@@ -29,6 +29,8 @@
 
 # if __WORDSIZE == 64
 typedef long int __jmp_buf[8];
+# elif defined  __x86_64__
+typedef long long int __jmp_buf[8];
 # else
 typedef int __jmp_buf[6];
 # endif