From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2194 invoked by alias); 22 Feb 2011 20:50:09 -0000 Received: (qmail 2183 invoked by uid 22791); 22 Feb 2011 20:50:08 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail1.thewrittenword.com (HELO mail1.thewrittenword.com) (69.67.212.77) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Feb 2011 20:50:01 +0000 Received: from mail1.il.thewrittenword.com (emma-internal-gw.il.thewrittenword.com [192.168.13.25]) by mail1.thewrittenword.com (Postfix) with ESMTP id A03F05CE8; Tue, 22 Feb 2011 21:13:58 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.4.4 mail1.thewrittenword.com A03F05CE8 Received: from tw.local (unknown [192.168.1.254]) by mail1.il.thewrittenword.com (Postfix) with ESMTP id 48F011175; Tue, 22 Feb 2011 20:49:59 +0000 (UTC) Received: from tw.local (localhost.localdomain [127.0.0.1]) by tw.local (8.14.4/8.14.4) with ESMTP id p1MKnwFM009289; Tue, 22 Feb 2011 14:49:58 -0600 Received: (from pogma@localhost) by tw.local (8.14.4/8.14.4/Submit) id p1MKnwEM009287; Tue, 22 Feb 2011 14:49:58 -0600 Date: Tue, 22 Feb 2011 22:54:00 -0000 From: "Peter O'Gorman" To: Rainer Orth Cc: gcc-help@gcc.gnu.org Subject: Re: -lpthread -lstdc++ crashes on IRIX 6.5 Message-ID: <20110222204958.GO5577@tw.local> References: <20110221181036.GK5577@tw.local> <20110222004912.GL5577@tw.local> <20110222012400.GM5577@tw.local> <20110222201327.GN5577@tw.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00370.txt.bz2 On Tue, Feb 22, 2011 at 09:17:24PM +0100, Rainer Orth wrote: > "Peter O'Gorman" writes: > > > > This patch (for gcc-4.4, but if this is the right way to go, we will > > forward port) works around the issue. Is it the correct approach? Or > > perhaps the problem is specific to our build of gcc-4.4 on IRIX? > > Sorry for chiming in so late: I've been off for an extended weekend. No problem, thanks for replying. > > No, I don't think this is the right approach, but just a hack: if > libstdc++ needs the full/real libpthread to work on IRIX (which I assume > is the case, just as on Tru64 UNIX), it should be linked with it > directly instead of hacking around in the driver. If the library is > properly self-contained (as it should), it doesn't depend on being > linked with g++, but works with the gcc driver as well. That makes sense. Thanks. > Could you file a PR for this issue in the meantime and Cc: me? http://gcc.gnu.org/PR47852 Peter -- Peter O'Gorman pogma@thewrittenword.com