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

Commit2246e31

Browse files
committed
Upon closer inspection, the sparc code in s_lock.c is dead code, and
always has been, because it's not got any .globl declaration! We'vebeen relying on the solaris_sparc.s code instead. Rip it out.(Not back-patched, since this is just cosmetic cleanup.)
1 parentce84b24 commit2246e31

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

‎src/backend/storage/lmgr/s_lock.c

Lines changed: 1 addition & 20 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.44 2006/05/11 21:58:22 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.45 2006/05/12 16:50:52 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -282,25 +282,6 @@ tas_dummy()/* really means: extern int tas(slock_t
282282
}
283283
#endif/* sun3 */
284284

285-
286-
#if defined(__sparc__)|| defined(__sparc)
287-
/*
288-
* sparc machines not using gcc
289-
*/
290-
staticvoid
291-
tas_dummy()/* really means: extern int tas(slock_t
292-
* *lock); */
293-
{
294-
asm("_tas:");
295-
296-
/*
297-
* Sparc atomic test and set (sparc calls it "atomic load-store")
298-
*/
299-
asm("ldstub [%r8], %r8");
300-
asm("retl");
301-
asm("nop");
302-
}
303-
#endif/* __sparc || __sparc__ */
304285
#endif/* not __GNUC__ */
305286
#endif/* HAVE_SPINLOCKS */
306287

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp