This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -ffixed-di vs. strlen


Richard Henderson <rth@redhat.com> writes:

> On Thu, Feb 12, 2004 at 03:06:15PM -0500, Ian Lance Taylor wrote:
> > It's quite easy to change gcc to avoid the crash when using
> > -ffixed-di.  It's a bit tricky to generate optimal code when using a
> > local register variable, but it's not hard to generate correct
> > code--we just keep have to keep track of which registers have
> > dedicated local variables.
> 
> This has already been done; it's global_regs.

I think global_regs only holds the set of registers which are truly
global registers--i.e., declared outside of a function.

The problem in this test case is arising with variables which are
local to a function but are dedicated to a specific register during
that function.  I don't think these are tracked anywhere at present.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]