[committed] Fix a comment

Jakub Jelinek jakub@redhat.com
Wed Oct 5 15:21:00 GMT 2016


Hi!

I've noticed the c_common_reswords table has been changed to use D_CXX11
in 6.x, but the corresponding comment has not been updated (most likely
because of typo in it CXXOX vs. CXX0X.
Also, the -std= options look bogus.

Fixed thusly, committed as obvious to trunk.

2016-10-05  Jakub Jelinek  <jakub@redhat.com>

	* c-common.c (c_common_reswords): Update comment for C++11.

--- gcc/c-family/c-common.c.jj	2016-10-04 13:31:39.000000000 +0200
+++ gcc/c-family/c-common.c	2016-10-04 16:30:23.542133866 +0200
@@ -411,8 +411,8 @@ static int resort_field_decl_cmp (const
    C --std=c89: D_C99 | D_CXXONLY | D_OBJC | D_CXX_OBJC
    C --std=c99: D_CXXONLY | D_OBJC
    ObjC is like C except that D_OBJC and D_CXX_OBJC are not set
-   C++ --std=c98: D_CONLY | D_CXXOX | D_OBJC
-   C++ --std=c0x: D_CONLY | D_OBJC
+   C++ --std=c++98: D_CONLY | D_CXX11 | D_OBJC
+   C++ --std=c++11: D_CONLY | D_OBJC
    ObjC++ is like C++ except that D_OBJC is not set
 
    If -fno-asm is used, D_ASM is added to the mask.  If

	Jakub



More information about the Gcc-patches mailing list