Sun inline assembler ... - Mailing list pgsql-bugs

From Hans-Jürgen Schönig
Subject Sun inline assembler ...
Date
Msg-id 42CD41DC.8080705@cybertec.at
Whole thread Raw
Responses Re: Sun inline assembler ...  (Michael Fuhr <mike@fuhr.org>)
List 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@localhost postgresql-8.0.1]$ cd src/backend/storage/lmgr/
[hs@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



pgsql-bugs by date:

Previous
From: Neil Conway
Date:
Subject: Re: BUG #1756: PQexec eats huge amounts of memory
Next
From: Denis Vlasenko
Date:
Subject: Re: BUG #1756: PQexec eats huge amounts of memory