This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] one more missed mark_used
- From: Jason Merrill <jason at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Aug 2003 13:30:09 -0400
- Subject: Re: [C++ patch] one more missed mark_used
- References: <20030730173156.GZ24216@kam.mff.cuni.cz><1059694982.17539.56.camel@doubledemon.codesourcery.com><20030802113645.GB8233@kam.mff.cuni.cz><1059855845.24116.230.camel@doubledemon.codesourcery.com>
On 02 Aug 2003 13:24:05 -0700, Mark Mitchell <mark@codesourcery.com> wrote:
>> + /* Avoid useless walking of complex type and declaration nodes. */
>> + if (TYPE_P (*tp) || DECL_P (*tp))
>
> You should be careful about this test. For example, I expect that you
> will now not walk the initializers of declarations, which might contain
> pointers-to-members, or statement-expressions containing try/catch
> blocks.
Actually, this isn't true either--we walk to DECL_INITIAL from the
DECL_STMT, not from the _DECL itself.
Jason