History

Set VT_LVAL_xxx flags for function arguments in gfunc_prolog (Daniel Glöckner)

Daniel Glöckner committed 18 years ago

Commit 2c657f61 parent 8f7e3f34 files · +4 −4Browse files

Unified · Split

4 files
  1. arm-gen.c +1 −1
  2. c67-gen.c +1 −1
  3. i386-gen.c +1 −1
  4. il-gen.c +1 −1
arm-gen.c+1−1
@@ -956,7 +956,7 @@ void gfunc_prolog(CType *func_type) · 955 unmodified lines
956956 #ifdef TCC_ARM_EABI
957957 addr = (addr + align - 1) & -align;
958958 #endif
959− sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | VT_LVAL, addr);
959+ sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | lvalue_type(type->t), addr);
960960 addr += size;
961961 }
962962 last_itod_magic=0;
c67-gen.c+1−1
@@ -1964,7 +1964,7 @@ void gfunc_prolog(CType * func_type) · 1963 unmodified lines
19641964 /* define parameters */
19651965 while ((sym = sym->next) != NULL) {
19661966 type = &sym->type;
1967− sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | VT_LVAL, addr);
1967+ sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | lvalue_type(type->t), addr);
19681968 size = type_size(type, &align);
19691969 size = (size + 3) & ~3;
19701970
i386-gen.c+1−1
@@ -471,7 +471,7 @@ void gfunc_prolog(CType *func_type) · 470 unmodified lines
471471 addr += size;
472472 }
473473 sym_push(sym->v & ~SYM_FIELD, type,
474− VT_LOCAL | VT_LVAL, param_addr);
474+ VT_LOCAL | lvalue_type(type->t), param_addr);
475475 param_index++;
476476 }
477477 func_ret_sub = 0;
il-gen.c+1−1
@@ -449,7 +449,7 @@ void gfunc_prolog(int t) · 448 unmodified lines
449449 while ((sym = sym->next) != NULL) {
450450 u = sym->t;
451451 sym_push(sym->v & ~SYM_FIELD, u,
452− VT_LOCAL | VT_LVAL, addr);
452+ VT_LOCAL | lvalue_type(sym->type.t), addr);
453453 addr++;
454454 }
455455 }

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