Commit 96ecf9d5 authored by Tom Lane's avatar Tom Lane

Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net

parent ec0e3075
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.33 2004/12/18 22:12:52 momjian Exp $ * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.34 2004/12/29 23:47:38 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -240,8 +240,15 @@ static void ...@@ -240,8 +240,15 @@ static void
tas_dummy() /* really means: extern int tas(slock_t tas_dummy() /* really means: extern int tas(slock_t
* *lock); */ * *lock); */
{ {
#ifdef SUNOS4_CC
asm(".seg \"data\""); asm(".seg \"data\"");
asm(".seg \"text\""); asm(".seg \"text\"");
#else
asm(".section \"data\"");
asm(".section \"text\"");
#endif
asm("_tas:"); asm("_tas:");
/* /*
......
if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode
CFLAGS="-v -DSUNOS4_CC" # -v is like gcc -Wall
if test "$enable_debug" != yes; then
CFLAGS="$CFLAGS -O" # any optimization breaks debug
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment