This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: PATCH: fix build problem on spu
- From: Andrew_Pinski at PlayStation dot Sony dot Com
- To: Patrick Mansfield <patmans at us dot ibm dot com>
- Cc: Ben Elliston <bje at au1 dot ibm dot com>, newlib at sourceware dot org
- Date: Mon, 8 Oct 2007 18:54:16 -0700
- Subject: Re: PATCH: fix build problem on spu
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