Commit 9114cb1c authored by Bruce Momjian's avatar Bruce Momjian

This applied patch remove NEED_SPARC_TAS_ASM and instead uses __sparc ||

__sparc__.
parent b731d041
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.17 2003/11/29 19:51:57 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.18 2003/12/22 23:39:53 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -208,7 +208,7 @@ tas_dummy() /* really means: extern int tas(slock_t ...@@ -208,7 +208,7 @@ tas_dummy() /* really means: extern int tas(slock_t
#if defined(NEED_SPARC_TAS_ASM) #if defined(__sparc__) || defined(__sparc)
/* /*
* sparc machines not using gcc * sparc machines not using gcc
*/ */
...@@ -227,7 +227,7 @@ tas_dummy() /* really means: extern int tas(slock_t ...@@ -227,7 +227,7 @@ tas_dummy() /* really means: extern int tas(slock_t
asm("retl"); asm("retl");
asm("nop"); asm("nop");
} }
#endif /* NEED_SPARC_TAS_ASM */ #endif /* __sparc || __sparc__ */
......
...@@ -6,7 +6,6 @@ typedef unsigned char slock_t; ...@@ -6,7 +6,6 @@ typedef unsigned char slock_t;
typedef unsigned int slock_t; typedef unsigned int slock_t;
#endif #endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
......
...@@ -10,7 +10,6 @@ typedef unsigned int slock_t; ...@@ -10,7 +10,6 @@ typedef unsigned int slock_t;
#endif #endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
......
...@@ -10,7 +10,6 @@ typedef unsigned int slock_t; ...@@ -10,7 +10,6 @@ typedef unsigned int slock_t;
#endif #endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
......
...@@ -10,7 +10,6 @@ typedef unsigned int slock_t; ...@@ -10,7 +10,6 @@ typedef unsigned int slock_t;
#endif #endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
......
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