Unified · Split
| @@ -2225,6 +2225,8 @@ ST_FUNC void gen_vla_sp_restore(int addr) { · 2224 unmodified lines | ||
| 2225 | 2225 | |
| 2226 | 2226 | /* Subtract from the stack pointer, and push the resulting value onto the stack */ |
| 2227 | 2227 | ST_FUNC void gen_vla_alloc(CType *type, int align) { |
| 2228 | + int r; | |
| 2229 | + get_flags(); | |
| 2228 | 2230 | #ifdef TCC_TARGET_PE |
| 2229 | 2231 | /* alloca does more than just adjust %rsp on Windows */ |
| 2230 | 2232 | vpush_global_sym(&func_old_type, TOK_alloca); |
| @@ -2232,7 +2234,6 @@ ST_FUNC void gen_vla_alloc(CType *type, int align) { · 1 unmodified line | ||
| 2232 | 2234 | gfunc_call(1); |
| 2233 | 2235 | vset(type, REG_IRET, 0); |
| 2234 | 2236 | #else |
| 2235 | − int r; | |
| 2236 | 2237 | r = gv(RC_INT); /* allocation size */ |
| 2237 | 2238 | /* sub r,%rsp */ |
| 2238 | 2239 | o(0x2b48); |