From 1804e1cb0ac211d651f8a8b5bed969b39653de56 Mon Sep 17 00:00:00 2001
From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Date: Wed, 15 Apr 2020 16:12:37 +0200
Subject: [PATCH] GenStackFuncBags: mark NOINLINE

If GenStackFuncBags is inlined inside CollectBags, then it is
not actually called so the provisio that 'setjmp' must be called
*before* 'GenStackFuncBags' is not satisfied. In particular the compiler
does not have to follow the usual caller-saved/callee-saved register
convention for function call.
---
 src/gasman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gasman.c b/src/gasman.c
index d61c68ad7..c9c7ca930 100644
--- a/src/gasman.c
+++ b/src/gasman.c
@@ -1780,7 +1780,7 @@ static void SparcStackFuncBags(void)
 #endif
 
 
-static void GenStackFuncBags(void)
+static NOINLINE void GenStackFuncBags(void)
 {
     Bag *               top;            /* top of stack                    */
     Bag *               p;              /* loop variable                   */
-- 
2.20.1

