From patchwork Sun Oct 16 06:09:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 120014 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 9A93CB71A4 for ; Sun, 16 Oct 2011 19:15:42 +1100 (EST) Received: (qmail 19996 invoked by alias); 16 Oct 2011 08:15:30 -0000 Received: (qmail 19970 invoked by uid 22791); 16 Oct 2011 08:15:25 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_NEUTRAL, TW_IB, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Oct 2011 08:15:11 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFJy4-00038d-UG for gcc-patches@gcc.gnu.org; Sun, 16 Oct 2011 02:13:06 -0400 Received: from mail-yw0-f47.google.com ([209.85.213.47]:56166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFJy4-00038W-Qv for gcc-patches@gcc.gnu.org; Sun, 16 Oct 2011 02:13:04 -0400 Received: by ywf7 with SMTP id 7so3819464ywf.20 for ; Sat, 15 Oct 2011 23:09:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.154.12 with SMTP id g12mr3051985yao.36.1318745365438; Sat, 15 Oct 2011 23:09:25 -0700 (PDT) Received: by 10.147.116.13 with HTTP; Sat, 15 Oct 2011 23:09:25 -0700 (PDT) Date: Sun, 16 Oct 2011 08:09:25 +0200 Message-ID: Subject: [PATCH, alpha]: Fix PR target/50737, FAIL: Throw_3 -O3 execution From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Richard Henderson X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.47 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 Hello! As explained in length in the PR [1], we fail to mark signal frames correctly, leading to the abort in EH support library. As suggested by Eric, attached patch marks fs->signal_frame in the same way as other dwarf2 targets. 2011-10-16 Uros Bizjak Eric Botcazou * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Set fs->signal_frame to 1. Patch was bootstrapped and regression tested on alphaev68-pc-linux-gnu where it fixes all libjava failures [2]. OK for mainline SVN and release branches? [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50737 [2] http://gcc.gnu.org/ml/gcc-testresults/2011-10/msg01333.html Uros. Index: config/alpha/linux-unwind.h =================================================================== --- config/alpha/linux-unwind.h (revision 179788) +++ config/alpha/linux-unwind.h (working copy) @@ -74,5 +74,7 @@ alpha_fallback_frame_state (struct _Unwind_Context fs->regs.reg[64].how = REG_SAVED_OFFSET; fs->regs.reg[64].loc.offset = (long)&sc->sc_pc - new_cfa; fs->retaddr_column = 64; + fs->signal_frame = 1; + return _URC_NO_REASON; }