From patchwork Tue Jun 25 04:55:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1951887 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=lCYaE/A9; 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 4W7XZz3Cgqz20Z9 for ; Tue, 25 Jun 2024 14:55:38 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 69CB6386C582 for ; Tue, 25 Jun 2024 04:55:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id E9D3E384608C for ; Tue, 25 Jun 2024 04:55:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E9D3E384608C 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 E9D3E384608C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719291316; cv=none; b=jUMnSYf19DQv6/IXCPR5ciyEuv7rdKGRBd5xu5szIY0tghkPbodlO2bVIZw7rEEHUPX2rnBQwsTlkzUnriDzvTdCCY+YFbASsDeLrfGzwL46dGb+xhwJK00QKP/PkFeBffmcD5uJIsW3mkjfA+9WNqSGy3pmJWIJ0N9AU+Id4ek= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719291316; c=relaxed/simple; bh=G6k4W4GL4LTW4DbTw2U11CLUd7UgQRMtLCwYIrzgLhs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=krstlex0/8x5/lIdiLRIWj7DGzNjLCYipR5yjeoF/warJcCH3ia+W11OQQbdFVJcs0gr13yUguqeWFHCNjNzALIVNNh/YjWpldUFiIhlgNVxXXEHSqMIOMTzgBDqWL5aYaUjRZhL6BwlCW/SaIGgaI2Eqkl0BX0pq1Pj6IzM6pA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OJ0U3P008963 for ; Tue, 25 Jun 2024 04:55:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=SnzL8Ly+boo7pSZ+V07LP/ IG3UE0E1Kski2dDmb8gVA=; b=lCYaE/A9ZJh2kZ86G6QDoRBTrict+ldh1u9f5p I3KIGfqfkB5CaE3Zzb9IDKbeKy3062Y+3bu5I6BlXpHTBbSeadvkINax7cSgcOj9 8K9lx4Ux6V3r1J6vimL/AI/TTafwNomZJ33xa8okjXgKFcpulmSLkgikRttlDCY6 bQqrEXYSZ+zuT0s8Z4bmPO1pIBVM0Pw9A+P6xOn8OwfIJsc8Aq4zHhd+6GlFJya3 WUWSGlObtLfmQkkY+rUC1zxedWno1D1VuCWzU59CH9AS2+5Gdlm/WphGqEff296D aaAwx0xmPt5VobryDXhehw2wHxjd+NXnEvR5xQRTp6WteDxQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ywqcedfy3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Jun 2024 04:55:13 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45P4tCJd004330 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Jun 2024 04:55:12 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; Mon, 24 Jun 2024 21:55:12 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PUSHED] c-family: Add Warning property to Wnrvo option [PR115624] Date: Mon, 24 Jun 2024 21:55:01 -0700 Message-ID: <20240625045501.3810818-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) 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: 6C9nvrP-NMqpirzCYu-xUPxLknE95pXL X-Proofpoint-ORIG-GUID: 6C9nvrP-NMqpirzCYu-xUPxLknE95pXL 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-06-25_01,2024-06-24_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=726 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406250035 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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 This was missing when Wnrvo was added in r14-1594-g2ae5384d457b9c67586de012816dfc71a6943164 . Pushed to the trunk and GCC 14 branch as obvious after a bootstrap/test on x86_64-linux-gnu. gcc/c-family/ChangeLog: PR C++/115624 * c.opt (Wnrvo): Add Warning property. Signed-off-by: Andrew Pinski --- gcc/c-family/c.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index b067369fa7e..864ef4e3b3d 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -1137,7 +1137,7 @@ C ObjC Var(warn_override_init_side_effects) Init(1) Warning Warn about overriding initializers with side effects. Wnrvo -C++ ObjC++ Var(warn_nrvo) +C++ ObjC++ Var(warn_nrvo) Warning Warn if the named return value optimization is not performed although it is allowed. Wpacked-bitfield-compat