remove no-longer-necessary naive fix for vla vstack leak
This commit is contained in:
parent
c85f77de70
commit
1b8c094f39
1 changed files with 0 additions and 5 deletions
5
tccgen.c
5
tccgen.c
|
@ -4326,14 +4326,11 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym,
|
|||
gsym_addr(b, d);
|
||||
} else if (tok == '{') {
|
||||
Sym *llabel;
|
||||
SValue *pvtop;
|
||||
|
||||
next();
|
||||
/* record local declaration stack position */
|
||||
s = local_stack;
|
||||
llabel = local_label_stack;
|
||||
/* record vstack position */
|
||||
pvtop = vtop;
|
||||
/* handle local labels declarations */
|
||||
if (tok == TOK_LABEL) {
|
||||
next();
|
||||
|
@ -4360,8 +4357,6 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym,
|
|||
}
|
||||
/* pop locally defined labels */
|
||||
label_pop(&local_label_stack, llabel);
|
||||
/* pop left-over VLA size expressions */
|
||||
vtop = pvtop;
|
||||
if(is_expr) {
|
||||
/* XXX: this solution makes only valgrind happy...
|
||||
triggered by gcc.c-torture/execute/20000917-1.c */
|
||||
|
|
Loading…
Reference in a new issue