Skip site navigation (1) Skip section navigation (2)

Sun inline assembler ...

From: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Sun inline assembler ...
Date: 2005-07-07 14:53:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
I have some minor troubles when using the Sun Compiler 9 on Solaris 9.
The spinlock assembler code is somehow broken for Solaris 9 and Solaris 
10 (it works for Sun CC 8).

The following patch fixes this:

[hs(at)localhost postgresql-8.0.1]$ cd src/backend/storage/lmgr/
[hs(at)localhost lmgr]$ diff s_lock.c /tmp/fixed_s_lock.c
<       asm(".section \"data\"");
<       asm(".section \"text\"");
 >       asm(".seg \"data\"");
 >       asm(".seg \"text\"");

Can other folks build on Sun Studio 9? How would GCC treat that patch?
Did anybody encounter similar problems?

	Best regards,



pgsql-bugs by date

Next:From: Michael FuhrDate: 2005-07-07 15:08:36
Subject: Re: Sun inline assembler ...
Previous:From: Boris SukholitkoDate: 2005-07-07 14:08:47
Subject: BUG #1759: domain check constraint ignored in prepared statement

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group