Commit b8a669d0 by DJ Delorie Committed by DJ Delorie

m32c.c (m32c_hard_regno_nregs_1): Renamed from...

* config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
(m32c_hard_regno_nregs): ...this, which is now a wrapper.
(m32c_hard_regno_ok): Call the underlying function.

From-SVN: r131449
parent 32be9f94
2008-01-10 DJ Delorie <dj@redhat.com>
* config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
(m32c_hard_regno_nregs): ...this, which is now a wrapper.
(m32c_hard_regno_ok): Call the underlying function.
2008-01-10 Richard Guenther <rguenther@suse.de> 2008-01-10 Richard Guenther <rguenther@suse.de>
PR middle-end/34683 PR middle-end/34683
...@@ -523,8 +523,8 @@ m32c_conditional_register_usage (void) ...@@ -523,8 +523,8 @@ m32c_conditional_register_usage (void)
/* Implements HARD_REGNO_NREGS. This is complicated by the fact that /* Implements HARD_REGNO_NREGS. This is complicated by the fact that
different registers are different sizes from each other, *and* may different registers are different sizes from each other, *and* may
be different sizes in different chip families. */ be different sizes in different chip families. */
int static int
m32c_hard_regno_nregs (int regno, enum machine_mode mode) m32c_hard_regno_nregs_1 (int regno, enum machine_mode mode)
{ {
if (regno == FLG_REGNO && mode == CCmode) if (regno == FLG_REGNO && mode == CCmode)
return 1; return 1;
...@@ -549,12 +549,19 @@ m32c_hard_regno_nregs (int regno, enum machine_mode mode) ...@@ -549,12 +549,19 @@ m32c_hard_regno_nregs (int regno, enum machine_mode mode)
return 0; return 0;
} }
int
m32c_hard_regno_nregs (int regno, enum machine_mode mode)
{
int rv = m32c_hard_regno_nregs_1 (regno, mode);
return rv ? rv : 1;
}
/* Implements HARD_REGNO_MODE_OK. The above function does the work /* Implements HARD_REGNO_MODE_OK. The above function does the work
already; just test its return value. */ already; just test its return value. */
int int
m32c_hard_regno_ok (int regno, enum machine_mode mode) m32c_hard_regno_ok (int regno, enum machine_mode mode)
{ {
return m32c_hard_regno_nregs (regno, mode) != 0; return m32c_hard_regno_nregs_1 (regno, mode) != 0;
} }
/* Implements MODES_TIEABLE_P. In general, modes aren't tieable since /* Implements MODES_TIEABLE_P. In general, modes aren't tieable since
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment