]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
authorRichard Henderson <rth@redhat.com>
Tue, 3 May 2005 19:05:59 +0000 (12:05 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 3 May 2005 19:05:59 +0000 (12:05 -0700)
From-SVN: r99175

gcc/ChangeLog
gcc/cfg.c

index c5d2304709eefac40d71e24f772e79b1a1db7dfc..e3e17da680e48a9587ab274a3b587a7b5bdbe153 100644 (file)
@@ -2,6 +2,8 @@
 
        * config/rs6000/rs6000.c: Remove conflict markers.
 
+       * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
+
 2005-05-03  James E Wilson  <wilson@specifixinc.com>
 
        * dwarf2out.c (lookup_filename): Call maybe_emit_file.
index 432cea5a1b4141e15f18b8c39bc3613e2bae8ecc..a0f326a5db7271af48539438e9d97d313b3695be 100644 (file)
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -471,14 +471,14 @@ check_bb_profile (basic_block bb, FILE * file)
 void
 dump_flow_info (FILE *file)
 {
-  int i;
   basic_block bb;
 
   /* There are no pseudo registers after reload.  Don't dump them.  */
   if (reg_n_info && !reload_completed)
     {
-      fprintf (file, "%d registers.\n", max_regno);
-      for (i = FIRST_PSEUDO_REGISTER; i < max_regno; i++)
+      unsigned int i, max = max_reg_num ();
+      fprintf (file, "%d registers.\n", max);
+      for (i = FIRST_PSEUDO_REGISTER; i < max; i++)
        if (REG_N_REFS (i))
          {
            enum reg_class class, altclass;