Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2011 22:02:22 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: svn commit: r217033 - in head: lib/libstand sys/boot/ficl sys/boot/i386 sys/boot/pc98 sys/boot/zfs sys/conf
Message-ID:  <20110106220222.GA54092@freebsd.org>
In-Reply-To: <4D258E91.2040403@FreeBSD.org>
References:  <201101052224.p05MOXQs093175@svn.freebsd.org> <AANLkTinB_5Bxri=KCUM7P2fAjZ38W%2B302oOzkbNzH_K6@mail.gmail.com> <4D258E91.2040403@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu Jan  6 11, Dimitry Andric wrote:
> On 2011-01-06 00:14, Ivan Voras wrote:
> >>    -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
> >I'm late to the party - but is there any hope of centralizing these
> >and then doing something like "CFLAGS += ${CC_NO_FP}" ?
> 
> Yeah, that is the next step.  First I wanted to get all the flags the
> same.
> 
> Btw, this is not only about "no floating point", as SSE instructions can
> be used for other things (memset, memcpy, etc) too.  So "NO_FP" is
> misleading in my opinion, but it seems to be what most people want.

any suggestions?

how about ${NO_CPU_EXT}?

also i was think...if we add something like this to sys/conf/kern.mk:

${NO_CPU_EXT}+=	-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.if ${CC:T:Mclang} == "clang"
${NO_CPU_EXT}+=	-mno_sse4 -mno_sse4_1 -mno_sse4_2 -mno_sse4a -mno_ssse3 \
		-mno_aes -mno_avx
.endif

...will this be evaluated once or dynamically? because there are places in
base where gcc gets always used no matter what's in src.conf (bootblocks e.g.).
in those case we don't want to send all the new -mno-* flags to gcc, do we.

cheers.
alex

> 
> 
> >As soon as we
> >get a newer compiler someone will have to add -mno-sse4 to the list
> >(if not already with clang...).
> 
> For clang, we should add the following, if we want to be very cautious:
> 
> -mno_aes -mno_avx -mno_sse4 -mno_sse4_1 -mno_sse4_2 -mno_sse4a -mno_ssse3

-- 
a13x



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110106220222.GA54092>