OSDN Git Service

* ifcvt.c (noce_emit_cmove): Conditionally compile call to
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 May 2000 21:21:44 +0000 (21:21 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 May 2000 21:21:44 +0000 (21:21 +0000)
        emit_conditional_move.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33585 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ifcvt.c

index 3576db0..0b1ed1b 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-01  Richard Henderson  <rth@cygnus.com>
+
+       * ifcvt.c (noce_emit_cmove): Conditionally compile call to
+       emit_conditional_move.
+
 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
 
        * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
index ba310da..dbe6f61 100644 (file)
@@ -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