This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Standard scheme for maintainer-only debugging code?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: geoffk at geoffk dot org, gcc at gcc dot gnu dot org
- Date: 10 Jun 2003 18:59:28 -0300
- Subject: Re: Standard scheme for maintainer-only debugging code?
- Organization: GCC Team, Red Hat
- References: <20030610195038.GA19115@doctormoo>
On Jun 10, 2003, Nathanael Nerode <neroden@twcny.rr.com> wrote:
> (How should this be done? In C, declaring constants which can easily be
> made into variables is an odd process, and I'm not quite sure what the
> right magic incantation is.
AC_DEFINE(debug_XYZ, 0, [Define to enable XYZ debugging.])
At some point someone might even prefer to make it customizable by
--enable-debug-XYZ. Maybe even upfront?
It has the drawback that GeoffK pointed out, but the recompile
overhead is easy to optimize away with ccache.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer