From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 0E05A389245F for ; Wed, 19 May 2021 10:15:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0E05A389245F Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-463-omBV9rqLMLW_uZ1E6IfdKA-1; Wed, 19 May 2021 06:15:42 -0400 X-MC-Unique: omBV9rqLMLW_uZ1E6IfdKA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 72D246D241; Wed, 19 May 2021 10:15:41 +0000 (UTC) Received: from localhost (unknown [10.33.36.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2123C5D9C0; Wed, 19 May 2021 10:15:40 +0000 (UTC) Date: Wed, 19 May 2021 11:15:40 +0100 From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Cc: Jason Merrill , Nathan Sidwell Subject: [PATCH] doc: Update description of __GXX_EXPERIMENTAL_CXX0X__ Message-ID: MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="UyKkybJQUYQrOsr1" Content-Disposition: inline X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2021 10:15:46 -0000 --UyKkybJQUYQrOsr1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This macro has been obsolete for years, and C++0x features are no longer experimental or liable to be removed. gcc/ChangeLog: * doc/cpp.texi (Common Predefined Macros): Update documentation for the __GXX_EXPERIMENTAL_CXX0X__ macro. OK for trunk and release branches? --UyKkybJQUYQrOsr1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" commit 67041b36b1c84844acfe6d131cc501faae5027f0 Author: Jonathan Wakely Date: Wed May 19 11:11:11 2021 doc: Update description of __GXX_EXPERIMENTAL_CXX0X__ This macro has been obsolete for years, and C++0x features are no longer experimental or liable to be removed. gcc/ChangeLog: * doc/cpp.texi (Common Predefined Macros): Update documentation for the __GXX_EXPERIMENTAL_CXX0X__ macro. diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 2c109bbc5bd..4b065b651b0 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -2312,11 +2312,13 @@ mechanism based on @code{setjmp} and @code{longjmp} for exception handling. @item __GXX_EXPERIMENTAL_CXX0X__ -This macro is defined when compiling a C++ source file with the option -@option{-std=c++0x} or @option{-std=gnu++0x}. It indicates that some -features likely to be included in C++0x are available. Note that these -features are experimental, and may change or be removed in future -versions of GCC. +This macro is defined when compiling a C++ source file with C++11 features +enabled, i.e., for all C++ language dialects except @option{-std=c++98} +and @option{-std=gnu++98}. This macro is obsolete, but can be used to +detect experimental C++0x features in very old versions of GCC. Since +GCC 4.7.0 the @code{__cplusplus} macro is defined correctly, so most +code should test @code{__cplusplus >= 201103L} instead of using this +macro. @item __GXX_WEAK__ This macro is defined when compiling a C++ source file. It has the --UyKkybJQUYQrOsr1--