Standard scheme for maintainer-only debugging code?
Richard Earnshaw
rearnsha@arm.com
Wed Jun 11 09:46:00 GMT 2003
> DJ Delorie <dj@redhat.com> writes:
>
> |> > Of course, there's a way to achieve both: debug_XYZ could be defined to
> |> > any of 0, 1, or flag_debug_XYZ, and there could be a single #ifdef to
> |> > make all of the flags variable.
> |>
> |> Perhaps enabled with --enable-maintainer-mode?
>
> IMHO this should not be overloaded. Debugging and maintaining are
> different concepts.
Especially since maintainer mode is supposed to bring additional
dependencies in the makefiles, that someone wanting to get debugging info
might not have to hand.
How about adding a "debug" check sub-option to --enable-checking?
R.
More information about the Gcc
mailing list