Skip to content

Commit 887b5a7

Browse files
committed
Remove NEED_I386_TAS_ASM and just test for compiler defines.
1 parent f66b0ff commit 887b5a7

File tree

9 files changed

+4
-14
lines changed

9 files changed

+4
-14
lines changed

src/backend/storage/lmgr/s_lock.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.18 2003/12/22 23:39:53 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.19 2003/12/23 00:32:06 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -232,9 +232,6 @@ tas_dummy() /* really means: extern int tas(slock_t
232232

233233

234234

235-
#if defined(NEED_I386_TAS_ASM)
236-
/* non gcc i386 based things */
237-
#endif /* NEED_I386_TAS_ASM */
238235
#endif /* not __GNUC__ */
239236

240237

src/include/port/bsdi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if defined(__i386__) || defined(__x86_64__)
2-
#define NEED_I386_TAS_ASM
32
typedef unsigned char slock_t;
43
#endif
54
#if defined(__ia64)

src/include/port/freebsd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if defined(__i386__) || defined(__x86_64__)
2-
#define NEED_I386_TAS_ASM
32
#define HAS_TEST_AND_SET
43
typedef unsigned char slock_t;
54
#endif

src/include/port/netbsd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if defined(__i386__) || defined(__x86_64__)
2-
#define NEED_I386_TAS_ASM
32
#define HAS_TEST_AND_SET
43
typedef unsigned char slock_t;
54
#endif

src/include/port/openbsd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if defined(__i386__) || defined(__x86_64__)
2-
#define NEED_I386_TAS_ASM
32
#define HAS_TEST_AND_SET
43
typedef unsigned char slock_t;
54
#endif

src/include/port/sco.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define SCO_ACCEPT_BUG
33

44
#define HAS_TEST_AND_SET
5-
#define NEED_I386_TAS_ASM
65

76
#define USE_UNIVEL_CC
87

src/include/port/univel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define HAS_TEST_AND_SET
2-
#define NEED_I386_TAS_ASM
32

43
/***************************************
54
* Define this if you are compiling with

src/include/port/unixware.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define HAS_TEST_AND_SET
2-
#define NEED_I386_TAS_ASM
32

43
/* see src/backend/libpq/pqcomm.c */
54
#define SCO_ACCEPT_BUG

src/include/storage/s_lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
6464
* Portions Copyright (c) 1994, Regents of the University of California
6565
*
66-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.118 2003/12/22 23:36:38 momjian Exp $
66+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.119 2003/12/23 00:32:06 momjian Exp $
6767
*
6868
*-------------------------------------------------------------------------
6969
*/
@@ -345,7 +345,7 @@ tas(volatile slock_t *lock)
345345
* All non-gcc inlines
346346
*/
347347

348-
#if defined(NEED_I386_TAS_ASM) && defined(USE_UNIVEL_CC)
348+
#if defined(USE_UNIVEL_CC)
349349
#define TAS(lock) tas(lock)
350350

351351
asm int
@@ -361,7 +361,7 @@ tas(volatile slock_t *s_lock)
361361
popl %ebx
362362
}
363363

364-
#endif /* defined(NEED_I386_TAS_ASM) && defined(USE_UNIVEL_CC) */
364+
#endif /* defined(USE_UNIVEL_CC) */
365365

366366
#endif /* defined(__GNUC__) */
367367

0 commit comments

Comments
 (0)