This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrapping hppa64? CPP problem
Neil Booth wrote:-
> Steve,
>
> Could you step into the code (should be not too hard to grok
> for such a simple case) starting with the #define and see
> what hash entry pointer is given for _SVID2? Then figure
> out why you're not getting it for the !defined line?
>
> A breakpoint on do_define() might be useful; be sure to
> step into lex_macro_node () which lexes and creates a hash
> entry for _SVID2. If this is a CPP bug I would really like
> to catch it.
Hmm, not such good advice - do_define is called for the built-ins
too.
If -undef also exhibits the bug, you could try it as described
above, otherwise break on _cpp_handle_directive before setting
the do_define breakpoint. That way you'll avoid a dozen or so
built-ins.
Neil.