projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027b4a7
)
(output_addr_const): If 2nd arg of MINUS is negative integer, put it in parens.
author
Richard Stallman
<rms@gnu.org>
Wed, 9 Sep 1992 20:35:19 +0000
(20:35 +0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 9 Sep 1992 20:35:19 +0000
(20:35 +0000)
From-SVN: r2090
gcc/final.c
patch
|
blob
|
history
diff --git
a/gcc/final.c
b/gcc/final.c
index 4ccfd4761b745cc12613eef358109285c6324fdc..cef184fbc076fe4a9111db21f267b799ab9459ca 100644
(file)
--- a/
gcc/final.c
+++ b/
gcc/final.c
@@
-2231,7
+2231,15
@@
output_addr_const (file, x)
case MINUS:
output_addr_const (file, XEXP (x, 0));
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;
case ZERO_EXTEND: