aboutsummaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-01 14:21:44 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-01 14:21:44 -0700
commit7e04d3c7e31e1a98cab960f7bfe30e500281d435 (patch)
tree0c69329677ef912369ef31cd08f91c000cf70428 /gcc/ifcvt.c
parentf0b0e152edf021f6901a0b9223878f985fdfe473 (diff)
downloadgcc-7e04d3c7e31e1a98cab960f7bfe30e500281d435.zip
gcc-7e04d3c7e31e1a98cab960f7bfe30e500281d435.tar.gz
gcc-7e04d3c7e31e1a98cab960f7bfe30e500281d435.tar.bz2
ifcvt.c (noce_emit_cmove): Conditionally compile call to emit_conditional_move.
* ifcvt.c (noce_emit_cmove): Conditionally compile call to emit_conditional_move. From-SVN: r33585
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index ba310da..dbe6f61 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -758,10 +758,18 @@ noce_emit_cmove (if_info, x, code, cmp_a, cmp_b, vfalse, vtrue)
|| ! general_operand (cmp_b, GET_MODE (cmp_b)))
return NULL_RTX;
+#if HAVE_conditional_move
return emit_conditional_move (x, code, cmp_a, cmp_b, VOIDmode,
vtrue, vfalse, GET_MODE (x),
(code == LTU || code == GEU
|| code == LEU || code == GTU));
+#else
+ /* We'll never get here, as noce_process_if_block doesn't call the
+ functions involved. Ifdef code, however, should be discouraged
+ because it leads to typos in the code not selected. However,
+ emit_conditional_move won't exist either. */
+ return NULL_RTX;
+#endif
}
/* Try only simple constants and registers here. More complex cases