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

Re: C/C++ standards supported by the preprocessor


On Sun, 17 Jan 2016, Sandra Loosemore wrote:
> I noticed that the section on preprocessor options in the GCC manual 
> (which is also shared by the CPP manual) still claims that the default 
> -std= values are gnu90 for C and gnu++98 for C++, and does not list any 
> C++ versions after gnu++98.  AFAICT from digging through code and trying 
> some experiments to see what's accepted on the command line, the options 
> and defaults for CPP are exactly the same as those for GCC; is that 
> correct?

Anything else would be a bug, IMHO.

> I'd like to get rid of the duplicate documentation, somehow -- having to 
> maintain two copies can only lead to more problems with them getting out 
> of sync in the future, plus the GCC manual already lists so many options 
> we don't need to list some of them twice.

Makes sense.

Gerald


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