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
956#ifdef TCC_ARM_EABI956#ifdef TCC_ARM_EABI
957 addr = (addr + align - 1) & -align;957 addr = (addr + align - 1) & -align;
958#endif958#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);
960 addr += size;960 addr += size;
961 }961 }
962 last_itod_magic=0;962 last_itod_magic=0;
c67-gen.c+1−1
@@ -1964,7 +1964,7 @@ void gfunc_prolog(CType * func_type) · 1963 unmodified lines
1964 /* define parameters */1964 /* define parameters */
1965 while ((sym = sym->next) != NULL) {1965 while ((sym = sym->next) != NULL) {
1966 type = &sym->type;1966 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);
1968 size = type_size(type, &align);1968 size = type_size(type, &align);
1969 size = (size + 3) & ~3;1969 size = (size + 3) & ~3;
1970 1970
i386-gen.c+1−1
@@ -471,7 +471,7 @@ void gfunc_prolog(CType *func_type) · 470 unmodified lines
471 addr += size;471 addr += size;
472 }472 }
473 sym_push(sym->v & ~SYM_FIELD, type,473 sym_push(sym->v & ~SYM_FIELD, type,
474 VT_LOCAL | VT_LVAL, param_addr);474 VT_LOCAL | lvalue_type(type->t), param_addr);
475 param_index++;475 param_index++;
476 }476 }
477 func_ret_sub = 0;477 func_ret_sub = 0;
il-gen.c+1−1
@@ -449,7 +449,7 @@ void gfunc_prolog(int t) · 448 unmodified lines
449 while ((sym = sym->next) != NULL) {449 while ((sym = sym->next) != NULL) {
450 u = sym->t;450 u = sym->t;
451 sym_push(sym->v & ~SYM_FIELD, u,451 sym_push(sym->v & ~SYM_FIELD, u,
452 VT_LOCAL | VT_LVAL, addr);452 VT_LOCAL | lvalue_type(sym->type.t), addr);
453 addr++;453 addr++;
454 }454 }
455}455}

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