public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [committed] Fix a comment
Date: Wed, 05 Oct 2016 15:21:00 -0000	[thread overview]
Message-ID: <20161005152116.GO7282@tucnak.redhat.com> (raw)

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

                 reply	other threads:[~2016-10-05 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161005152116.GO7282@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).