Re: [BUGS] Sun inline assembler ...

2005-07-29 Thread Bruce Momjian
I have applied the following patch to fix this, hopefully. --- John R Pierce wrote: > 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

Re: [BUGS] Sun inline assembler ...

2005-07-07 Thread John R Pierce
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

Re: [BUGS] Sun inline assembler ...

2005-07-07 Thread Tom Lane
>> 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 -

Re: [BUGS] Sun inline assembler ...

2005-07-07 Thread Hans-Jürgen Schönig
I have seen that. The question is: Gcc seems to get it right ;). In my little world two compiler should handle this the same but I have learned that Sun is in many cases different world ... 1+1 is always 2 - on Sun it could also be 3 ;). hans Michael Fuhr wrote: On Thu, Jul 07, 2005

Re: [BUGS] Sun inline assembler ...

2005-07-07 Thread Michael Fuhr
On Thu, Jul 07, 2005 at 04:53:16PM +0200, Hans-Jürgen Schönig wrote: > 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: > > [EMAIL PRO