diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-03-19 07:16:58 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-03-19 07:18:48 +0100 |
commit | 368b69c1a09413795a1409d6b54d02139d9fa519 (patch) | |
tree | 50817855c64e1e50c5ea9d55176bed6c55a64010 /src/grt/config | |
parent | 8e97758e77b2a0798bd83f99e72b32db43f0fe0e (diff) | |
download | ghdl-368b69c1a09413795a1409d6b54d02139d9fa519.tar.gz ghdl-368b69c1a09413795a1409d6b54d02139d9fa519.tar.bz2 ghdl-368b69c1a09413795a1409d6b54d02139d9fa519.zip |
Always execute finalizers and end hooks after simulation.
Fix for issue45.
Diffstat (limited to 'src/grt/config')
-rw-r--r-- | src/grt/config/jumps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grt/config/jumps.c b/src/grt/config/jumps.c index 2170943d6..019b42eee 100644 --- a/src/grt/config/jumps.c +++ b/src/grt/config/jumps.c @@ -56,7 +56,7 @@ #ifdef USE_BUILTIN_SJLJ typedef void *JMP_BUF[5]; static int sjlj_val; -# define SETJMP(BUF) (__builtin_setjmp (BUF), sjlj_val) +# define SETJMP(BUF) (sjlj_val = 0, __builtin_setjmp (BUF), sjlj_val) # define LONGJMP(BUF, VAL) \ do { sjlj_val = (VAL); __builtin_longjmp (BUF, 1); } while (0) #else |