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 F327E9FB0D1 for ; Thu, 11 May 2006 21:26:36 -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 13388-04 for ; Thu, 11 May 2006 21:26:31 -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 C9EEE9FADD1 for ; Thu, 11 May 2006 21:26:29 -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 k4C0QMM8013306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 May 2006 20:26:22 -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 k4C0QL2C007937; Thu, 11 May 2006 20:26:21 -0400 (EDT) Message-ID: <4463D639.3030802@rentec.com> Date: Thu, 11 May 2006 20:26:33 -0400 From: Alan Stange User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 To: Bruce Momjian CC: Tom Lane , pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers References: <200605112316.k4BNGeB17324@candle.pha.pa.us> In-Reply-To: <200605112316.k4BNGeB17324@candle.pha.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by unicorn.rentec.com as k4C0QMM8013306 at Thu May 11 20:26:22 2006 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/22 X-Sequence-Number: 2403 Bruce Momjian wrote: > Tom Lane wrote: > >> Alan Stange writes: >> >>> Tom Lane wrote: >>> >>>> Nobody else has complained of this, so the least you could do is >>>> identify which Solaris version and exactly which compiler you're >>>> talking about. >>>> >>> I just tried building on all of these combinations: >>> >>> Solaris 10: compilers 6.2 and 11 >>> Solaris 9: compilers 8, 9, 10, 11 >>> Solaris 8: compilers 6.2, 9, 11 >>> >>> Postgresql 8.1.3 fails to compile on all of them with --enable-debug >>> >> OK, that's a reasonably convincing sample ;-). Will fix. Thanks >> for the report! >> > > Uh, backend/port/tas/solaris*.s ASM files have "section" like: > > .section ".text" > > Are these OK? I didn't see you report any problems with these. > Without looking at the code (I'm home now) the main difference is that the .s file will somewhere need a .text section. The issue in a .c file is that one is already in the context of a .text section given that one is in the tas_dummy() {} basic block. The .data and .text sections in the embedded asm code is then just confusing the assembler. When the optimizer is turned on, the .sections are possibly relocated, which allows the fbe backend to successfully compute the .size value. I'll remove the _tas: assembler code from the s_lock.c file and test if the code compiles/runs on one or two solaris+compiler combinations. I'll certainly compile on all again just to be sure. -- Alan