This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


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

Fix build of some tests on MIPS


This patch fixes the build of the tests debug/tst-{chk,lfschk}-{4,5,6}.o 
on MIPS.

The error is of the form "../include/setjmp.h:8: error: non-local function 
'void __longjmp(<anonymous struct>*, int)' uses anonymous type" - these 
tests are C++ tests.  Arguably the tests should not be using the internal 
headers anyway, and arguably the internal header should use extern "C" (I 
don't know if that stops this error), but making MIPS more like other 
targets by giving the structure type a name avoids this problem, so I've 
done that in this patch.

2008-07-16  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/mips/bits/setjmp.h (__jmp_buf): Give name to structure
	type.

Index: sysdeps/mips/bits/setjmp.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/mips/bits/setjmp.h,v
retrieving revision 1.14
diff -u -r1.14 setjmp.h
--- sysdeps/mips/bits/setjmp.h	10 Jan 2006 10:18:16 -0000	1.14
+++ sysdeps/mips/bits/setjmp.h	16 Jul 2008 11:00:00 -0000
@@ -27,7 +27,7 @@
 
 #include <sgidefs.h>
 
-typedef struct
+typedef struct __jmp_buf_internal_tag
   {
 #if _MIPS_SIM == _ABIO32
     /* Program counter.  */

-- 
Joseph S. Myers
joseph@codesourcery.com


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