aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-12-01 23:29:57 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-12-01 23:29:57 +0000
commit08106825b963ae6505e978a0986d134d9860ac7a (patch)
tree10af6fe5a23c5df4df2b300c106ab52bab9d8dd8 /gcc/final.c
parentcb51ecd2a53521d041b22605d3f8ff6fbe6242b2 (diff)
downloadgcc-08106825b963ae6505e978a0986d134d9860ac7a.zip
gcc-08106825b963ae6505e978a0986d134d9860ac7a.tar.gz
gcc-08106825b963ae6505e978a0986d134d9860ac7a.tar.bz2
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
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 46c09ee..95e3722 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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));
}