Commit ce35884d by Richard Stallman

(output_addr_const): If 2nd arg of MINUS is negative integer, put it in parens.

From-SVN: r2090
parent 027b4a72
...@@ -2231,7 +2231,15 @@ output_addr_const (file, x) ...@@ -2231,7 +2231,15 @@ output_addr_const (file, x)
case MINUS: case MINUS:
output_addr_const (file, XEXP (x, 0)); output_addr_const (file, XEXP (x, 0));
fprintf (file, "-"); fprintf (file, "-");
output_addr_const (file, XEXP (x, 1)); if (GET_CODE (XEXP (x, 1)) == CONST_INT
&& INTVAL (XEXP (x, 1)) < 0)
{
fprintf (file, ASM_OPEN_PAREN);
output_addr_const (file, XEXP (x, 1));
fprintf (file, ASM_CLOSE_PAREN);
}
else
output_addr_const (file, XEXP (x, 1));
break; break;
case ZERO_EXTEND: case ZERO_EXTEND:
......
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