aboutsummaryrefslogtreecommitdiff
path: root/x86_64-gen.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-02-19 23:50:13 +0100
committerMichael Matz <matz@suse.de>2017-05-02 03:07:36 +0200
commita8b83ce43a95fa519dacfe7690a3a0098af7909c (patch)
treead077ee960d6aa5dc503ce2a45bab9618a3457ac /x86_64-gen.c
parent8b9697ca6b756af47eac153961abec70fd9dad6e (diff)
downloadtinycc-a8b83ce43a95fa519dacfe7690a3a0098af7909c.tar.gz
tinycc-a8b83ce43a95fa519dacfe7690a3a0098af7909c.tar.bz2
Remove VT_REF
The canonical way to describe a local variable that actually holds the address of an lvalue is VT_LLOCAL. Remove the last user of VT_REF, and handling of it, thereby freeing a flag for SValue.r.
Diffstat (limited to 'x86_64-gen.c')
-rw-r--r--x86_64-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c
index 9f19e78..0c0968c 100644
--- a/x86_64-gen.c
+++ b/x86_64-gen.c
@@ -957,7 +957,7 @@ void gfunc_prolog(CType *func_type)
if (reg_param_index < REGN) {
gen_modrm64(0x89, arg_regs[reg_param_index], VT_LOCAL, NULL, addr);
}
- sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | VT_LVAL | VT_REF, addr);
+ sym_push(sym->v & ~SYM_FIELD, type, VT_LLOCAL | VT_LVAL, addr);
} else {
if (reg_param_index < REGN) {
/* save arguments passed by register */