![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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\""); |
#2
| |||
| |||
|
|
Here's what I see in REL8_0_STABLE and in HEAD (s_lock.c 1.35): 244 #ifdef SUNOS4_CC 245 asm(".seg \"data\""); 246 asm(".seg \"text\""); 247 #else 248 asm(".section \"data\""); 249 asm(".section \"text\""); 250 #endif |
#3
| |||
| |||
|
|
Here's what I see in REL8_0_STABLE and in HEAD (s_lock.c 1.35): 244 #ifdef SUNOS4_CC 245 asm(".seg \"data\""); 246 asm(".seg \"text\""); 247 #else 248 asm(".section \"data\""); 249 asm(".section \"text\""); 250 #endif I see that template/sunos4 adds -DSUNOS4_CC to CFLAGS, but template/solaris does not. Maybe it should too? I'm not real clear about which platforms each of those templates gets used on. |
#4
| |||
| |||
|
|
Tom Lane wrote: Here's what I see in REL8_0_STABLE and in HEAD (s_lock.c 1.35): 244 #ifdef SUNOS4_CC 245 asm(".seg \"data\""); 246 asm(".seg \"text\""); 247 #else 248 asm(".section \"data\""); 249 asm(".section \"text\""); 250 #endif I see that template/sunos4 adds -DSUNOS4_CC to CFLAGS, but template/solaris does not. Maybe it should too? I'm not real clear about which platforms each of those templates gets used on. as a random reminder for those who don't deal with sun... Solaris is SunOS 5.x, currently 5.9 and now 5.10. To get really confusing, they called it Solaris 2.x up to 2.6 (actually SunOS 5.7), then Solaris 7 was 2.7/5.7 solaris ver sunos ver Solaris 1.3 SunOS 4.3 Solaris 2.5.1 SunOS 5.5.1 Solaris 2.6 SunOS 5.6 Solaris 7 SunOS 5.7 Solaris 8 SunOS 5.8 Solaris 9 SunOS 5.9 this is nearly as bad as Java versioning. Java 1.x Java 2 Java 2.1 Java 2.1.1 -> Java2 release 1.1 Java 2.1.4.2 -> Java2 1.4.2 Java 2.5 -> J2SE 5.0 ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your message can get through to the mailing list cleanly |
![]() |
| Thread Tools | |
| Display Modes | |
| |