Remove redundant use of REG_CLASS_NAMES maros
authorAnatoly Sokolov <aesok@post.ru>
Sat, 29 Aug 2015 13:10:43 +0000 (16:10 +0300)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Sat, 29 Aug 2015 13:10:43 +0000 (16:10 +0300)
From-SVN: r227318

gcc/ChangeLog
gcc/ira.c

index 492ca7d05f69587554381a24aef643fb5512c1d6..bbe677e99d09b78603ad07fe38962c8e16d3a788 100644 (file)
@@ -1,3 +1,11 @@
+2015-08-29  Anatoly Sokolov  <aesok@post.ru>
+
+       * ira.c (print_unform_and_important_classes,
+       print_translated_classes): Remove reg_class_names static array.
+       (print_unform_and_important_classes): Rename to ...
+       (print_uniform_and_important_classes): ... this.
+       (ira_debug_allocno_classes): Update accordingly.
+
 2015-08-29  Tom de Vries  <tom@codesourcery.com>
 
        PR tree-optimization/46193
index 79827eb6f711daafd8fa27d31def202716bf967c..28517c1c3bc60aa979be867f50e157737be9b591 100644 (file)
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -1376,9 +1376,8 @@ setup_reg_class_relations (void)
 
 /* Output all uniform and important classes into file F.  */
 static void
-print_unform_and_important_classes (FILE *f)
+print_uniform_and_important_classes (FILE *f)
 {
-  static const char *const reg_class_names[] = REG_CLASS_NAMES;
   int i, cl;
 
   fprintf (f, "Uniform classes:\n");
@@ -1403,7 +1402,6 @@ print_translated_classes (FILE *f, bool pressure_p)
   enum reg_class *class_translate = (pressure_p
                                     ? ira_pressure_class_translate
                                     : ira_allocno_class_translate);
-  static const char *const reg_class_names[] = REG_CLASS_NAMES;
   int i;
 
   fprintf (f, "%s classes:\n", pressure_p ? "Pressure" : "Allocno");
@@ -1420,7 +1418,7 @@ print_translated_classes (FILE *f, bool pressure_p)
 void
 ira_debug_allocno_classes (void)
 {
-  print_unform_and_important_classes (stderr);
+  print_uniform_and_important_classes (stderr);
   print_translated_classes (stderr, false);
   print_translated_classes (stderr, true);
 }