From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: stange@rentec.com
Cc: pgsql-ports@postgresql.org
Subject: Re: solaris build problem with Sun compilers
Date: Thu, 11 May 2006 19:48:08 -0400
Message-ID: <18615.1147391288@sss.pgh.pa.us> (raw)
In-Reply-To: <200605112334.k4BNYIK05104@candle.pha.pa.us>
References: <200605112334.k4BNYIK05104@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, stange@rentec.com
Subject: Re: solaris build problem with Sun compilers
In-Reply-To: <18615.1147391288@sss.pgh.pa.us>
References: <200605112334.k4BNYIK05104@candle.pha.pa.us> <18615.1147391288@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox