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: [C++ patch] one more missed mark_used


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


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