Commit 08106825 by Alexandre Oliva Committed by Alexandre Oliva

final.c (output_addr_const): Don't assume at least one operand is a CONST_INT.

* final.c (output_addr_const) <PLUS>: Don't assume at least one
operand is a CONST_INT.

From-SVN: r37935
parent cb51ecd2
2000-12-01 Alexandre Oliva <aoliva@redhat.com>
* final.c (output_addr_const) <PLUS>: Don't assume at least one
operand is a CONST_INT.
* config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
(machine_dependent_reorg): Split all insns.
* config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
......
......@@ -3724,7 +3724,8 @@ output_addr_const (file, x)
else
{
output_addr_const (file, XEXP (x, 0));
if (INTVAL (XEXP (x, 1)) >= 0)
if (GET_CODE (XEXP (x, 1)) != CONST_INT
|| INTVAL (XEXP (x, 1)) >= 0)
fprintf (file, "+");
output_addr_const (file, XEXP (x, 1));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment