From patchwork Tue Aug 6 21:27:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1969680 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=W5NNsamM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdmcX3th9z1yfM for ; Wed, 7 Aug 2024 07:27:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 51CFF385B50D for ; Tue, 6 Aug 2024 21:27:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by sourceware.org (Postfix) with ESMTPS id 27C093858C56 for ; Tue, 6 Aug 2024 21:27:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 27C093858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 27C093858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722979649; cv=none; b=rMJh1gv1OPenS9rHMroXN/k+I4oroR1W+gXkwE1TyyppIFYCZ+JfMJAfJq23kZs1nt8qf6oeRk4lVGZ6zIXWlAw4wXrM8Oo0RYHUly39xwRmvqMPqMKFdAO7RGiacMrcWYOTrSk0X2vlE4suHqqqayzo6dSQoGue4DsaC4i0aDY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722979649; c=relaxed/simple; bh=wp24D37+hGeLKwRd4fp+l0/NLwKk78MbCatZyXYBFjg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FzKEL1cxYMPCZksVBWXV+89UtMhT9Lq22i5fOsGuaiMI5I5bBWuLF9l8Fj4xxcWVZfDkrbACBrt4t64KPVJ5AuYIK/LEST0QhyR4++fIJupZaD/4PhuW65e6CLUlvTN0CM51BN+z1dfGMPH4Gk+1CyjuNxgAiBTym47hQ6ufzx4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 476H6Xid023103 for ; Tue, 6 Aug 2024 21:27:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YbwjhiVGj6RvWYAnHGhDc5Ew/zj7cghtEWOK53MbmD8=; b=W5NNsamM/pZYq9hY StjCqH4uXdek4PSQQSThYKgx9zO7GhPntXW0VLskVWWEhV0mbh+te4kwBTu3wIhU 3OP0wcXFSdcSKxfr7aW4Sq1CPk22JtXDqDPmbc3JJuPT41eK9dZvDCd/o+NFqBSJ FFEPPIUpxK+X08lAnJhgZ2u81LrK1Rnano0kG8ljsfe81TcfGRyl8IVYOoTwNKcu t0ZK8G5Z+Gcqe1baaaSRpd3/CJBvWm3bPYdHeLedtXY/Ojw0z3xBpobJ2NpqNu4Q uKW5Qu5fYH3f7MqJ12BdieCVzL9N4ESLGckGW6RlUhIEZdlW79WKZQgeerX4OFkx kaCCzw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40sbvggtc1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 06 Aug 2024 21:27:26 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 476LRPrI010478 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 6 Aug 2024 21:27:25 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 6 Aug 2024 14:27:25 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH 1/5] range: Make range_op_table class final Date: Tue, 6 Aug 2024 14:27:10 -0700 Message-ID: <20240806212714.308434-2-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806212714.308434-1-quic_apinski@quicinc.com> References: <20240806212714.308434-1-quic_apinski@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: i7jamqsELc7n__kbkm-xuMNxWKsw5yFJ X-Proofpoint-ORIG-GUID: i7jamqsELc7n__kbkm-xuMNxWKsw5yFJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-06_17,2024-08-06_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 mlxscore=0 mlxlogscore=798 adultscore=0 malwarescore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408060150 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Since there will be only one instance of this class alive at any time, it is better to declare this class as final. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * range-op.h (class range_op_table): Declare as a final class. Signed-off-by: Andrew Pinski --- gcc/range-op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/range-op.h b/gcc/range-op.h index e415f87d7e6..8edf967a445 100644 --- a/gcc/range-op.h +++ b/gcc/range-op.h @@ -388,7 +388,7 @@ extern void wi_set_zero_nonzero_bits (tree type, // This implements the range operator tables as local objects. -class range_op_table +class range_op_table final { public: range_op_table ();