aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-01 02:55:05 +0000
committerRichard Stallman <rms@gnu.org>1993-05-01 02:55:05 +0000
commitc141a106c0d76ed3187df9bea5551f1178e4f0d9 (patch)
tree09b6dbe4db05d6155389d6c7f0dd241ce7dc0aac /gcc
parent317417a2bccb881f5059b32fc479c0efcd849edd (diff)
downloadgcc-c141a106c0d76ed3187df9bea5551f1178e4f0d9.zip
gcc-c141a106c0d76ed3187df9bea5551f1178e4f0d9.tar.gz
gcc-c141a106c0d76ed3187df9bea5551f1178e4f0d9.tar.bz2
(subst, case COMPARE): Use SELECT_CC_MODE even if HAVE_CC0.
From-SVN: r4291
Diffstat (limited to 'gcc')
-rw-r--r--gcc/combine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index e900c7c..ee9c56b 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3817,11 +3817,13 @@ subst (x, from, to, in_dest, unique_copy)
/* Simplify our comparison, if possible. */
new_code = simplify_comparison (old_code, &op0, &op1);
-#if !defined (HAVE_cc0) && defined (EXTRA_CC_MODES)
+#ifdef EXTRA_CC_MODES
/* If this machine has CC modes other than CCmode, check to see
if we need to use a different CC mode here. */
compare_mode = SELECT_CC_MODE (new_code, op0, op1);
+#endif /* EXTRA_CC_MODES */
+#if !defined (HAVE_cc0) && defined (EXTRA_CC_MODES)
/* If the mode changed, we have to change SET_DEST, the mode
in the compare, and the mode in the place SET_DEST is used.
If SET_DEST is a hard register, just build new versions with