[LTO]: patch committed to properly handle VAR_DECLs and FIELD_DECLs
Kenneth Zadeck
zadeck@naturalbridge.com
Wed Aug 29 03:25:00 GMT 2007
Mark Mitchell wrote:
> Kenneth Zadeck wrote:
>
>> 1) A new section had to be added so that the VAR_DECLs could be read in
>> randomly. This is necessary because the tree for a VAR_DECL may contain
>> other VAR_DECLs so it is important to be able to reconstruct this bottom
>> up.
>>
>
> I assume that you mean things like this:
>
> int i;
> int j = i;
>
> where, here, the DECL_INITIAL for "j" references "i"?
>
> There is a way to get mutual recursion between variables; you can do this:
>
> extern int i;
> int j = i;
> int i = j;
>
> Will your code handle this?
>
> Thanks,
>
>
Mark even though we talked about this on the phone, i do not get this.
i will not see the var decl for i because it is not a local var.
i do not think that you can do this with just local vars.
kenny
More information about the Gcc-patches
mailing list