Remove unnecessary changes.
This commit is contained in:
parent
cef9d9d162
commit
56cf6e723e
@ -7586,10 +7586,10 @@ static void doreturn(void)
|
|||||||
* it stays on the heap for the moment, and it is removed -usually- at
|
* it stays on the heap for the moment, and it is removed -usually- at
|
||||||
* the end of the expression/statement, see expression() in SC3.C)
|
* the end of the expression/statement, see expression() in SC3.C)
|
||||||
*/
|
*/
|
||||||
if (!is_variadic(curfunc)) {
|
if (is_variadic(curfunc)) {
|
||||||
address(sub,sALT); /* ALT = destination */
|
|
||||||
} else {
|
|
||||||
load_hidden_arg();
|
load_hidden_arg();
|
||||||
|
} else {
|
||||||
|
address(sub,sALT); /* ALT = destination */
|
||||||
}
|
}
|
||||||
arraysize=calc_arraysize(dim,numdim,0);
|
arraysize=calc_arraysize(dim,numdim,0);
|
||||||
memcopy(arraysize*sizeof(cell)); /* source already in PRI */
|
memcopy(arraysize*sizeof(cell)); /* source already in PRI */
|
||||||
|
@ -469,23 +469,6 @@ SC_FUNC void address(symbol *sym,regid reg)
|
|||||||
code_idx+=opcodes(1)+opargs(1);
|
code_idx+=opcodes(1)+opargs(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute an address to the storage slot of a local variable.
|
|
||||||
SC_FUNC void address_slot(symbol *sym, regid reg)
|
|
||||||
{
|
|
||||||
assert(sym->vclass==sLOCAL);
|
|
||||||
switch (reg) {
|
|
||||||
case sPRI:
|
|
||||||
stgwrite("\taddr.pri ");
|
|
||||||
break;
|
|
||||||
case sALT:
|
|
||||||
stgwrite("\taddr.alt ");
|
|
||||||
break;
|
|
||||||
} /* switch */
|
|
||||||
outval(sym->addr,TRUE);
|
|
||||||
markusage(sym,uREAD);
|
|
||||||
code_idx+=opcodes(1)+opargs(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void addr_reg(int val, regid reg)
|
static void addr_reg(int val, regid reg)
|
||||||
{
|
{
|
||||||
if (reg == sPRI)
|
if (reg == sPRI)
|
||||||
|
Loading…
Reference in New Issue
Block a user