From patchwork Mon Jul 25 03:23:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 106604 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]) by ozlabs.org (Postfix) with SMTP id B0632B6F7F for ; Mon, 25 Jul 2011 13:23:57 +1000 (EST) Received: (qmail 8327 invoked by alias); 25 Jul 2011 03:23:56 -0000 Received: (qmail 8319 invoked by uid 22791); 25 Jul 2011 03:23:55 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jul 2011 03:23:35 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6P3NYsE030127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 24 Jul 2011 23:23:34 -0400 Received: from pebble.twiddle.home (vpn-226-63.phx2.redhat.com [10.3.226.63]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6P3NY54003118 for ; Sun, 24 Jul 2011 23:23:34 -0400 Message-ID: <4E2CE1B5.8060902@redhat.com> Date: Sun, 24 Jul 2011 20:23:33 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11 MIME-Version: 1.0 To: GCC Patches Subject: Fix debug/49827 X-IsSubscribed: yes 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 This fixes the examples given in the PR building libgcc for Sparc and CRIS. A full bootstrap on sparc64-linux is underway, but it'll take some time to complete. In the meantime it's well past the stage1 failure. Just a silly oversight in processing sequences, after having copied the code from pre-delay-slot make_edges. r~ PR debug/49827 * dwarf2cfi.c (create_trace_edges): Handle sequences properly. diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c index fd5f680..9e64de6 100644 --- a/gcc/dwarf2cfi.c +++ b/gcc/dwarf2cfi.c @@ -2507,6 +2507,14 @@ create_trace_edges (rtx insn) for (lab = nonlocal_goto_handler_labels; lab; lab = XEXP (lab, 1)) maybe_record_trace_start (XEXP (lab, 0), insn, true); } + else if (GET_CODE (PATTERN (insn)) == SEQUENCE) + { + rtx seq = PATTERN (insn); + int i, n = XVECLEN (seq, 0); + for (i = 0; i < n; ++i) + create_trace_edges (XVECEXP (seq, 0, i)); + return; + } /* Process EH edges. */ if (CALL_P (insn) || cfun->can_throw_non_call_exceptions)