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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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