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 F2DAD9FA42B for ; Fri, 12 May 2006 22:15:42 -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 20087-10 for ; Fri, 12 May 2006 22:15:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from unicorn.rentec.com (unicorn.rentec.com [216.223.240.10]) by postgresql.org (Postfix) with ESMTP id 6E3DD9FA15C for ; Fri, 12 May 2006 22:15:37 -0300 (ADT) Received: from wren.rentec.com (wren [192.5.35.106]) by unicorn.rentec.com (8.13.6/8.12.1) with ESMTP id k4D1FTmL026134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 May 2006 21:15:29 -0400 (EDT) X-Source: non-mednet Received: from [172.16.160.106] (stangesun.rentec.com [172.16.160.106]) by wren.rentec.com (8.13.1/8.12.1) with ESMTP id k4D1FS1N014445; Fri, 12 May 2006 21:15:28 -0400 (EDT) Message-ID: <4465333C.1020700@rentec.com> Date: Fri, 12 May 2006 21:15:40 -0400 From: Alan Stange User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 To: Tom Lane CC: Bruce Momjian , pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers 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> In-Reply-To: <23585.1147469584@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by unicorn.rentec.com as k4D1FTmL026134 at Fri May 12 21:15:29 2006 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/41 X-Sequence-Number: 2422 Tom Lane wrote: > Alan Stange 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