This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] potential fix for PR middle-end/7151
> From: Richard Henderson <rth@redhat.com>
> Date: Tue, 1 Oct 2002 15:40:51 -0700
>
> On Tue, Oct 01, 2002 at 03:01:30PM -0700, David S. Miller wrote:
> > * reload1.c (gen_reload:SECONDARY_MEMORY_NEEDED): Handle SUBREG.
> > * reload.c (push_reload:SECONDARY_MEMORY_NEEDED): Likewise.
>
> Seems good.
>
> I put this onto the 3.2 branch.
>
> Jan, your version went into the mainline. Could you back that
> out and put mine in instead? You created this unnecessary
> reg_or_subregno() function, when true_regnum() is perfectly
> legitimate to use here.
I am using the reg-or-subregno for unroll.c where true_regnum can not be
used, as the hard register array is not filled yet. Using true_regnum
in the reload part would work too, but I guess reg_or_subregno is closer
to what we need.
Honza