diff options
author | Roger Sayle <roger@eyesopen.com> | 2005-01-15 16:06:17 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2005-01-15 16:06:17 +0000 |
commit | 778f72f2cf96b678b32f4b327adb050a0ec864d8 (patch) | |
tree | 122e9687be647e2b1f0b34ecee7bb59c9eb26914 /gcc/regclass.c | |
parent | 9c3c3dcc1fbd186af72e62bc6d4579ec963611bd (diff) | |
download | gcc-778f72f2cf96b678b32f4b327adb050a0ec864d8.zip gcc-778f72f2cf96b678b32f4b327adb050a0ec864d8.tar.gz gcc-778f72f2cf96b678b32f4b327adb050a0ec864d8.tar.bz2 |
harg-reg-set.h (reg_class_names): Prototype global array.
* harg-reg-set.h (reg_class_names): Prototype global array.
* regclass.c (reg_class_names): Declare here and initialize to
REG_CLASS_NAMES.
(dump_regclass): Remove local declaration of reg_class_names.
(regclass): Likewise.
* cfg.c (dump_flow_info): Likewise.
* ra-debug.c (reg_class_names): Likewise.
* regrename.c (reg_class_names): Likewise.
* reload.c (reg_class_names): Likewise.
* reload1.c (spill_failure): Likewise.
* config/m68hc11/m68hc11.c (reg_class_names): Likewise.
From-SVN: r93696
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 3fd8281..ab8f7c8 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1,6 +1,6 @@ /* Compute register class preferences for pseudo-registers. Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996 - 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GCC. @@ -192,6 +192,10 @@ enum reg_class reg_class_superunion[N_REG_CLASSES][N_REG_CLASSES]; const char * reg_names[] = REGISTER_NAMES; +/* Array containing all of the register class names. */ + +const char * reg_class_names[] = REG_CLASS_NAMES; + /* For each hard register, the widest mode object that it can contain. This will be a MODE_INT mode if the register can hold integers. Otherwise it will be a MODE_FLOAT or a MODE_CC mode, whichever is valid for the @@ -925,7 +929,6 @@ regclass_init (void) static void dump_regclass (FILE *dump) { - static const char *const reg_class_names[] = REG_CLASS_NAMES; int i; for (i = FIRST_PSEUDO_REGISTER; i < max_regno; i++) { @@ -1348,7 +1351,6 @@ regclass (rtx f, int nregs, FILE *dump) && (reg_pref[i].prefclass != (int) best || reg_pref[i].altclass != (int) alt)) { - static const char *const reg_class_names[] = REG_CLASS_NAMES; fprintf (dump, " Register %i", i); if (alt == ALL_REGS || best == ALL_REGS) fprintf (dump, " pref %s\n", reg_class_names[(int) best]); |