]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
modulo-sched.c (doloop_register_get): Protect against doloop_end not defined.
authorRichard Henderson <rth@redhat.com>
Fri, 3 Jun 2005 02:00:00 +0000 (19:00 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 3 Jun 2005 02:00:00 +0000 (19:00 -0700)
        * modulo-sched.c (doloop_register_get): Protect against
        doloop_end not defined.

From-SVN: r100528

gcc/ChangeLog
gcc/modulo-sched.c

index fd459d339973f971f4b5fb7cf0dbcf13ee5b63b3..34089ef4ff7564f94c52c425e4446bea02bbf477 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-02  Richard Henderson  <rth@redhat.com>
+
+       * modulo-sched.c (doloop_register_get): Protect against 
+       doloop_end not defined.
+
 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
 
        * config/sh/sh.c (general_movsrc_operand,
index f42dd1b1308c77bf8a4b21ac8341eb8c2d963b4e..082b059bc2208b78a2f35f5dc2da8e37cd55b0c4 100644 (file)
@@ -273,8 +273,9 @@ static struct sched_info sms_sched_info =
    or zero if it is not a decrement-and-branch insn.  */
 
 static rtx
-doloop_register_get (rtx insn)
+doloop_register_get (rtx insn ATTRIBUTE_UNUSED)
 {
+#ifdef HAVE_doloop_end
   rtx pattern, reg, condition;
 
   if (! JUMP_P (insn))
@@ -294,6 +295,9 @@ doloop_register_get (rtx insn)
     gcc_unreachable ();
 
   return reg;
+#else
+  return NULL_RTX;
+#endif
 }
 
 /* Check if COUNT_REG is set to a constant in the PRE_HEADER block, so