From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14136 invoked by alias); 10 Oct 2011 10:33:10 -0000 Received: (qmail 14120 invoked by uid 22791); 10 Oct 2011 10:33:09 -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,TW_BJ,TW_IB 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, 10 Oct 2011 10:32:54 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9AAWptD022958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Oct 2011 06:32:51 -0400 Received: from zebedee.pink (ovpn-113-55.phx2.redhat.com [10.3.113.55]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9AAWmAZ029167; Mon, 10 Oct 2011 06:32:49 -0400 Message-ID: <4E92C9D0.10106@redhat.com> Date: Mon, 10 Oct 2011 10:33:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14 MIME-Version: 1.0 To: Matthias Klose CC: Paul Brook , gcc-patches@gcc.gnu.org, GCC Java , Nicola Pero Subject: Re: [patch] C6X unwinding/exception handling References: <201108041531.58790.paul@codesourcery.com> <201109131348.13087.paul@codesourcery.com> <4E9180F5.3050203@ubuntu.com> In-Reply-To: <4E9180F5.3050203@ubuntu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00002.txt.bz2 On 10/09/2011 12:09 PM, Matthias Klose wrote: > This did break libobjc and libjava on arm-linux-gnueabi. > > libobjc now has an undefined reference to _Unwind_decode_target2, which can be > avoided with > > --- libobjc/exception.c.orig 2011-07-21 15:33:57.000000000 +0000 > +++ libobjc/exception.c 2011-10-09 10:53:12.554940776 +0000 > @@ -182,7 +182,7 @@ > _Unwind_Ptr ptr; > > ptr = (_Unwind_Ptr) (info->TType - (i * 4)); > - ptr = _Unwind_decode_target2 (ptr); > + ptr = _Unwind_decode_typeinfo_ptr (info->ttype_base, (_Unwind_Word) ptr); > > /* NULL ptr means catch-all. Note that if the class is not found, > this will abort the program. */ > > libjava fails to build, the same change doesn't work for libjava/exception.cc, > because the struct lsda_header_info in exception.cc is missing the ttype_base > member. Any suggestions? Is this fixable without backing out Paul Brooks' patch? Andrew.