summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>1999-08-18 02:17:13 +0000
committersrinivas%netscape.com <devnull@localhost>1999-08-18 02:17:13 +0000
commit003960facf7f619f74385d95a9dcd82f2311f39d (patch)
tree0b66bd169fe7c5a5a0a535f92382fd4e825b5e94
parent408dfa2a4239eddfdd151951ab374d556461edf7 (diff)
downloadnspr-hg-003960facf7f619f74385d95a9dcd82f2311f39d.tar.gz
Inlcude the assembly language implementation of the stack operations only when
_PR_HAVE_ATOMIC_CAS is defined. Bugzilla #11576.
-rw-r--r--config/SunOS5.mk1
-rw-r--r--pr/src/md/unix/os_SunOS_x86.s2
2 files changed, 3 insertions, 0 deletions
diff --git a/config/SunOS5.mk b/config/SunOS5.mk
index 557376b3..cf244de2 100644
--- a/config/SunOS5.mk
+++ b/config/SunOS5.mk
@@ -54,6 +54,7 @@ endif
ifdef NS_USE_GCC
CC = gcc -Wall
CCC = g++ -Wall
+ASFLAGS += -Wa,-P
COMPILER_TAG = _gcc
ifdef NO_MDUPDATE
OS_CFLAGS = $(NOMD_OS_CFLAGS)
diff --git a/pr/src/md/unix/os_SunOS_x86.s b/pr/src/md/unix/os_SunOS_x86.s
index 0d609340..3bfd3251 100644
--- a/pr/src/md/unix/os_SunOS_x86.s
+++ b/pr/src/md/unix/os_SunOS_x86.s
@@ -59,6 +59,7 @@ sol_curthread:
movl %ecx, %eax
ret
+#ifdef _PR_HAVE_ATOMIC_CAS
/
/ PR_StackPush(listp, elementp)
/
@@ -137,3 +138,4 @@ empty:
/ Return previous listp value (already in eax)
ret
+#endif / _PR_HAVE_ATOMIC_CAS