This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO]: patch committed to properly handle VAR_DECLs and FIELD_DECLs
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, William Maddox <maddox at google dot com>, Jim Blandy <jimb at codesourcery dot com>, "Park, Seongbae" <seongbae dot park at gmail dot com>, "Hubicha, Jan" <jh at suse dot cz>
- Date: Tue, 28 Aug 2007 19:25:29 -0700
- Subject: Re: [LTO]: patch committed to properly handle VAR_DECLs and FIELD_DECLs
- References: <46D4389E.7010301@naturalbridge.com> <46D4A22D.10608@codesourcery.com> <46D4D3C4.9020408@naturalbridge.com>
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