From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10375 invoked by alias); 23 Mar 2011 19:17:50 -0000 Received: (qmail 10364 invoked by uid 22791); 23 Mar 2011 19:17:49 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_LG,T_RP_MATCHES_RCVD 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; Wed, 23 Mar 2011 19:17:42 +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 p2NJHe5q025569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Mar 2011 15:17:40 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2NJHdij031657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 15:17:40 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p2NJHcF0005359; Wed, 23 Mar 2011 20:17:38 +0100 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p2NJHbst005358; Wed, 23 Mar 2011 20:17:37 +0100 Date: Wed, 23 Mar 2011 19:17:00 -0000 From: Jakub Jelinek To: Richard Henderson Cc: "H.J. Lu" , Ian Lance Taylor , Ulrich Weigand , Andrew Pinski , GCC Patches Subject: Re: PATCH: PR other/48007: Unwind library doesn't work with UNITS_PER_WORD > sizeof (void *) Message-ID: <20110323191737.GR18914@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek References: <201103221930.p2MJUTrr032489@d06av02.portsmouth.uk.ibm.com> <4D8A32EB.6000105@redhat.com> <20110323180437.GP18914@tyan-ft48-01.lab.bos.redhat.com> <4D8A39E8.30204@redhat.com> <20110323183725.GQ18914@tyan-ft48-01.lab.bos.redhat.com> <4D8A4391.9000400@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D8A4391.9000400@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg01541.txt.bz2 On Wed, Mar 23, 2011 at 12:01:37PM -0700, Richard Henderson wrote: > Guh. The entire point of making _Unwind_Context opaque, and inventing libgcc_s, > was so that we didn't have to think about these things. There's one and only one > copy of the unwind library and all uses of the structure are through accessors. > I hate hate hate that I got the export thing wrong at the very beginning. I think the situation now is much better than it used to be when libgcc_s/libgcc_eh was added, at that point there was no --as-needed support and we wanted to avoid linking -lgcc_s into every program when it didn't actually need it. So currently that is mostly compatibility with very old stuff or with people doing weird things (e.g. linking -lgcc_eh in), or with people on less capable targets, or if we were to add new _Unwind_* entrypoints (e.g. _Unwind_GETIPInfo was problematic, as older unwinder implementations didn't have that symbol and thus it could be picked from a different unwinder that had it). Jakub