diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-12 16:50:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-12 16:50:52 +0000 |
commit | 2246e31775b93fbeaf93dfc356dff62973784ee2 (patch) | |
tree | 987ef2a85b8b56efd5712954dcd126f505a59712 /src | |
parent | ce84b24c4850c7dfca90b0b5133947f34f7d8f4f (diff) | |
download | postgresql-2246e31775b93fbeaf93dfc356dff62973784ee2.tar.gz postgresql-2246e31775b93fbeaf93dfc356dff62973784ee2.zip |
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.)
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/lmgr/s_lock.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c index 7f962144522..76909050414 100644 --- a/src/backend/storage/lmgr/s_lock.c +++ b/src/backend/storage/lmgr/s_lock.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.44 2006/05/11 21:58:22 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.45 2006/05/12 16:50:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -282,25 +282,6 @@ tas_dummy() /* really means: extern int tas(slock_t } #endif /* sun3 */ - -#if defined(__sparc__) || defined(__sparc) -/* - * sparc machines not using gcc - */ -static void -tas_dummy() /* really means: extern int tas(slock_t - * *lock); */ -{ - asm("_tas:"); - - /* - * Sparc atomic test and set (sparc calls it "atomic load-store") - */ - asm("ldstub [%r8], %r8"); - asm("retl"); - asm("nop"); -} -#endif /* __sparc || __sparc__ */ #endif /* not __GNUC__ */ #endif /* HAVE_SPINLOCKS */ |