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?


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


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