This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 4 more debug hooks
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: 4 more debug hooks
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Tue, 10 Jul 2001 20:56:35 +0100
Neil Booth wrote:-
> - debug_define (cpp_get_line (parse_in)->line, (const char *) cpp_macro_definition (pfile, node));
> + /* Avoid unnecessary calls to cpp_macro_definition since they can be
> + expensive. */
> + if (debug_hooks->define != debug_nothing_int_charstar)
> + (*debug_hooks->define) (cpp_get_line (pfile)->line,
> + (const char *) cpp_macro_definition (pfile, node));
I've just noticed that my comment here and if statement are redundant
(we only set up the cpplib callback to get here if we're doing debug
stuff) so I'll remove it in anything I commit.
Neil.