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 777A49FA2EB for ; Fri, 12 May 2006 18:33:12 -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 42928-09 for ; Fri, 12 May 2006 18:33:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B5D289F946D for ; Fri, 12 May 2006 18:33:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4CLX4n3023586; Fri, 12 May 2006 17:33:04 -0400 (EDT) To: stange@rentec.com cc: Bruce Momjian , pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers In-reply-to: <4464FA1F.6060805@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> Comments: In-reply-to Alan Stange message dated "Fri, 12 May 2006 17:11:59 -0400" Date: Fri, 12 May 2006 17:33:04 -0400 Message-ID: <23585.1147469584@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/39 X-Sequence-Number: 2420 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? regards, tom lane