Skip to content

Commit 2246e31

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've been relying on the solaris_sparc.s code instead. Rip it out. (Not back-patched, since this is just cosmetic cleanup.)
1 parent ce84b24 commit 2246e31

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-
static void
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy