Ok, I guess I will try setting the length attribute as you describe and see if it is called at all before hard registers are allocated. Then, I can trace any usage to see if its important.
---- Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > Andrew Hutchinson <[EMAIL PROTECTED]> writes: > > > I'm still trying to get my head around length attribute and when/where > > it is used by gcc. The internal manual is vague to say the least. > > > > If I use the method suggested, will it only ever get evaluated after > > reload? Or at least only with hard register assignments made? > > Please reply to the mailing list, not just to me. Thanks. > > I think the length will only ever be evaluated after reload. In any > case, it only really matters after reload. Before reload, you can > return pretty much anything; it won't matter. > > Ian