This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: [PATCH] Re: Using vector in setjmp.h for SPU.


Patch applied.

-- Jeff J.

jschopp wrote:
Kazunori Asayama wrote:
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 ?

Sorry about that. In all my being annoyed that FSF gcc doesn't handle this properly I forgot to send the patch out to work with FSF gcc anyway.


Patch below is just what I had. Thanks for keeping me honest.


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__



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