This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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][RFH] (3/3) Vectorize some builtins on x86_64 by using libgcc-math


On Fri, 17 Nov 2006, Jakub Jelinek wrote:

> On Fri, Nov 17, 2006 at 05:48:52PM +0100, Richard Guenther wrote:
> > + #undef  LIB_SPEC
> > + #define LIB_SPEC \
> > +   "%{pthread:-lpthread} \
> > +    %{shared:-lc} \
> > +    %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}} \
> > +    %{ftree-vectorize:--as-needed -lgcc-math --no-as-needed}"
> > +
> >   /* Similar to standard Linux, but adding -ffast-math support.  */
> >   #undef  ENDFILE_SPEC
> >   #define ENDFILE_SPEC \
> > 
> > (I'm just assuming that all linux64 targets have --as-needed support here)
> 
> That's a bad assumption, --as-needed is a fairly new ld addition.
> Guess you should conditionalize this on HAVE_LD_AS_NEEDED.
> --as-needed was introduced only in March 2004.

Hm, ok.  I thought it pre-dated x86_64 support.

Richard.

--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs


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