s_lock.h problem on S/Linux

Keith Parks <emkxp01@mtcc.demon.co.uk>

From: Keith Parks <emkxp01@mtcc.demon.co.uk>
To: hackers@postgresql.org
Date: 1998-06-20T13:06:30Z
Lists: pgsql-hackers
Hi hackers.

I am having problems with the new spinlock code on the SPARC linux
platform. (Latest CVSup)

The compiler doesn't seem to like the "asm" part of s_lock.h for (sparc)

Here's one of the compiles that fails.

make[3]: Entering directory `/usr/local/pgsql/src/backend/storage/ipc'
gcc -I../../../include -I../../../backend   -O2  -Wall -Wmissing-prototypes 
-I../..   -c spin.c -o spin.o
../../../include/storage/s_lock.h: In function `SpinAcquire':
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
../../../include/storage/s_lock.h: In function `SpinRelease':
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an 
`asm'
make[3]: *** [spin.o] Error 1      

Th ccsym information may be useful.

[postgres@sparclinux pgsql]$ src/tools/ccsym
__GNUC__=2
__GNUC_MINOR__=7
__ELF__
unix
sparc
linux
__ELF__
__unix__
__sparc__
__linux__
__unix
__sparc
__linux
system=unix
system=posix
cpu=sparc
machine=sparc
[postgres@sparclinux pgsql]$

Keith.