From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20504 invoked by alias); 5 Jun 2008 22:41:22 -0000 Received: (qmail 20473 invoked by uid 22791); 5 Jun 2008 22:41:19 -0000 X-Spam-Check-By: sourceware.org Received: from slate.cs.rochester.edu (HELO slate.cs.rochester.edu) (192.5.53.101) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 05 Jun 2008 22:41:00 +0000 Received: from core2.local (cycle1.cs.rochester.edu [128.151.67.99]) by slate.cs.rochester.edu (8.13.8/8.13.8) with ESMTP id m55MevMn004238; Thu, 5 Jun 2008 18:40:58 -0400 Message-ID: <48486B79.7090404@cs.rochester.edu> Date: Thu, 05 Jun 2008 22:41:00 -0000 From: Luke Dalessandro User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: David Edelsohn CC: gcc@gcc.gnu.org Subject: Re: extend gthr-posix.h with rwlock References: <48482A0B.4080609@cs.rochester.edu> <200806051825.m55IPNZe033244@makai.watson.ibm.com> In-Reply-To: <200806051825.m55IPNZe033244@makai.watson.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00132.txt.bz2 David Edelsohn wrote: >>>>>> Luke Dalessandro writes: > > Luke> My problem is that unwind-dw2-fde.c seems to be compiled multiple times during > Luke> a gcc build, and sometimes my additions are found but other times they are > Luke> not. I am rebuilding again (AIX 5.1), and I'll post more information for > Luke> anyone that needs it. > > Luke> In the meantime, is there a how-to anywhere that describes adding or modifying > Luke> gthr.h models in gcc? > > AIX multilibs pthread support. Unlike Linux, AIX does not provide > weak versions of the pthread symbols when operating in single-threaded > mode. AIX uses gthr-aix.h, which includes gthr-posix.h or gthr-single.h > depending on the -pthread option. Thank you, this was indeed the problem. I added the needed stubbs in gthr-single.h and it now compiles fine. Unfortunately there seems to be something wrong with my installation of ld as linking fails with a large number of errors of the form: ld: 0711-252 SEVERE ERROR: File auxiliary symbol entry 1 in object _negdi2_s.o: Field x_offset contains 4. Valid values are between 4 and -1. The object name is being substituted. Unfortunately I have almost no experience with AIX. I'll look for a prebuilt ld that seems newer than mine to see if this helps the problem. Thank you for your help. Luke