ports/devel/freebsd-gcc12/files/patch-i686
John Baldwin fabbde505b devel/freebsd-gcc12: External FreeBSD toolchain based on GCC 12.
This port provides external GCC toolchains for GCC 12.1.0 for the
aarch64, amd64, armv6, armv7, i386, powerpc, powerpc64, and riscv64
platforms.

Reviewed by:	lwhsu
Differential Revision:	https://reviews.freebsd.org/D35685
2022-08-12 10:27:18 -07:00

13 lines
395 B
Text

--- gcc/config.gcc.orig 2020-08-19 09:37:17.455916000 -0700
+++ gcc/config.gcc 2020-08-19 10:19:33.883084000 -0700
@@ -3346,7 +3346,9 @@ arch_without_sse2=no
arch_without_64bit=no
case ${target} in
i386-*-freebsd*)
- if test $fbsd_major -ge 6; then
+ if test $fbsd_major -ge 11; then
+ arch=i686
+ elif test $fbsd_major -ge 6; then
arch=i486
else
arch=i386