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: 42CD41DC.8080705@cybertec.at (view raw or flat)
Thread:
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
248,249c248,249
<       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,

		Hans


Responses

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-2014 The PostgreSQL Global Development Group