[PATCH] Define __NO_INLINE__ if not inlining (take 2)
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri May 4 16:15:00 GMT 2001
> Hi Jakub,
>
> Whilst you're at it, could you define __PEDANTIC__ if -pedantic or
> -pedantic-errors (i.e. -pedantic*)? That'd be great.
>
> Thanks,
> Neil.
No wait, where did that come from? We're not supposed to alter the
behavior of the compiler via the use of warning flags (which is what
-pedantic is essentially.)
If you do this, then someone will inevitably write:
#ifdef __PEDANTIC__
do something
#else
do something else
#endif
which specifically breaks this contract WRT warning flags.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc
mailing list