loop-doloop.c (doloop_optimize): Change type of max_cost to int.
authorAndreas Tobler <a.tobler@schweiz.org>
Fri, 15 Sep 2006 22:47:26 +0000 (22:47 +0000)
committerAndreas Tobler <andreast@gcc.gnu.org>
Fri, 15 Sep 2006 22:47:26 +0000 (00:47 +0200)
2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>

* loop-doloop.c (doloop_optimize): Change type of max_cost to int.
Add forgotten parameter to the fprintf call.

From-SVN: r116982

gcc/ChangeLog
gcc/loop-doloop.c

index 4bc3b5a8d9fd8da8c76eaefce619f05065f8d51f..74bc58dd7a9d56e5b8bafb5afaa8c04b3f78a2c7 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>
+
+       * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
+       Add forgotten parameter to the fprintf call.
+
 2006-09-15  Steve Ellcey  <sje@cup.hp.com>
 
        * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
index f2bb9baf1d70ee8b994056ec81ce013f69cf36e5..a1ec4b0f15577149d3101f5ee15d50157370c58f 100644 (file)
@@ -1,5 +1,5 @@
 /* Perform doloop optimizations
-   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
    Based on code by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
 
 This file is part of GCC.
@@ -484,7 +484,8 @@ doloop_optimize (struct loop *loop)
   rtx iterations_max;
   rtx start_label;
   rtx condition;
-  unsigned level, est_niter, max_cost;
+  unsigned level, est_niter;
+  int max_cost;
   struct niter_desc *desc;
   unsigned word_mode_size;
   unsigned HOST_WIDE_INT word_mode_max;
@@ -531,7 +532,7 @@ doloop_optimize (struct loop *loop)
     {
       if (dump_file)
        fprintf (dump_file,
-                "Doloop: number of iterations too costly to compute.\n",
+                "Doloop: number of iterations (%u) too costly to compute.\n",
                 est_niter);
       return false;
     }