summarylogtreecommitdiffstats
path: root/0006-Fix-restoring-regs-after-longjmp.patch
blob: 92ccdcd9d34a4da6733aa7dd32396c239b7c3c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 9b7ee75fa095fa0bc9408a9929a1a980fb878cae Mon Sep 17 00:00:00 2001
From: litvin <litvindev@gmail.com>
Date: Fri, 23 Dec 2016 05:21:37 +0300
Subject: [PATCH 06/33] Fix restoring regs after longjmp (causes infinite loop)

---
 src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index 3c53e6c..2c4b27b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3189,9 +3189,9 @@ void mainCallXref(int argc, char **argv) {
 	static int 		fc,pfc;
 	static int 		inputIn;
 	static int 		firstPassing,mess,atLeastOneProcessed;
-	S_fileItem		*ffc, *pffc;
-	int				messagePrinted = 0;
-	int				numberOfInputs, inputCounter, pinputCounter;
+	static S_fileItem	*ffc, *pffc;
+	static int		messagePrinted = 0;
+	static int		numberOfInputs, inputCounter, pinputCounter;
 
 	/* some compilers have problems with restoring regs after longjmp */
 	dummy(&cxFreeBase0, &cxFreeBase, &ffc, &pffc, &inputIn, &firstPassing);
-- 
2.18.0