* final.c (output_addr_const) <PLUS>: Don't assume at least one
operand is a CONST_INT.
From-SVN: r37935
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
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));
}