mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Bring back the offset alias support.
Accidently nuked it when fixing .return etc.
This commit is contained in:
parent
e7e8220246
commit
7314b944d5
1 changed files with 6 additions and 1 deletions
|
@ -138,15 +138,20 @@ add_statement_def_ref (def_t *def, dstatement_t *st, int field)
|
|||
{
|
||||
if (def) {
|
||||
int st_ofs = st - pr.code->code;
|
||||
int offset_reloc = 0;
|
||||
|
||||
while (def->alias) {
|
||||
//FIXME it seems there is a bug somewhere creating chains
|
||||
//of aliases
|
||||
def_t *a = def;
|
||||
offset_reloc |= def->offset_reloc;
|
||||
def = def->alias;
|
||||
free_def (a);
|
||||
}
|
||||
reloc_op_def (def, st_ofs, field);
|
||||
if (offset_reloc)
|
||||
reloc_op_def_ofs (def, st_ofs, field);
|
||||
else
|
||||
reloc_op_def (def, st_ofs, field);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue