This is the mail archive of the gcc-patches@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: [LTO]: patch committed to properly handle VAR_DECLs and FIELD_DECLs


Kenneth Zadeck wrote:

>> 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.

You're right; in C you can't do this with just local variables.  I'm not
sure if you can in Ada, though.  But, yeah, maybe it's a case we can not
worry about just yet.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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