From 0d7c40b9484cce68c710fb17fd8bafd2832a6c69 Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Thu, 16 Jan 2020 08:24:17 +0100 Subject: [PATCH] Call pop_local_syms before gfunc_epilog --- tccgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tccgen.c b/tccgen.c index 21aaac63..9b911f49 100644 --- a/tccgen.c +++ b/tccgen.c @@ -7655,10 +7655,10 @@ static void gen_function(Sym *sym, AttributeDef *ad) block(0); gsym(rsym); nocode_wanted = 0; - gfunc_epilog(); - cur_text_section->data_offset = ind; /* reset local stack */ pop_local_syms(&local_stack, NULL, 0); + gfunc_epilog(); + cur_text_section->data_offset = ind; local_scope = 0; label_pop(&global_label_stack, NULL, 0); sym_pop(&all_cleanups, NULL, 0);