[patch preprocessor]: PR/45362 Dangling reference

Tom Tromey tromey@redhat.com
Wed Sep 22 23:20:00 GMT 2010


>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> It also seems like instead of having a separate list for push/pop, we
Tom> could simply store a pointer to the pushed macro into the cpp_macro
Tom> object itself.  This will grow cpp_macro, but maybe that isn't so bad.

Kai points out that this won't work properly because we might see an
#undef, so the cpp_macro object would not be available.

Instead I think it is sufficient for the time being to simply save the
'line', 'syshdr', and 'used' fields along with the macro text.

Tom



More information about the Gcc-patches mailing list