[PATCH] SH tiny tweak

Kaz Kojima kkojima@rr.iij4u.or.jp
Tue Jan 31 14:30:00 GMT 2006


Hi,

On SH, I've found an error when compiling nptl/tst-cancel24 with
the C++ compiler:

../include/setjmp.h:8: error: non-local function `void __longjmp(<anonymous struct>*, int)' uses anonymous type

but missed to send the attached patch to fix it.

Regards,
	kaz
--
2006-01-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/sh/bits/setjmp.h: Use the structure with tag.

diff -uprN ORIG/libc/sysdeps/sh/bits/setjmp.h LOCAL/libc/sysdeps/sh/bits/setjmp.h
--- ORIG/libc/sysdeps/sh/bits/setjmp.h	2006-01-19 08:45:42.000000000 +0900
+++ LOCAL/libc/sysdeps/sh/bits/setjmp.h	2006-01-31 14:30:59.000000000 +0900
@@ -25,7 +25,7 @@
 #endif
 
 #ifndef _ASM
-typedef struct
+typedef struct __jmp_buf_s
   {
     /* Callee-saved registers r8 through r15.  */
     int __regs[8];



More information about the Libc-hacker mailing list