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]
Other format: [Raw text]

Re: add #define to revert C99 inlining behaviour


On Fri, 3 Nov 2006, Andrew Pinski wrote:

> On Fri, 2006-11-03 at 18:59 -0800, Geoffrey Keating wrote:
> > Apparently it is 'controversial' that -std=c99 should implement C99.
> > 
> > So, here is a #define.  You can switch it off, on again, off again, on
> > again, and so on, to your heart's delight.
> 
> Didn't we agree on an option instead of a define inside GCC?

I think an option would be a bad idea if it means code cannot determine 
the inline semantics from the combination of __GNUC__, __GNUC_MINOR__ and 
__STDC_VERSION__.

The need to determine the semantics from the compiler version so that code 
can be conditioned accordingly also means that the decision of what 
semantics GCC 4.3 uses in C99 mode must be made soon - by the end of Stage 
1 - so the code adding such conditionals knows what conditionals to add; 
changing the default on a release branch would be far too late.  My view 
is that we should determine the semantics at that point based on whether 
the required attribute and glibc fixes have been implemented.

-- 
Joseph S. Myers
joseph@codesourcery.com


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