[PATCH] Re: Using vector in setjmp.h for SPU.
Jeff Johnston
jjohnstn@redhat.com
Wed Dec 20 10:47:00 GMT 2006
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__
>
More information about the Newlib
mailing list