https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122953
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Saurabh Jha <[email protected]>: https://gcc.gnu.org/g:c6bb3a81db8bffd6df748b844904d3e3a9cea8a0 commit r16-8082-gc6bb3a81db8bffd6df748b844904d3e3a9cea8a0 Author: Saurabh Jha <[email protected]> Date: Thu Mar 12 11:57:26 2026 +0000 aarch64: mingw: Fix _ARM_PCS_AAPCS64 [PR122953] Windows platforms do not support the default procedure calling standard, AAPCS64. So _ARM_PCS_AAPCS64 should not be set for Windows targets. This fixes the setting of __ARM_PCS_AAPCS64 by making it conditional on non-Windows targets. PR target/122953 gcc/ChangeLog: * config/aarch64/aarch64-c.cc (TARGET_AARCH64_MS_ABI): Explicitly set it to 0 if not on mingw. (aarch64_define_unconditional_macros): Remove __ARM_PCS_AAPCS64 from here. (aarch64_update_cpp_builtins): Define __ARM_PCS_AAPCS64 if not on Windows ABI. --- Hey, Regression tested on aarch64-linux-gnu and found no regressions. Built for arch64-w64-mingw32, ran target dependent tests, and found no regressions. Ok for master? Thanks, Saurabh
