Message ID | 20240616205542.3616008-1-quic_apinski@quicinc.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=Bnq0aUj1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4W2QKc5M3Cz20Wb for <incoming@patchwork.ozlabs.org>; Mon, 17 Jun 2024 06:56:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E7B7385C6C9 for <incoming@patchwork.ozlabs.org>; Sun, 16 Jun 2024 20:56:16 +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 D414D3858CDA for <gcc-patches@gcc.gnu.org>; Sun, 16 Jun 2024 20:55:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D414D3858CDA 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 D414D3858CDA 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=1718571360; cv=none; b=nA10i91a/GUnWmkq4A0xwgpqf0v/e06Io16CQmvsfGNWF1pbG1wpgKcR4ExQnw9JnIOrgQjhboiiuJYUVVrgkfUDI3AR2m2+zI8TUAvYYcDSB4ovKQVJhPbQo/ezkTPoF0b95pxIzS/pjvd2pOcNl997uoWCa8vn9Aeq4OWUqDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718571360; c=relaxed/simple; bh=jl+RMfb7M/axvAyYKQme9tA14zcdDvJryytDUbKi69g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ezpz9g6cEe4VCHfKEI5s1QVVoghVqxpxWUSsGLucyGrOKa8hoYBmYNbOsMd3XkPUjrrcLVsBr9JWWfo53IXr9PBb9jUQwsyiu7QojXY+TdSfFDI00IZ9sFzdiuY4TGArX6PKZz53Lf20uslMWtxSmsMOLzXD/XPmJOVqb+yzYXI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45GKg8KI016097 for <gcc-patches@gcc.gnu.org>; Sun, 16 Jun 2024 20:55:58 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=EZrZB65H9R4nAWESl9Kn/3 UiRzFlvyJ8H/J8JpJ9Qvw=; b=Bnq0aUj1NW+FaUrw1wjd14BSBZZ7a4A4Ev2L4Z Ayxkyg6UZl9jwweRcbGFscEfXcszNtfM2L/y1vHADMbCMPOH4PQsz/XQT1LRyeRf KfKOA+XhQcJWMOrvDWC3/p926OW/4gHUBJ8bOXmUx0ZcxmKQKCpQuiBQboL+y9LZ 746k1l107frhwE7ihjkfQpkETIDkd89uiWjppnaZSrEApXa4EEnLtuopvL4/S0zh i+BKPP6tGvKvozfB3/t2voDpKcSgTLNsgawIU/yoVrlEFE58KNuu7UeueXJCj67z SoPk8u4RXDNzPWOll5XH56Qn7mJJ/65oqwROjpEAln6XFavQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ys1y6t98t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Sun, 16 Jun 2024 20:55:58 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45GKtvc6023640 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Sun, 16 Jun 2024 20:55:57 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; Sun, 16 Jun 2024 13:55:56 -0700 From: Andrew Pinski <quic_apinski@quicinc.com> To: <gcc-patches@gcc.gnu.org> CC: Andrew Pinski <quic_apinski@quicinc.com> Subject: [PATCH] aarch64: Fix reg_is_wrapped_separately array size [PR100211] Date: Sun, 16 Jun 2024 13:55:42 -0700 Message-ID: <20240616205542.3616008-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: r61W8obQpI---oKWmX8AkSTyR1s3eI2j X-Proofpoint-ORIG-GUID: r61W8obQpI---oKWmX8AkSTyR1s3eI2j 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-16_12,2024-06-14_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 impostorscore=0 mlxscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 mlxlogscore=759 suspectscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406160164 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+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
aarch64: Fix reg_is_wrapped_separately array size [PR100211]
|
expand
|
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 0997b82dbc0..2b89f6f88ef 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -1059,7 +1059,7 @@ typedef struct GTY (()) machine_function { struct aarch64_frame frame; /* One entry for each hard register. */ - bool reg_is_wrapped_separately[LAST_SAVED_REGNUM]; + bool reg_is_wrapped_separately[LAST_SAVED_REGNUM + 1]; /* One entry for each general purpose register. */ rtx call_via[SP_REGNUM];
Currrently the size of the array reg_is_wrapped_separately is LAST_SAVED_REGNUM. But LAST_SAVED_REGNUM could be regno that is being saved. So the size needs to be `LAST_SAVED_REGNUM + 1` like aarch64_frame->reg_offset is. Committed as obvious after a bootstrap/test for aarch64-linux-gnu. gcc/ChangeLog: * config/aarch64/aarch64.h (machine_function): Fix the size of reg_is_wrapped_separately. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com> --- gcc/config/aarch64/aarch64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)