diff options
author | Anatoly Sokolov <aesok@post.ru> | 2015-08-29 16:10:43 +0300 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2015-08-29 16:10:43 +0300 |
commit | 89e944703fbeffa51be0dc9c26a85413dcfc1016 (patch) | |
tree | 199d8a543650983de9b631bdae527c7ad7640727 | |
parent | 34ae233a54a2dddf8cdc517572c48b31320a82d1 (diff) | |
download | gcc-89e944703fbeffa51be0dc9c26a85413dcfc1016.zip gcc-89e944703fbeffa51be0dc9c26a85413dcfc1016.tar.gz gcc-89e944703fbeffa51be0dc9c26a85413dcfc1016.tar.bz2 |
Remove redundant use of REG_CLASS_NAMES maros
From-SVN: r227318
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/ira.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 492ca7d..bbe677e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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); } |