Sun inline assembler ...

Поиск
Список
Период
Сортировка
От Hans-Jürgen Schönig
Тема Sun inline assembler ...
Дата
Msg-id 42CD41DC.8080705@cybertec.at
обсуждение исходный текст
Ответы Re: Sun inline assembler ...  (Michael Fuhr <mike@fuhr.org>)
Список 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 по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: BUG #1756: PQexec eats huge amounts of memory
Следующее
От: Denis Vlasenko
Дата:
Сообщение: Re: BUG #1756: PQexec eats huge amounts of memory