pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: stange@rentec.com
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: solaris build problem with Sun compilers
Date: Fri, 12 May 2006 16:27:06 -0400
Message-ID: <23055.1147465626@sss.pgh.pa.us> (raw)
In-Reply-To: <4464EC2D.6080406@rentec.com>
References: <200605112316.k4BNGeB17324@candle.pha.pa.us>
	<4463D639.3030802@rentec.com>
	<4464B653.1040301@rentec.com>
	<5470.1147451501@sss.pgh.pa.us>
	<4464C950.40906@rentec.com>
	<12675.1147457431@sss.pgh.pa.us>
	<4464DAB0.70900@rentec.com>
	<15883.1147460750@sss.pgh.pa.us>
	<4464EC2D.6080406@rentec.com>

Alan Stange <stange@rentec.com> writes:
> - postgresql HEAD when using the Solaris compilers spro9 or newer will 
> only run on v9 based hardware using v8plus or v9 platform.
> - postgresql HEAD when using gcc will run on anything as they generate 
> code for the v7 platform by default and the cas instruction isn't used 
> in any assembler code in postgresql.

I gather from the contents of solaris_sparc.s that the Sun compilers can
be expected to define __sparcv9 if compiling for v9 hardware.  I'm
inclined to #ifdef things so that we use cas if that symbol's defined and
ldstub if not.  I'm not sure if gcc can be expected to define the same
symbol --- we might end up using ldstub always, even if we try to
conditionalize the code for gcc.

Or we could just revert to ldstub.  This seems like a lot of complexity
for a so-far-entirely-hypothetical performance gain ...

			regards, tom lane



view thread (37+ messages)  latest in thread

Message-ID: <23055.1147465626@sss.pgh.pa.us>
Permalink:  ../23055.1147465626@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23055.1147465626@sss.pgh.pa.us

 · 

reply

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, stange@rentec.com, pgman@candle.pha.pa.us
  Subject: Re: solaris build problem with Sun compilers
  In-Reply-To: <23055.1147465626@sss.pgh.pa.us>
  References: <200605112316.k4BNGeB17324@candle.pha.pa.us> <4463D639.3030802@rentec.com> <4464B653.1040301@rentec.com> <5470.1147451501@sss.pgh.pa.us> <4464C950.40906@rentec.com> <12675.1147457431@sss.pgh.pa.us> <4464DAB0.70900@rentec.com> <15883.1147460750@sss.pgh.pa.us> <4464EC2D.6080406@rentec.com> <23055.1147465626@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