From patchwork Thu Jan 22 20:39:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 431995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 64ACA14015A for ; Fri, 23 Jan 2015 07:40:09 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=Rn+UjxbNeGlsZk9fzw6wCz5RcW65naWlfAr0mMJreYG DxphR2YNrbsIXHlAqIa5jbLKo3WhdD8rpr1r/ooxAEkBYXstADwBs+z+T2XRGF7N oYmvAw7YBK7dLllFnFRccUoC4ZaECBaiQwDseEH56q4GSIBhu61uJjS39+mtNDyM = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=V1kol6r/XCOb8+CEd7SGvIhQRyY=; b=rFt5pKw5mfFSe2Fcu e/qkIeYH+FssN0fL7IiHaXwJ/6sA5rwZZweWcgdvlj1L6/xlIILRhHlxAw7fWdDm JVn2JJ0o2D2H0Z67uIFrcgs5CspsKf0Aia3wO5vgLlO/PqxwMPzzEFLjeih6Z3+E 06ifYFAVT9+Njs6Blml1EZsEmI= Received: (qmail 14470 invoked by alias); 22 Jan 2015 20:39:50 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 14317 invoked by uid 89); 22 Jan 2015 20:39:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_00, FUZZY_PRICES, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 22 Jan 2015 20:39:48 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0MKdkuq014986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 22 Jan 2015 15:39:46 -0500 Received: from tucnak.zalov.cz (ovpn-116-98.ams2.redhat.com [10.36.116.98]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0MKdjA8008371 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 22 Jan 2015 15:39:46 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t0MKdiV0013285 for ; Thu, 22 Jan 2015 21:39:44 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t0MKdhWs013284 for gcc-patches@gcc.gnu.org; Thu, 22 Jan 2015 21:39:43 +0100 Date: Thu, 22 Jan 2015 21:39:43 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [PATCH] Use chain_next on struct dw_loc_descr_node for GTY (PR debug/64511) Message-ID: <20150122203943.GL1746@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes Hi! The latest testcase from the PR ICEs on running out of stack during GC collection, because we have a long chain of dw_loc_descr_nodes. Am not adding the testcase to the testsuite because it looks too costly. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2015-01-22 Jakub Jelinek PR debug/64511 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next GTY markup. Jakub --- gcc/dwarf2out.h.jj 2015-01-05 13:07:14.000000000 +0100 +++ gcc/dwarf2out.h 2015-01-22 14:58:52.448204612 +0100 @@ -205,7 +205,7 @@ struct GTY(()) dw_val_node { /* Locations in memory are described using a sequence of stack machine operations. */ -struct GTY(()) dw_loc_descr_node { +struct GTY((chain_next ("%h.dw_loc_next"))) dw_loc_descr_node { dw_loc_descr_ref dw_loc_next; ENUM_BITFIELD (dwarf_location_atom) dw_loc_opc : 8; /* Used to distinguish DW_OP_addr with a direct symbol relocation