-ffixed-di vs. strlen

Ian Lance Taylor ian@wasabisystems.com
Fri Feb 13 19:40:00 GMT 2004


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



More information about the Gcc mailing list