This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Standard scheme for maintainer-only debugging code?


> 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.


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