Re: SSE in libthr

From: John-Mark Gurney <jmg_at_funkthat.com>
Date: Sat, 28 Mar 2015 10:36:13 -0700
Eric van Gyzen wrote this message on Fri, Mar 27, 2015 at 17:43 -0400:
> On 03/27/2015 16:49, Rui Paulo wrote:
> >
> > Regarding your patch, I think we should disable even more, if possible.  How about:
> >
> > CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> 
> Yes, I was considering copying all of the similar flags that we use in the
> kernel.  That seems wise.  According to comments in sys/conf/kern.mk, only
> no-mmx and no-sse would be necessary, as they imply the others.
> 
> dim_at_ raised the possibility of CPUTYPE=foo on i386, so I would also apply this
> change to i386.
> 
> An updated patch is below.

We should probably add a $(CFLAGS_NOFPU) define and use that.. Then it
can be properly tweaked per compiler and per arch as necessary instead
of hardcoding the selection in each makefile...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Sat Mar 28 2015 - 16:36:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:56 UTC