This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PROMOTE_PROTOTYPES runtime selection
- To: mark at codesourcery dot com
- Subject: Re: PROMOTE_PROTOTYPES runtime selection
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 03 Jun 1999 09:35:58 -0600
- cc: jj at sunsite dot ms dot mff dot cuni dot cz, egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990603081659J.mitchell@codesourcery.com>you write:
>
> 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.
Agreed 100%.
jeff