aarch64: Reword error message for mismatch guard size and probing interval [PR90155]
Message ID | 20240213232232.26225-1-quic_apinski@quicinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp866335dyb; Tue, 13 Feb 2024 15:23:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVnSQbQqgRA8ymrnJaYka+V+ewk3FcAor2MMoVwzf8q3l8xj60NiEn9nXJ46CRmggkoGkbQg+rWEAKhVapCZ8zML9XWgA== X-Google-Smtp-Source: AGHT+IEwjmhq+OvE45y1VYzr72foSsuLllUr6gGYHfH8mP3ngooxQMWhW4/xRPWl6I88bWqql8TS X-Received: by 2002:a05:6102:e0a:b0:46d:20cd:fa2e with SMTP id o10-20020a0561020e0a00b0046d20cdfa2emr1164540vst.13.1707866619952; Tue, 13 Feb 2024 15:23:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707866619; cv=pass; d=google.com; s=arc-20160816; b=AKNSbrZRgrY0R/+t3WqI9BJWaSbqI7C6P7MN/gHu/tGerfnTGpJkPeWc/XmUbLNrQj K0jCFDXUrSSpwAuBRpoOlok0ILtkHa0CvxCYMvvNrCemmFdP45Gl7+o0JnEMtuEtnQZW QUiZ5kO/xie/um6lCTo997Mqbzw1xUGVAm8uKXCGcQwyfvnpVy25xWhkuW+N/ZBgcACD zwJ0q+VvV7x1D1flbWa+ry8jR/x7BWTEkvAq194k4/dviKZp1piWhgLMlQ56tTahVGCC QerMU6opD/K+61MM5Ik3ftY9UuQi7suZelCqW2qWlBvpfQ2Wezl707/XRm7hv/jL+6oE zcWw== 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:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=72spaZ8m5842wYfogUmIR0BpJ+OWoq5Sor95zAnbiSM=; fh=4dOSNmj93lZG28M+P2gN5h0yVv/TJaJlmF4APZOm1uQ=; b=yLB2E2+EqLQo5f4c5gsunyxpvXniPaNzsIfsZOa/gLnchcpeiKvZnFi5NKl4C4rxMQ qprIYGLzrIEDdgXrEgQ5ZLJAMFDwSEr/1EG5sG44kQT3MSZn2tELekAraz8sbQJNDHDD KNfmvxysHWyxtKpr2embrzDcezbsaDoQXN15Vk38M7HTRrFWWuG5Mk04VR7nIWtkf4ou +eQ4xn7B1H7alcTAJkp3kh+gAv7H4uF+dRMYiRuDmjDGjYeNActwIT0Wed/JvsdAIA3g ILkTfiXQcOvQDwTKVt7AVKWe41yWkK1PuNe248mEdLbY00IDXnB+vlwqo879izU0b9Q1 VZyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mM0pePyr; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCXi+W7Dzy0CGxSTSpG4PcSXwpyWFgUpntf8odC0nmPHifGOWQMRFH8xIEb856FIDPr7A1pswUPAZrU6099aLGCmc0NUDg== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d20-20020a05620a205400b00785be4c2585si8953034qka.269.2024.02.13.15.23.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:23:39 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mM0pePyr; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E1423857701 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 23:23:39 +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 65C223857B98 for <gcc-patches@gcc.gnu.org>; Tue, 13 Feb 2024 23:22:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65C223857B98 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 65C223857B98 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=1707866568; cv=none; b=pHGl4aCWnB80EskrxV1zhsZliAAxzMB4OXaZ6k6rnpo+fR2f6BGFUHKCp+LFgnnVrX6MHOLwau5kSqj7hcEePlDpr/Li2nD9/6kEzvs+T5q+7F9qvNeeO+BAn+Yqd61sonHUwrcgKqBOmfCxTK+5M8ug3kukJp+EoArVoL78NPo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707866568; c=relaxed/simple; bh=K9NvKIgy+LqveuPO97EYl8itRwveYzJoaj3QOWNzKF0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AdbdrCi0E3tNj98JJUL8/njtZTjPSxrkpeNCkjpKMKK+UmqyL8ffn1NFoIZ7wNr4I59UJYOmypdiOvkMXkfGmiaYA6OAzVwMcVy/HVO6c5cSqRB0m2HdzxSd6lj16RDvVdZIIOafHV8VzF0FZgz/NiBtkJZ6BgiY+XTB6qXfWa8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41DNLe8s002367 for <gcc-patches@gcc.gnu.org>; Tue, 13 Feb 2024 23:22:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=72spaZ8 m5842wYfogUmIR0BpJ+OWoq5Sor95zAnbiSM=; b=mM0pePyrweYvFtg/LVzL0SS mbt0qJVDy7/5St+ZDyug+KcQZghlBLXDXPdCrSep+tqQsq7XzkAy7bGbcSBn8UCo I6JIsnEiKxhhCR7UCpOLZlqhkCqflhylngPQT4/L78owebGdRMdNbb8H9/jAmGZQ 7cL4tQSHnBJl029YmsfMjfOLoqvgYMfqzjKB/GhgkZ0ORyxEJocLrGNHorAd7tW0 FdatfHZep+fr5iD9xa3DEJd9zpVcpRn5wFyFNfqIl2nuhknIya0CUkPGTg5YLmiT 0MD1cH44uJ2YNnv9CipV+7nIcliZFDb5cAojLqtCN0mVlVot95iUPyGfjwAT6zA= = Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w7gse46px-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Tue, 13 Feb 2024 23:22:45 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41DNMiAF032289 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Tue, 13 Feb 2024 23:22:44 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.1118.40; Tue, 13 Feb 2024 15:22:44 -0800 From: Andrew Pinski <quic_apinski@quicinc.com> To: <gcc-patches@gcc.gnu.org> CC: Andrew Pinski <quic_apinski@quicinc.com> Subject: [PATCH] aarch64: Reword error message for mismatch guard size and probing interval [PR90155] Date: Tue, 13 Feb 2024 15:22:32 -0800 Message-ID: <20240213232232.26225-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: qh3R2l5d94u8xxWfwQf7DdtFGmX6_p90 X-Proofpoint-ORIG-GUID: qh3R2l5d94u8xxWfwQf7DdtFGmX6_p90 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-13_15,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1015 phishscore=0 malwarescore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402130183 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, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790827949129619472 X-GMAIL-MSGID: 1790827949129619472 |
Series |
aarch64: Reword error message for mismatch guard size and probing interval [PR90155]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Andrew Pinski (QUIC)
Feb. 13, 2024, 11:22 p.m. UTC
The error message is not clear what options are being taked about when it says the values
need to match; plus there is a wrong quotation dealing with the diagnostic.
So this changes the error message to be exactly talking about the param options that
are being taked about and now with the options, it needs the quoting.
OK? Built and tested for aarch64-linux-gnu.
gcc/ChangeLog:
* config/aarch64/aarch64.cc (aarch64_override_options_internal): Fix
error message for mismatch guard size and probing interval.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
gcc/config/aarch64/aarch64.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Comments
Andrew Pinski <quic_apinski@quicinc.com> writes: > The error message is not clear what options are being taked about when it says the values > need to match; plus there is a wrong quotation dealing with the diagnostic. > So this changes the error message to be exactly talking about the param options that > are being taked about and now with the options, it needs the quoting. > > OK? Built and tested for aarch64-linux-gnu. > > gcc/ChangeLog: > > * config/aarch64/aarch64.cc (aarch64_override_options_internal): Fix > error message for mismatch guard size and probing interval. > > Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com> > --- > gcc/config/aarch64/aarch64.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc > index 32eae49d4e9..2da743469ae 100644 > --- a/gcc/config/aarch64/aarch64.cc > +++ b/gcc/config/aarch64/aarch64.cc > @@ -18334,7 +18334,7 @@ aarch64_override_options_internal (struct gcc_options *opts) > "size. Given value %d (%llu KB) is out of range", > guard_size, (1ULL << guard_size) / 1024ULL); > > - /* Enforce that interval is the same size as size so the mid-end does the > + /* Enforce that interval is the same size as size so the middle-end does the > right thing. */ > SET_OPTION_IF_UNSET (opts, &global_options_set, > param_stack_clash_protection_probe_interval, Not sure about this. Aren't both valid? > @@ -18346,8 +18346,8 @@ aarch64_override_options_internal (struct gcc_options *opts) > int probe_interval > = param_stack_clash_protection_probe_interval; > if (guard_size != probe_interval) > - error ("stack clash guard size %<%d%> must be equal to probing interval " > - "%<%d%>", guard_size, probe_interval); > + error ("%<--param stack-clash-protection-probe-interval=%d%> needs to match " > + "%<--param stack-clash-protection-guard-size=%d%>", probe_interval, guard_size); I suppose both versions are still saying something like "4096 must equal 16384". So since you've brought up the bike shed, how about: "%<--param stack-clash-protection-probe-interval%> value %d does not " "match %<--param stack-clash-protection-guard-size%> value %d" or s/does not match/is not equal to/ OK for this hunk with either of those suggestions if you agree, but I'm open to other suggestions too... Thanks, Richard
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 32eae49d4e9..2da743469ae 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -18334,7 +18334,7 @@ aarch64_override_options_internal (struct gcc_options *opts) "size. Given value %d (%llu KB) is out of range", guard_size, (1ULL << guard_size) / 1024ULL); - /* Enforce that interval is the same size as size so the mid-end does the + /* Enforce that interval is the same size as size so the middle-end does the right thing. */ SET_OPTION_IF_UNSET (opts, &global_options_set, param_stack_clash_protection_probe_interval, @@ -18346,8 +18346,8 @@ aarch64_override_options_internal (struct gcc_options *opts) int probe_interval = param_stack_clash_protection_probe_interval; if (guard_size != probe_interval) - error ("stack clash guard size %<%d%> must be equal to probing interval " - "%<%d%>", guard_size, probe_interval); + error ("%<--param stack-clash-protection-probe-interval=%d%> needs to match " + "%<--param stack-clash-protection-guard-size=%d%>", probe_interval, guard_size); /* Enable sw prefetching at specified optimization level for CPUS that have prefetch. Lower optimization level threshold by 1