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: 85052 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 41EF43858295 for ; Tue, 30 Jan 2024 23:19:17 +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+patchwork=sourceware.org@gcc.gnu.org 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)