This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] MIPS: Provide DWARF 2 mappings for HI, LO, and HILO
On Mar 28, 4:56pm, Richard Henderson wrote:
> HILO_REGNUM had better not show up in debug output. Indeed,
> I hope that we can get rid of this mistake on rewrite-branch.
I've revised my patch so that it doesn't touch HILO_REGNUM.
Okay?
* config/mips/mips.c (override_options): Provide mappings for
HI_REGNUM and LO_REGNUM.
* config/mips/mips.h (MD_DBX_FIRST): Define.
Index: config/mips/mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.252
diff -u -p -r1.252 mips.c
--- config/mips/mips.c 19 Feb 2003 18:03:09 -0000 1.252
+++ config/mips/mips.c 31 Mar 2003 20:02:09 -0000
@@ -5767,6 +5767,9 @@ override_options ()
for (i = FP_REG_FIRST; i <= FP_REG_LAST; i++)
mips_dbx_regno[i] = i + start;
+ mips_dbx_regno[HI_REGNUM] = MD_DBX_FIRST + 0;
+ mips_dbx_regno[LO_REGNUM] = MD_DBX_FIRST + 1;
+
/* Set up array giving whether a given register can hold a given mode.
At present, restrict ints from being in FP registers, because reload
is a little enthusiastic about storing extra values in FP registers,
Index: config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.241
diff -u -p -r1.241 mips.h
--- config/mips/mips.h 14 Mar 2003 15:53:48 -0000 1.241
+++ config/mips/mips.h 31 Mar 2003 20:02:10 -0000
@@ -1851,6 +1851,7 @@ do { \
#define MD_REG_FIRST 64
#define MD_REG_LAST 66
#define MD_REG_NUM (MD_REG_LAST - MD_REG_FIRST + 1)
+#define MD_DBX_FIRST (FP_DBX_FIRST + FP_REG_NUM)
#define ST_REG_FIRST 67
#define ST_REG_LAST 74