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 723A99FA293 for ; Fri, 12 May 2006 15:14:57 -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 21063-03 for ; Fri, 12 May 2006 15:14:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 66D9B9F946D for ; Fri, 12 May 2006 15:14:49 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k4CIEl614655; Fri, 12 May 2006 14:14:47 -0400 (EDT) From: Bruce Momjian Message-Id: <200605121814.k4CIEl614655@candle.pha.pa.us> Subject: Re: solaris build problem with Sun compilers In-Reply-To: <12675.1147457431@sss.pgh.pa.us> To: Tom Lane Date: Fri, 12 May 2006 14:14:47 -0400 (EDT) CC: stange@rentec.com, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/30 X-Sequence-Number: 2411 Tom Lane wrote: > Alan Stange writes: > > Hmmm. I've just been looking at the last snapshot of the HEAD and > > s_lock.h is still using an ldstub instruction instead of a cas for the > > inlined tas() function when gcc is being used. Having a cas > > instruction here would probably be an improvement too, right? > > [ shrug... ] The person who submitted the solaris_sparc.s change failed > to provide any evidence that it was anything but cosmetic, so I didn't > worry about changing the equivalent gcc code. If there's actually a > performance win, please cite chapter and verse. Also, shouldn't we be > worrying about breaking older Sparc chips? Does CAS go all the way > back? I don't think it is a good idea to be using different ASM instructions based for different compilers --- they should be the same. -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +