This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Re: Using vector in setjmp.h for SPU.
From: jschopp <jschopp@austin.ibm.com>
>> In the version of the gcc compiler I'm using both vector and __vector work equally well
>> with or without includes. This is the case with xlc as well. I haven't used the new FSF
>> compiler yet, could you confirm this is actually the case with it. If it is I'll send the
>> patch momentarily.
Ping ?
It is actually needed to make this change to use newlib with FSF
spu-gcc (and to build FSF spu-gcc itself).
Anyway, attached is a patch to fix this problem. I tested it with both
of JSRE and FSF spu-gcc.
2006-12-16 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/include/machine/setjmp.h: Replace vector with __vector.
Index: newlib/newlib/libc/include/machine/setjmp.h
===================================================================
--- newlib.orig/newlib/libc/include/machine/setjmp.h
+++ newlib/newlib/libc/include/machine/setjmp.h
@@ -210,7 +210,7 @@ _BEGIN_STD_C
#ifdef __SPU__
#define _JBLEN 50
-#define _JBTYPE vector signed int
+#define _JBTYPE __vector signed int
#endif
#ifdef __xstormy16__