gap: backport aarch64 patch
commit812ffed96b4b69a1443e89b39cf3907a1ec1b5b5
authorMauricio Collares <mauricio@collares.org>
dateMon 22 Mar 2021, 15:02 (6 years ago)
parent90772d6
pkgs/applications/science/math/gap/default.nix+3
@@ -101,6 +101,9 @@ stdenv.mkDerivation rec {
101101 excludes = ["tst/testinstall/stringobj.tst"];
102102 sha256 = "1mz5b4mbw2jdd1ypp5s0dy6pp0jsvwsxr2dm4kbkls20r1r192sc";
103103 })
104+
105+ # fixes aarch64 gc crashes: https://github.com/gap-system/gap/pull/3965
106+ ./mark-genstackfuncbags-as-noinline.patch
104107 ];
105108
106109 postPatch = ''
pkgs/applications/science/math/gap/mark-genstackfuncbags-as-noinline.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/src/gasman.c b/src/gasman.c
2+index 417811401..314a74190 100644
3+--- a/src/gasman.c
4++++ b/src/gasman.c
5+@@ -1861,7 +1861,7 @@ void SparcStackFuncBags( void )
6+ #endif
7+
8+
9+-void GenStackFuncBags ( void )
10++NOINLINE void GenStackFuncBags ( void )
11+ {
12+ Bag * top; /* top of stack */
13+ Bag * p; /* loop variable */