PATCH: fix build problem on spu
Andrew_Pinski@PlayStation.Sony.Com
Andrew_Pinski@PlayStation.Sony.Com
Tue Oct 9 02:05:00 GMT 2007
newlib-owner@sourceware.org wrote on 10/08/2007 06:51:48 PM:
> On Tue, Oct 09, 2007 at 11:29:55AM +1000, Ben Elliston wrote:
> > I'm not quite sure if this ever worked, but building newlib with
> > --target=spu fails because `vector' is not defined early enough.
> > spu_intrinsics.h must be included before simdmath.h, which is needed
for
> > the vector -> __vector defintion.
> >
> > OK for mainline? I'd commit it as obvious, but as the problem seems
> > equally obvious, I'm worried that I have overlooked something. :-)
>
> I don't get any compile errors. Also, we should have been building
> internally with this for quite a while.
>
> What were your compile errors?
And what version of the compiler are you using? Right now the FSF
mainline does not support the context sensative vector keyword so right
now Ben's fix is correct for the newer versions of the compiler :).
Thanks,
Andrew Pinski
More information about the Newlib
mailing list