* [committed] Fix a comment
@ 2016-10-05 15:21 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2016-10-05 15:21 UTC (permalink / raw)
To: gcc-patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-05 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 15:21 [committed] Fix a comment Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).