Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2023 04:22:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 262857] x11-servers/xorg-server: illegal instruction on i386
Message-ID:  <bug-262857-7141-dd1cBsVPTP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262857-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262857-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262857

--- Comment #5 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Robert Clausecker from comment #4)
Setting CPUTYPE via make.conf(5) has the same effect. -Dsse2=3Dfalse in mes=
a-*
simply removes -msse2 -mfpmath=3Dsse. FreeBSD i386 uses Clang, so -msse2 im=
plies
-mfpmath=3Dsse while -march=3Dpentium4 or greater implies -msse2.

$ cc -msse2 -mfpmath=3D387 -dM -E -</dev/null | fgrep SSE2
error: the '387' unit is not supported with this instruction set

$ cc -march=3Dpentium4 -dM -E -</dev/null | fgrep SSE2
#define __SSE2_MATH__ 1 // aka -mfpmath=3Dsse
#define __SSE2__ 1 // aka -msse2

$ gcc12 -march=3Dpentium4 -dM -E -</dev/null | fgrep SSE2
#define __SSE2__ 1 // aka -msse2

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262857-7141-dd1cBsVPTP>