X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3F2FA9FADD1 for ; Thu, 11 May 2006 20:48:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 06748-06 for ; Thu, 11 May 2006 20:48:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5C4349FB0D1 for ; Thu, 11 May 2006 20:48:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4BNm8gP018616; Thu, 11 May 2006 19:48:08 -0400 (EDT) To: Bruce Momjian cc: stange@rentec.com, pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers In-reply-to: <200605112334.k4BNYIK05104@candle.pha.pa.us> References: <200605112334.k4BNYIK05104@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 11 May 2006 19:34:18 -0400" Date: Thu, 11 May 2006 19:48:08 -0400 Message-ID: <18615.1147391288@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/21 X-Sequence-Number: 2402 Bruce Momjian writes: > Tom Lane wrote: >> Well, that's an interesting point ... I wonder what the version in >> s_lock.c is used for at all? Maybe it's dead code. > I think the big question is what uses tas_dummy(). I only see it > referenced in s_lock.c. tas_dummy, per se, isn't used at all. Notice it's declared static so it couldn't possibly be referenced from anywhere else. The actually exported symbols are the labels declared in the assembly code. And the thing that is striking is that while the other two tas_dummy asm sections make a point of saying .global or equivalent, there isn't any such declaration in this one. Which is why I'm thinking it's dead code. Unless the sparc assembler has the unlikely convention that symbols are global by default, there's no way to reference this. Alan, could you try removing the __sparc code entirely from s_lock.c and see if it still works on all those Solaris versions? regards, tom lane