This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Define __NO_INLINE__ if not inlining (take 2)
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: [PATCH] Define __NO_INLINE__ if not inlining (take 2)
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 5 May 2001 09:54:16 +0100
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org, jakub at redhat dot com,jsm28 at cam dot ac dot uk, Zack Weinberg <zackw at Stanford dot EDU>
- References: <200105042315.TAA04565@caip.rutgers.edu>
Kaveh R. Ghazi wrote:-
> 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
> do something else
> which specifically breaks this contract WRT warning flags.
Hmm. See PR 2677. I admit I find your argument more persuasive;
I prefer to be conservative. I don't know if Zack has changed his
mind in the light of your point.