From patchwork Tue Jan 30 23:18:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 194386 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1555956dyb; Tue, 30 Jan 2024 15:19:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGV9S+C5U6QKR9ww/oVf0uAMBM1AMz/zOYheYi62E+vsDbMIEiA4rYJ6VrV5huqK89KTxU1 X-Received: by 2002:a25:a289:0:b0:dc2:50b2:842e with SMTP id c9-20020a25a289000000b00dc250b2842emr72218ybi.32.1706656773346; Tue, 30 Jan 2024 15:19:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706656773; cv=pass; d=google.com; s=arc-20160816; b=JU1n6AXrqjT5YvrpZMBqO9qv1v0g+m+pZ66UcKe1itWVioGQCexcMiSVVT1AdSjwA8 2kM3mvfcvXIZpt0kzzNnEd0EljGJ3cnQyIYn80qBDpXzrkQ0u4+ulTRnO1TW5Du35gUg jftw+x+uzBKvgNTYopsWK+1Yq0DY06yTs2GiHRZp9+ND1RaCkNFzmPAATANgYJJneH6N OV2HK6CDf9SxCPMEZuFBjhRwUduiMei4QK9fcLtDrioxjV501yYTB46DXPhMzwdAOaBV ZqPR/UdZLp2MWYjx8aLf8BvwfcRsFpZqg+Tu5z1ZWgfIL78GeFGsVcsT91lmGSY9Ul97 chBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=vklvXY4jxlB3XKoC9Y6yiNRDwoburwxIo+8cAUYanbI=; fh=gzVUTHl2BSkhwdoq/Qv/tatTOq304UcuJRKuCVRmqio=; b=XELoHIXBs9YeiupPOf73LwmAZ17nO6+d2P7AKqXwt51kdwd/YA/wRJQ1tVPQ2FGaE6 LOSAqxCRO6t7HphOAEZ7O3GpRYkZmmGRNVZ519EPGS9jPC/jTO5Yh1jk4QGhdROpgOQ9 CNzlo5SdkpgPc6tGZHmoBj9J1FgDK+OfJf3ZKl1RA7hJd7XQsqV5TaaP4OHojQM5OPwm H+oJDVdL1cTntVW5wnRmWd9QYOdtQcyUdpxpx2hXPVzLPBW751Q9URLRdoXZZno5qNtl Nmty1BfqsIXneItM5eRvPmWUyr0aQ1+esc9IGPrS8zg7BQGkQuCKX51qr0adA8nuMGQW HGdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yy9HVKgu; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCUDksMnp69E/C7TfHy+9xDCz8ad9sKkW3nVLZp0vrDf86L7/RcXhBU1z+hA1p9d99slJRMWFxyvtPy9h2z31scZpWTXow== Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fv8-20020a056214240800b0067ebf3c2041si2887684qvb.355.2024.01.30.15.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:19:33 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yy9HVKgu; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 131743858413 for ; Tue, 30 Jan 2024 23:19:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 3CC0D3858C5E for ; Tue, 30 Jan 2024 23:18:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3CC0D3858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3CC0D3858C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706656730; cv=none; b=jsKHefiKSgwTSEOO8auZ5zu0hToG/1mLtsiTa1jJ0V/GntZcjSzV6qx0WgTPV4e9aEXh1iM75OJ2ZHJManBA82YvqsoMc1YxHb+7iFssUqWTHIPqLj3KKzK6gKHYL5g/czH0rS6qnrWeuHAVXaxVoDlQxl9Xb0i46B2yiEH5bbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706656730; c=relaxed/simple; bh=e1H7BerjbcijOl36KB/NOwR/OpTAQMf6Zhi1n77OUfM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BmLXJpe/H5eORweGbt3AsxZw7MSoN/zrl6KQ6BZ9Qr7ea27oUKBSDDKL0LKjpdo00Tn/+NMeivBfWoj8MqqMlmIJGmE7l+XU4AZqQM3l/T6OtE/NueNGKg8zZagTv1J6Q21CAZKWrPYXFgMQHxZgWzVMspXcNZHSLewGdyt8l2A= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706656727; 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=vklvXY4jxlB3XKoC9Y6yiNRDwoburwxIo+8cAUYanbI=; b=Yy9HVKguTeHvzW+aAnXd81qbb3qm7ObCtV+23OLTeNnG8LiXzeFnapCFlVbkWjHyt6MlL9 zhuDgKLdnVfE/y6zZLrntyHcmEsLIE2NReVXMOO2GLoWO4HZgcqkPVMt0l61lWQ4MyqXLg WYMbX/yzbFkRJNejMmn5RZz1vfYSNcg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-546-0yTCVnBUMA2qh3o1tIC-lw-1; Tue, 30 Jan 2024 18:18:46 -0500 X-MC-Unique: 0yTCVnBUMA2qh3o1tIC-lw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DE852185A785 for ; Tue, 30 Jan 2024 23:18:45 +0000 (UTC) Received: from pdp-11.lan (unknown [10.22.9.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id C3DA8111E8; Tue, 30 Jan 2024 23:18:45 +0000 (UTC) From: Marek Polacek To: GCC Patches , Jason Merrill Subject: [PATCH] c++: add deprecation notice for -fconcepts-ts Date: Tue, 30 Jan 2024 18:18:41 -0500 Message-ID: <20240130231841.418861-1-polacek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.6 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_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789559332775431438 X-GMAIL-MSGID: 1789559332775431438 Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- We plan to deprecate -fconcepts-ts in GCC 15 and remove the flag_concepts_ts code. This note is an admonishing reminder to convert the Concepts TS code to C++20 Concepts. gcc/c-family/ChangeLog: * c-opts.cc (c_common_post_options): Add an inform saying that -fconcepts-ts will be deprecated in GCC 15. --- gcc/c-family/c-opts.cc | 5 +++++ 1 file changed, 5 insertions(+) base-commit: f2061b2a9641c2228d4e2d86f19532ad7e93d627 diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc index b38a1225ac4..4cb69c6aefc 100644 --- a/gcc/c-family/c-opts.cc +++ b/gcc/c-family/c-opts.cc @@ -1139,6 +1139,11 @@ c_common_post_options (const char **pfilename) if (cxx_dialect >= cxx20 || flag_concepts_ts) flag_concepts = 1; + /* -fconcepts-ts will be deprecated in GCC 15. */ + if (flag_concepts_ts) + inform (input_location, "%<-fconcepts-ts%> will be deprecated in GCC 15; " + "please convert your code to C++20 concepts"); + /* -fimmediate-escalation has no effect when immediate functions are not supported. */ if (flag_immediate_escalation && cxx_dialect < cxx20)