svn commit: r217033 - in head: lib/libstand sys/boot/ficl sys/boot/i386 sys/boot/pc98 sys/boot/zfs sys/conf

Alexander Best arundel at freebsd.org
Thu Jan 6 22:02:22 UTC 2011


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


More information about the svn-src-head mailing list