kern/123518: src/sys/kern.mk fails to disable -msse3 for amd64

Marc Olzheim marcolz at stack.nl
Thu May 8 08:20:02 UTC 2008


>Number:         123518
>Category:       kern
>Synopsis:       src/sys/kern.mk fails to disable -msse3 for amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 08:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Marc Olzheim <marcolz at stack.nl>
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
iphion B.V.
>Environment:
System: FreeBSD hammer.stack.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Mar 24 16:49:01 CET 2008 dean at hammer.stack.nl:/sabretooth.mnt/sources/7.x/amd64/obj/sabretooth.mnt/sources/7.x/src/sys/STACK-SMP64 amd64


>Description:
	Although revision 1.46 ( http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/kern.mk#rev1.46 ) fixes this for the i386 build, the same fix should be applied to the amd64 build.
>How-To-Repeat:
	set CPUTYPE to nocona and add -msse3 to CFLAGS in /etc/make.conf
>Fix:

--- /usr/src/sys/conf/kern.mk	2007-05-24 23:53:42.000000000 +0200
+++ /usr/src/sys/conf/kern.mk	2008-05-08 09:44:09.000000000 +0200
@@ -70,7 +70,7 @@
 #
 .if ${MACHINE_ARCH} == "amd64"
 CFLAGS+=	-mcmodel=kernel -mno-red-zone \
-		-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow \
+		-mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow \
 		-msoft-float -fno-asynchronous-unwind-tables
 INLINE_LIMIT?= 8000
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list