mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
VLA code minor fix
This commit is contained in:
parent
999274ca90
commit
c75d0deecf
@ -2225,6 +2225,8 @@ ST_FUNC void gen_vla_sp_restore(int addr) {
|
||||
|
||||
/* Subtract from the stack pointer, and push the resulting value onto the stack */
|
||||
ST_FUNC void gen_vla_alloc(CType *type, int align) {
|
||||
int r;
|
||||
get_flags();
|
||||
#ifdef TCC_TARGET_PE
|
||||
/* alloca does more than just adjust %rsp on Windows */
|
||||
vpush_global_sym(&func_old_type, TOK_alloca);
|
||||
@ -2232,7 +2234,6 @@ ST_FUNC void gen_vla_alloc(CType *type, int align) {
|
||||
gfunc_call(1);
|
||||
vset(type, REG_IRET, 0);
|
||||
#else
|
||||
int r;
|
||||
r = gv(RC_INT); /* allocation size */
|
||||
/* sub r,%rsp */
|
||||
o(0x2b48);
|
||||
|
Loading…
Reference in New Issue
Block a user