head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.6 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.4 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.2 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.3.0.2 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.2.0.2 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.1.0.8 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.6 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.4 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.2 pkgsrc-2024Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2025.07.02.18.09.02; author dkazankov; state Exp; branches; next 1.3; commitid SMV3oczrDpSwrc1G; 1.3 date 2025.04.25.12.33.45; author dkazankov; state Exp; branches; next 1.2; commitid 0tmUsViWByC1MqSF; 1.2 date 2025.02.08.14.05.03; author wiz; state Exp; branches; next 1.1; commitid w9JGAUWGP7uGIFIF; 1.1 date 2024.03.08.12.02.34; author wiz; state Exp; branches; next ; commitid wOtDZmcvYEQnSl1F; desc @@ 1.4 log @gcc13-gnat*: update to 13.4 bug-fix release @ text @$NetBSD: patch-libgcc_config.host,v 1.3 2025/04/25 12:33:45 dkazankov Exp $ Part 1: drop legacy library build for macOS >= 14 [PR116809]. This is a mixture of two upstream patches. See https://github.com/gcc-mirror/gcc/blob/master/libgcc/config.host libgcc, Darwin: Drop the legacy library build for macOS >= 15 [PR116809]. We have been building a legacy libgcc_s.1 DSO to support code that was built with older compilers. From macOS 15, the unwinder no longer exports some of the symbols used in that library which (a) cuases bootstrap fail and (b) means that the legacy library is no longer useful. No open branch of GCC emits references to this library - and any already -built code that depends on the symbols would need rework anyway. PR target/116809 libgcc, Darwin: Don't build legacy libgcc_s.1 on macOS 14 [PR116809] d9cafa0 stopped building libgcc_s.1 on macOS >= 15, in part because that is required to bootstrap the compiler using the macOS 15 SDK. The macOS 15 SDK ships in Xcode 16, which also runs on macOS 14. libgcc_s.1 can no longer be built on macOS 14 using Xcode 16 by the same logic that the previous change disabled it for macOS 15. PR target/116809 Parts 2-3: This is needed for arm64 to get Out-of-line LSE atomics linked into libgcc. libsupc++ fails to link without this, and for arm to build. --- libgcc/config.host.orig 2025-06-05 19:03:02.000000000 +0300 +++ libgcc/config.host @@@@ -235,11 +235,17 @@@@ tmake_file="$tmake_file t-slibgcc-darwin" # newer toolsets produce warnings when building for unsupported versions. case ${host} in - *-*-darwin1[89]* | *-*-darwin2* ) - tmake_file="t-darwin-min-8 $tmake_file" + x86_64-*-darwin2[0-2]*) + tmake_file="t-darwin-min-11 t-darwin-libgccs1 $tmake_file" + ;; + *-*-darwin2*) + tmake_file="t-darwin-min-11 $tmake_file" + ;; + *-*-darwin1[89]*) + tmake_file="t-darwin-min-8 t-darwin-libgccs1 $tmake_file" ;; *-*-darwin1[67]]*) - tmake_file="t-darwin-min-5 $tmake_file" + tmake_file="t-darwin-min-5 t-darwin-libgccs1 $tmake_file" ;; *-*-darwin9* | *-*-darwin1[0-5]*) tmake_file="t-darwin-min-5 t-darwin-libgccs1 $tmake_file" @@@@ -409,6 +415,7 @@@@ aarch64*-*-netbsd*) extra_parts="$extra_parts crtfastmath.o" tmake_file="${tmake_file} ${cpu_type}/t-aarch64" + tmake_file="${tmake_file} ${cpu_type}/t-lse" tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" tmake_file="${tmake_file} t-dfprules" md_unwind_header=aarch64/aarch64-unwind.h @@@@ -500,7 +507,8 @@@@ case ${host} in arm*-*-netbsdelf-*eabi*) tmake_file="${tmake_file} arm/t-netbsd-eabi" - unwind_header=config/arm/unwind-arm.h + # GCC 7 vs NetBSD/eabi -> avoid arm unwinder + #unwind_header=config/arm/unwind-arm.h ;; *) tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover" @ 1.3 log @gcc13-gnat,-libs: import common patches for MacOS from lang/gcc13 @ text @d1 1 a1 1 $NetBSD: patch-libgcc_config.host,v 1.2 2024/12/15 03:07:57 brook Exp $ d36 1 a36 1 --- libgcc/config.host.orig 2024-05-21 07:47:41.000000000 +0000 d38 1 a38 1 @@@@ -235,19 +235,25 @@@@ case ${host} in d53 1 a53 1 *-*-darwin9* | *-*-darwin1[0-7]*) d57 3 a59 13 *-*-darwin[4-8]*) - tmake_file="t-darwin-min-1 $tmake_file" + tmake_file="t-darwin-min-1 t-darwin-libgccs1 $tmake_file" ;; *) # Fall back to configuring for the oldest system known to work with # all archs and the current sources. - tmake_file="t-darwin-min-5 $tmake_file" + tmake_file="t-darwin-min-5 t-darwin-libgccs1 $tmake_file" echo "Warning: libgcc configured to support macOS 10.5" 1>&2 ;; esac @@@@ -406,6 +412,7 @@@@ aarch64*-*-freebsd*) d67 1 a67 1 @@@@ -497,7 +504,8 @@@@ arm*-*-netbsdelf*) @ 1.2 log @gcc13-gnat: merge updates from wip From Dmytro Kazankov. @ text @d1 1 a1 1 $NetBSD: patch-libgcc_config.host,v 1.1 2024/03/08 12:02:34 wiz Exp $ d3 31 a33 1 This is needed for arm64 to get Out-of-line LSE atomics linked into libgcc. d36 1 a36 1 --- libgcc/config.host.orig 2024-05-21 10:47:41.000000000 +0300 d38 32 a69 1 @@@@ -406,6 +406,7 @@@@ d77 1 a77 1 @@@@ -497,7 +498,8 @@@@ @ 1.1 log @lang/gcc13-gnat: import gcc13-gnat-13.2.0 Packaged by Dmytro Kazankov for wip. The GNU Compiler Collection (GCC) This package contains GNAT compiler and Ada tools @ text @d1 1 a1 1 $NetBSD: patch-libgcc_config.host,v 1.1 2023/05/03 20:03:09 wiz Exp $ d6 1 a6 1 --- libgcc/config.host.orig 2023-04-26 07:09:43.000000000 +0000 d8 1 a8 1 @@@@ -388,6 +388,7 @@@@ aarch64*-*-freebsd*) d16 1 a16 1 @@@@ -479,7 +480,8 @@@@ arm*-*-netbsdelf*) @