This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in mark_referenced_regs?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "David S. Miller" <davem at redhat dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 26 Jun 2002 22:27:31 -0700
- Subject: Re: Bug in mark_referenced_regs?
--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