This is the mail archive of the
mailing list for the GCC project.
Re: Some (small) c++ compilation profiling data (oprofile)
On Wed, May 22, 2002 at 07:38:11AM +0100, Neil Booth wrote:
> Zack Weinberg wrote:-
> > Should just be a case of adding a pointer to a linemap structure in
> > the macro context stack, right?
> There isn't such a thing. Currently cpplib knows about the macros
> under expansion since it does little or no lookahead, so the
> context stack is still intact. But if you have the front-end
> rampaging around the token stream, then saying "I want a
> diagnostic at the position of that token 10 tokens ago",
> the information is probably lost anyway as the macro has
> long since been left.
Oh, okay, I didn't realize you wanted to support that case as well.
> I think the only thing to do is keep a little list of
> starting and ending points of macro expansions in the token