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]

Re: 4 more debug hooks


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.


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