[Bug 262857] x11-servers/xorg-server: illegal instruction on i386

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 31 May 2023 04:22:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262857

--- 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=false in mesa-*
simply removes -msse2 -mfpmath=sse. FreeBSD i386 uses Clang, so -msse2 implies
-mfpmath=sse while -march=pentium4 or greater implies -msse2.

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

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

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

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