From db3cf207103617ed58a3ad34dfd60f2c887fa98d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 19 Sep 2026 09:58:33 +0000 Subject: [PATCH] gcc14: backport patch to fix an ICE on aarch64 (cherry picked from commit 99bb9193fbeac47d8b1de1fb3e260428c7a0aa6c) --- pkgs/development/compilers/gcc/patches/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/compilers/gcc/patches/default.nix b/pkgs/development/compilers/gcc/patches/default.nix index e5f9bc270382..e7772a60017d 100644 --- a/pkgs/development/compilers/gcc/patches/default.nix +++ b/pkgs/development/compilers/gcc/patches/default.nix @@ -107,6 +107,17 @@ optionals noSysDirs ( ## 2. Patches relevant on specific platforms #################################### +## AArch64 + +# Fix an ICE when a function type carries a C++11 attribute without a namespace. +# Fixed in GCC 15, never backported to the GCC 14 branch: +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116598 +++ optional (is14 && targetPlatform.isAarch64) (fetchpatch { + name = "aarch64-fix-ice-in-lookup-shared-state-flags.patch"; + url = "https://github.com/gcc-mirror/gcc/commit/1247fa6e95cdf4a6422ec802f733f1f7ecaa3557.patch"; + hash = "sha256-p8fyIcAx8CvLtQboXPevw/J3LsvkSZp36bHtGHjxsiQ="; +}) + ## Darwin # Fix detection of bootstrap compiler Ada support (cctools as) on Nix Darwin