head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.07.19.11.17.44; author adam; state Exp; branches; next ; commitid FhXjPkGd9j9WSfOG; desc @@ 1.1 log @gcc15: updated to 15.3 15.3 This release is a bug-fix release, containing fixes for regressions in GCC 15.2 relative to previous releases of GCC. PkgSrc: Allow building on Darwin/aarch64. @ text @$NetBSD$ Support Darwin/aarch64. https://github.com/Homebrew/homebrew-core/blob/main/Patches/gcc/gcc-15.3.0.diff --- libgcc/config/aarch64/__arm_sme_state.S.orig 2026-06-12 06:09:09.988305985 +0000 +++ libgcc/config/aarch64/__arm_sme_state.S @@@@ -30,14 +30,19 @@@@ - Takes no argument. - Returns SME state in x0 and TPIDR2_EL0 in x1. */ -HIDDEN (__aarch64_have_sme) +HIDDEN (ASMNAME (__aarch64_have_sme)) -variant_pcs (__arm_sme_state) +variant_pcs (ASMNAME (__arm_sme_state)) -ENTRY (__arm_sme_state) +ENTRY (ASMNAME (__arm_sme_state)) /* Check if SME is available. */ - adrp x1, __aarch64_have_sme - ldrb w1, [x1, :lo12:__aarch64_have_sme] +#ifdef __APPLE__ + adrp x1, ASMNAME (__aarch64_have_sme)@@PAGE + ldrb w1, [x1, ASMNAME (__aarch64_have_sme)@@PAGEOFF] +#else + adrp x1, ASMNAME (__aarch64_have_sme) + ldrb w1, [x1, :lo12:ASMNAME (__aarch64_have_sme)] +#endif cbz w1, L(nosme) /* Expose the bottom 2 bits of svcr (SM, ZA) in x0 and set the @@@@ -52,4 +57,4 @@@@ L(nosme): mov x0, 0 mov x1, 0 ret -END (__arm_sme_state) +ENDm ASMNAME(__arm_sme_state) @