From patchwork Sat Feb 29 20:05:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1247134 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-520406-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=yX4Q4cnF; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Trs1Hb+K; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48VHTc1Bjlz9sP7 for ; Sun, 1 Mar 2020 07:05:53 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=GgzAz01I0/zanOBF xCAXAgjjMI/+rPs80hEcWgT8rl5qSNfMzOkKtEYJONjK7rm33bkAzAvqO2sCqfkk ihKlHs9poOBCwOVJxb0daTkML6hln+o46lrM4Evp4F3NhD16/UBJzRtDDXBmrwDe HrPhTzQUB3d4/rP7NB2sMYdLn/Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=8ODgholtEcLkR3dSJfuZ99 0IeuY=; b=yX4Q4cnF2xIc5nmwtT480szDA5g4MLPSHmqcqNg/Ru7/RR5aPhQiIN Zz+A3UT/oAOuKBgi8c5DKRUsPV7DV9Gbn/Lx7AiFFyjQH7BJKYivcVfcI9c3+ODE HDdpNqMM+AkDYiCqzIkloiHC29FhH3iAwoO84iV4242VgIxptXN+0= Received: (qmail 125827 invoked by alias); 29 Feb 2020 20:05:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 125816 invoked by uid 89); 29 Feb 2020 20:05:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=93958 X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Feb 2020 20:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583006741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E6FjiNUAtnjnhgg5RE8uLawS6DsICDXUTjnN7A6bRUg=; b=Trs1Hb+KDNCh5JpbmOjt7xBbtLonkGN6VpHN4Tf1Ec2jesU8ABJsDih6hqQpIojAMhxjZ3 Mn+C1h8rlPemV1zhE5dg9UEkJFw9KhIsa2o8afQWtLNE76Waa7Qx45G/Q+V0cD5dZfVKzp wcDUCIoANPjSJWoVMqBdBUAcUXDXTWA= 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-38-t8Y94okHOPWcYkNT8bapnw-1; Sat, 29 Feb 2020 15:05:40 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43F498017CC for ; Sat, 29 Feb 2020 20:05:39 +0000 (UTC) Received: from pdp-11.redhat.com (ovpn-118-10.phx2.redhat.com [10.3.118.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id D55C81001DF2; Sat, 29 Feb 2020 20:05:38 +0000 (UTC) From: Marek Polacek To: GCC Patches , Jason Merrill Subject: [PATCH] c++: Add -std=gnu++20 option [PR93958] Date: Sat, 29 Feb 2020 15:05:37 -0500 Message-Id: <20200229200537.863798-1-polacek@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com One missing bit from r10-6656. The docs and target-supports.exp already handle -std=gnu++20. Ok? 2020-02-29 Marek Polacek PR c++/93958 - add missing -std=gnu++20. * c.opt: Add -std=gnu++20. --- gcc/c-family/c.opt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) base-commit: 38b1722d5d44c52e06a8694b8fa36793735e27d1 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index b7e4fe146b2..1cd585fa71d 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -2149,7 +2149,11 @@ Conform to the ISO 2017 C++ standard with GNU extensions. std=gnu++2a C++ ObjC++ -Conform to the ISO 2020(?) C++ draft standard with GNU extensions (experimental and incomplete support). +Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support). + +std=gnu++20 +C++ ObjC++ Alias(std=gnu++2a) +Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support). std=gnu11 C ObjC