ports/devel/freebsd-gcc9/files/patch-i686
John Baldwin 30b9e72ef9 Update to GCC 9.3.0.
While here, switch i386 to assume a default architecture of "i686"
for FreeBSD 11+ to match clang.  This permits lldb to link without
needing libatomic.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D26205
2021-03-04 21:18:22 +00: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