aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-20 19:35:52 +0000
committerRichard Stallman <rms@gnu.org>1992-08-20 19:35:52 +0000
commita23b64d54870b13c4399d92f86d49ecef829b968 (patch)
tree6b3f3150fb9970c8dc8304c78b9a59892b0d2857 /gcc/reload1.c
parent106d7d7de857f613209718cae33a2da5a922bf59 (diff)
downloadgcc-a23b64d54870b13c4399d92f86d49ecef829b968.zip
gcc-a23b64d54870b13c4399d92f86d49ecef829b968.tar.gz
gcc-a23b64d54870b13c4399d92f86d49ecef829b968.tar.bz2
Compare enums (preds.
Compare enums (preds. codes, mem_mode) explicitly to 0 in conditionals to work-around a VAXC bug that disallows enum as arguments to && and || operators. From-SVN: r1916
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 845883a..8eee024 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2496,7 +2496,7 @@ eliminate_regs (x, mem_mode, insn)
We special-case the commonest situation in
eliminate_regs_in_insn, so just replace a PLUS with a
PLUS here, unless inside a MEM. */
- if (mem_mode && GET_CODE (XEXP (x, 1)) == CONST_INT
+ if (mem_mode != 0 && GET_CODE (XEXP (x, 1)) == CONST_INT
&& INTVAL (XEXP (x, 1)) == - ep->previous_offset)
return ep->to_rtx;
else