pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Stange <stange@rentec.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 21:15:40 -0400
Message-ID: <4465333C.1020700@rentec.com> (raw)
In-Reply-To: <23585.1147469584@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>
	<4464F242.5060705@rentec.com>
	<23215.1147466644@sss.pgh.pa.us>
	<4464FA1F.6060805@rentec.com>
	<23585.1147469584@sss.pgh.pa.us>

Tom Lane wrote:
> Alan Stange <stange@rentec.com> writes:
>   
>> Check out the comment and implementation for cas32() in this .il 
>> template file for libc from OpenSolaris:
>>     
>
>   
>> http://cvs.opensolaris.org/source/xref/on/usr/src/lib/libc/sparc/threads/sparc.il
>>     
>
> If you mean
>
>           * When compiling with -xarch=v8, the compiler refuses to
>           * accept the 'cas' instruction, so we encode it in hex below.
>
> I can't say that that impresses me.  It still will fail on v8 chips no?
> What's the point of fooling the compiler if you can't fool the hardware?
I believe the trick here is that Solaris 10 will only run on v9 hardware 
(or the sun4u systems), which all have the instruction.   But the v8 ABI 
"model" doesn't have it.   So, in some sense the ABI doesn't "allow" 
this instruction, but the hardware does, so they can just slam it in 
knowing that it'll work.

-- Alan





view thread (37+ messages)  latest in thread

Message-ID: <4465333C.1020700@rentec.com>
Permalink:  ../4465333C.1020700@rentec.com/
Also on:    postgresql.org/message-id/4465333C.1020700@rentec.com

 · 

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: stange@rentec.com, tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us
  Subject: Re: solaris build problem with Sun compilers
  In-Reply-To: <4465333C.1020700@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> <23055.1147465626@sss.pgh.pa.us> <4464F242.5060705@rentec.com> <23215.1147466644@sss.pgh.pa.us> <4464FA1F.6060805@rentec.com> <23585.1147469584@sss.pgh.pa.us> <4465333C.1020700@rentec.com>

* 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