This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] SH tiny tweak


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];


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]