From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id E81803858D35 for ; Sat, 1 Jul 2023 21:28:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E81803858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 361KpMWj010984 for ; Sat, 1 Jul 2023 14:28:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=SbMsOv8HaQ5f/jkwngCHsc1dWCWq/z3mCvmpJTgztXo=; b=SYbkis8ytn6+8NBUcYCPr0rkZaxOa7p5mHrRf8nvyLcs+UD06Wktpws7Prx2upj/lR7Q eR1mppcKaQI5q6DNhjwJRYzY4zkNEOWMLv+MG7N0YYdOSW7AN88N5snTHXoRvctTRBnX ojq7SR5X+quzQCrHZn0j2t1FdPvOrKBSkBavRnN7A84qkMaWDCrbyQEMD2wuDUd+PC8x 1xDedSC63BXrxvBQr4GRHi1QRX2Gq5siQE3HlqpYjozWtTbbIhgVgrqcpi7XXfNFqjUH gwBhZ4vOlLeeP462Lh9T6h3NKjqxSRuebUbhbCLZ7HDxkMkV0ZbV0hvkjycjUNn4FTds tQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3rjhgn97h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sat, 01 Jul 2023 14:28:50 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 1 Jul 2023 14:28:49 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sat, 1 Jul 2023 14:28:49 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id A89D73F7048; Sat, 1 Jul 2023 14:28:48 -0700 (PDT) From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH] Use chain_next on eh_landing_pad_d for GTY (PR middle-end/110510) Date: Sat, 1 Jul 2023 14:28:40 -0700 Message-ID: <20230701212840.330022-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: YKUAbjmmovIsW8Xm-wfeUTYJX4tfLkLN X-Proofpoint-GUID: YKUAbjmmovIsW8Xm-wfeUTYJX4tfLkLN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-01_17,2023-06-30_01,2023-05-22_02 X-Spam-Status: No, score=-14.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,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 List-Id: The backtrace in the bug report suggest there is a running out of stack during GC collection, because of a long chain of eh_landing_pad_d. This might fix that by adding chain_next onto eh_landing_pad_d's GTY marker. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR middle-end/110510 * except.h (struct eh_landing_pad_d): Add chain_next GTY. --- gcc/except.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/except.h b/gcc/except.h index 378a9e4cb77..173b0f026db 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -66,7 +66,7 @@ enum eh_region_type /* A landing pad for a given exception region. Any transfer of control from the EH runtime to the function happens at a landing pad. */ -struct GTY(()) eh_landing_pad_d +struct GTY((chain_next("%h.next_lp"))) eh_landing_pad_d { /* The linked list of all landing pads associated with the region. */ struct eh_landing_pad_d *next_lp; -- 2.31.1