Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit887b5a7

Browse files
committed
Remove NEED_I386_TAS_ASM and just test for compiler defines.
1 parentf66b0ff commit887b5a7

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-
#defineNEED_I386_TAS_ASM
32
typedefunsignedcharslock_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-
#defineNEED_I386_TAS_ASM
32
#defineHAS_TEST_AND_SET
43
typedefunsignedcharslock_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-
#defineNEED_I386_TAS_ASM
32
#defineHAS_TEST_AND_SET
43
typedefunsignedcharslock_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-
#defineNEED_I386_TAS_ASM
32
#defineHAS_TEST_AND_SET
43
typedefunsignedcharslock_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
#defineSCO_ACCEPT_BUG
33

44
#defineHAS_TEST_AND_SET
5-
#defineNEED_I386_TAS_ASM
65

76
#defineUSE_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
#defineHAS_TEST_AND_SET
2-
#defineNEED_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
#defineHAS_TEST_AND_SET
2-
#defineNEED_I386_TAS_ASM
32

43
/* see src/backend/libpq/pqcomm.c */
54
#defineSCO_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
#defineTAS(lock)tas(lock)
350350

351351
asmint
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp