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]

Re: [PATCH] Define __NO_INLINE__ if not inlining (take 2)


 > 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


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