This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: make cfun a non-lvalue
- From: Tom Tromey <tromey at redhat dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 15 Nov 2007 12:41:07 -0700
- Subject: Re: Patch: make cfun a non-lvalue
- References: <m3mytprgbz.fsf@fleche.redhat.com> <473CA1E5.4000909@google.com>
- Reply-to: tromey at redhat dot com
>>>>> "Diego" == Diego Novillo <dnovillo@google.com> writes:
Diego> Tom Tromey wrote:
>> * tree-parloops.c (create_loop_fn): Use set_cfun.
>> * gengtype.c (open_base_files): Emit #undef cfun.
>> * ipa-struct-reorg.c (do_reorg_1): Use set_cfun.
>> * function.h (cfun): New define.
>> * function.c: Undefine cfun.
Diego> There are other places that set 'cfun', though. IIRC, tree-inline.c
Diego> and omp-low.c do.
I don't see those in my tree. Maybe those assignments were removed at
some point? Also, this patch has survived multiple bootstraps, which
would have caught any assignments -- that's how I found the ones I
fixed.
Diego> Patch is OK otherwise.
I'll check it in shortly, thanks.
Tom