Re: TAS definitions on Solaris x86 with GCC - Mailing list pgsql-ports

From Michael Crozier
Subject Re: TAS definitions on Solaris x86 with GCC
Date
Msg-id 200509281220.53123.crozierm@conducivetech.com
Whole thread Raw
In response to Re: TAS definitions on Solaris x86 with GCC  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-ports
> Hmmm ... you really shouldn't be using the out-of-line tas.s code for
> gcc-based builds on any common architecture.

Thanks, that answers my questions about which TAS code should be in the build.

Both sets of code will be compiled into any solaris 32bit build, but the
inline code should be the code in use.  When compiling a 64bit build with GCC
on solaris 10 x86, the out-of-line tas.s code will fail to build and tas.s
must therefore be manually linked to dummy.s.

> I think the problem may be
> that the case statement in src/template/solaris is testing for "i?86"
> which probably doesn't match your x86_64 host.

The 7.4 template is not checking for $GCC before linking tas.s, probably
assuming that any solaris host is using SunCC.

8.0.3 & 8.1beta1 check for !GCC before linking to solaris_i386.s, which is
correct.

Thanks for your help.

pgsql-ports by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Postgresql problem in AIX 5.3
Next
From: OpenMacNews
Date:
Subject: portable binary/pkg building on OSX ...