History

remove no-longer-necessary naive fix for vla vstack leak

Joe Soroka committed 15 years ago

Commit 1b8c0941 parent c85f77d1 file · +0 −5Browse files

Unified · Split

tccgen.c+0−5
@@ -4326,14 +4326,11 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym, · 4325 unmodified lines
43264326 gsym_addr(b, d);
43274327 } else if (tok == '{') {
43284328 Sym *llabel;
4329− SValue *pvtop;
43304329
43314330 next();
43324331 /* record local declaration stack position */
43334332 s = local_stack;
43344333 llabel = local_label_stack;
4335− /* record vstack position */
4336− pvtop = vtop;
43374334 /* handle local labels declarations */
43384335 if (tok == TOK_LABEL) {
43394336 next();
@@ -4360,8 +4357,6 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym, · 20 unmodified lines
43604357 }
43614358 /* pop locally defined labels */
43624359 label_pop(&local_label_stack, llabel);
4363− /* pop left-over VLA size expressions */
4364− vtop = pvtop;
43654360 if(is_expr) {
43664361 /* XXX: this solution makes only valgrind happy...
43674362 triggered by gcc.c-torture/execute/20000917-1.c */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t