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 8EB779F946D for ; Fri, 12 May 2006 18:12:22 -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 43354-09 for ; Fri, 12 May 2006 18:12:12 -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 AEB289FA1B0 for ; Fri, 12 May 2006 18:12:07 -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 k4CLBx1e019557 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 May 2006 17:12:00 -0400 (EDT) X-Source: non-mednet Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by wren.rentec.com (8.13.1/8.12.1) with ESMTP id k4CLBxeD024325; Fri, 12 May 2006 17:11:59 -0400 (EDT) Message-ID: <4464FA1F.6060805@rentec.com> Date: Fri, 12 May 2006 17:11:59 -0400 From: Alan Stange Reply-To: stange@rentec.com Organization: Renaissance Technologies Corp. User-Agent: Mail/News 1.5.0.2 (X11/20060427) 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> In-Reply-To: <23215.1147466644@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 k4CLBx1e019557 at Fri May 12 17:12:00 2006 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/38 X-Sequence-Number: 2419 Tom Lane wrote: > Alan Stange writes: >> This code isn't used by gcc, is it? Or are you thinking to use the same >> assembler segment in the inline function used by gcc? > > The out-of-line .s files aren't used for gcc builds --- what's on the > table here is whether to make the gcc inline assembler in s_lock.h > match up with what's in the out-of-line files. > >> Was there any reason given for the cas patch? > > It appeared to me that the submitter just had a bee in his bonnet about > cas being nicer ;-). There might be something real to it, but AFAIR he > didn't present any hard evidence. Here's one workaround. 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