OSDN Git Service

2009-05-27 Neal H. Walfield <neal@gnu.org>
authorjjohnstn <jjohnstn>
Wed, 27 May 2009 18:54:57 +0000 (18:54 +0000)
committerjjohnstn <jjohnstn>
Wed, 27 May 2009 18:54:57 +0000 (18:54 +0000)
        * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
        _JBTYPE and the size of sigset_t.

newlib/ChangeLog
newlib/libc/include/machine/setjmp.h

index bc44057..4bd5edf 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-27  Neal H. Walfield  <neal@gnu.org>
+
+       * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
+       _JBTYPE and the size of sigset_t.
+
 2009-05-15  Craig Howland <howland@LGSInnovations.com>
 
        * configure.in:  Add configuration test for long double type existing
index 52b39e2..7ffb7d7 100644 (file)
@@ -267,7 +267,11 @@ extern "C" {
 #endif
 
 /* POSIX sigsetjmp/siglongjmp macros */
-typedef int sigjmp_buf[_JBLEN+2];
+#ifdef _JBTYPE
+typedef _JBTYPE sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (_JBTYPE))];
+#else
+typedef int sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (int))];
+#endif
 
 #define _SAVEMASK      _JBLEN
 #define _SIGMASK       (_JBLEN+1)