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