Remove redundant use of REG_CLASS_NAMES maros
Vladimir Makarov
vmakarov@redhat.com
Fri Aug 28 13:01:00 GMT 2015
On 08/28/2015 06:07 AM, Anatoliy Sokolov wrote:
> Hi.
>
> This patch remove static reg_class_names array from
> print_translated_classes and print_unform_and_important_classes
> functions. Global reg_class_names array is used instead.
>
> Bootstrapped and reg-tested on x86_64-unknown-linux-gnu and
> powerpc64le-unknown-linux-gnu.
>
> OK for trunk?
>
> 2015-08-21 Anatoly Sokolov <aesok@post.ru>
>
> * ira.c (print_unform_and_important_classes,
> print_translated_classes): Remove reg_class_names static array.
>
>
> Index: gcc/ira.c
> ===================================================================
> --- gcc/ira.c (revision 226990)
> +++ gcc/ira.c (working copy)
> @@ -1378,7 +1378,6 @@
> static void
> print_unform_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 @@
> 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");
OK. Thanks for removing the artifacts. I see also a typo. It should
be uniform instead of unform in print_unform_and_important_classes.
Could you change it too. Thanks again.
More information about the Gcc-patches
mailing list