gap: backport aarch64 patch

This commit is contained in:
Mauricio Collares 2021-03-22 15:02:13 -03:00
parent 90772d6666
commit 812ffed96b
2 changed files with 16 additions and 0 deletions

View file

@ -101,6 +101,9 @@ stdenv.mkDerivation rec {
excludes = ["tst/testinstall/stringobj.tst"];
sha256 = "1mz5b4mbw2jdd1ypp5s0dy6pp0jsvwsxr2dm4kbkls20r1r192sc";
})
# fixes aarch64 gc crashes: https://github.com/gap-system/gap/pull/3965
./mark-genstackfuncbags-as-noinline.patch
];
postPatch = ''

View file

@ -0,0 +1,13 @@
diff --git a/src/gasman.c b/src/gasman.c
index 417811401..314a74190 100644
--- a/src/gasman.c
+++ b/src/gasman.c
@@ -1861,7 +1861,7 @@ void SparcStackFuncBags( void )
#endif
-void GenStackFuncBags ( void )
+NOINLINE void GenStackFuncBags ( void )
{
Bag * top; /* top of stack */
Bag * p; /* loop variable */