Bug in mark_referenced_regs?

Mark Mitchell mark@codesourcery.com
Thu Jun 27 00:58:00 GMT 2002



--On Wednesday, June 26, 2002 10:17:02 PM -0700 "David S. Miller" 
<davem@redhat.com> wrote:

>    From: Mark Mitchell <mark@codesourcery.com>
>    Date: Wed, 26 Jun 2002 20:52:00 -0700
>
>    I'm looking at a problem that seems to step from caller-save.c.
>
> What platform is this, rs6000 non-darwin (and thus r2 is a procedure
> local register)?

No, SH -- but R2 is a CALL_USED_REGISTER there.

To make it more complicated, I'm working with an old version of GCC at
the moment...

I can try to get a test case with the current sources, but I'm still
sort-of at the conceptual stage.  It just seems to me that if you set
a register, we should remove it from hard_regs_saved at that point, and
I don't see any code (even in the current sources) that does that.

Thanks,

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the Gcc mailing list