This is the mail archive of the gcc-patches@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]

Re: PROMOTE_PROTOTYPES runtime selection



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


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