This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PROMOTE_PROTOTYPES runtime selection
- To: jj at sunsite dot ms dot mff dot cuni dot cz
- Subject: Re: PROMOTE_PROTOTYPES runtime selection
- From: mark at codesourcery dot com
- Date: Thu, 03 Jun 1999 08:16:59 -0700
- Cc: egcs-patches at egcs dot cygnus dot com
- Organization: CodeSourcery, LLC
- References: <19990603132854.L949@mff.cuni.cz>
I've got a minor question. Why not make PROMOTE_PROTOTYPES be defined
for all ports by defaulting it to zero somewhare? Then, all the
#ifdef PROMOTE_PROTOTYPES could go, and we would just have:
if (PROMOTE_PROTOTYPES && ...)
which would yield much more attractive code. When PROMOTE_PROTOTYPES
is zero, the compiler will remove the conditionalized code.
In general, avoiding conditional compilation is probably a good thing:
if nothing else it keeps us from accidentally preventing some port
slightly different than our own from compiling when we change
something.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com