summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-31 18:43:10 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-31 18:43:10 +0200
commit5d409fdca92e085dad2f9c80b42f33afe4f10800 (patch)
treeb662a22783a8739291f90788e18699825795a6ef /js/src
parent49a3f5a53793d75cd243936e22f99b798e84c84b (diff)
downloadUXP-5d409fdca92e085dad2f9c80b42f33afe4f10800.tar
UXP-5d409fdca92e085dad2f9c80b42f33afe4f10800.tar.gz
UXP-5d409fdca92e085dad2f9c80b42f33afe4f10800.tar.lz
UXP-5d409fdca92e085dad2f9c80b42f33afe4f10800.tar.xz
UXP-5d409fdca92e085dad2f9c80b42f33afe4f10800.zip
Remove AIX 1st party code OS checks, part 1
Issue #186
Diffstat (limited to 'js/src')
-rw-r--r--js/src/Makefile.in11
-rw-r--r--js/src/jsnativestack.cpp15
2 files changed, 0 insertions, 26 deletions
diff --git a/js/src/Makefile.in b/js/src/Makefile.in
index 7f49a3718..20678c68c 100644
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -138,17 +138,6 @@ distclean::
CFLAGS += $(MOZ_ZLIB_CFLAGS)
-# Silence warnings on AIX/HP-UX from non-GNU compilers
-ifndef GNU_CC
-ifeq ($(OS_ARCH),AIX)
-# Suppress warnings from xlC
-# 1540-1281: offsetof() on null non-POD types
-# 1540-1608: anonymous unions using static data members
-CFLAGS += -qsuppress=1540-1281 -qsuppress=1540-1608
-CXXFLAGS += -qsuppress=1540-1281 -qsuppress=1540-1608
-endif
-endif
-
$(LIBRARY_NAME).pc: js.pc
cp $^ $@
diff --git a/js/src/jsnativestack.cpp b/js/src/jsnativestack.cpp
index 95e0f8da7..98f8fc741 100644
--- a/js/src/jsnativestack.cpp
+++ b/js/src/jsnativestack.cpp
@@ -71,21 +71,6 @@ js::GetNativeStackBaseImpl()
# endif
}
-#elif defined(AIX)
-
-#include <ucontext.h>
-
-JS_STATIC_ASSERT(JS_STACK_GROWTH_DIRECTION < 0);
-
-void*
-js::GetNativeStackBaseImpl()
-{
- ucontext_t context;
- getcontext(&context);
- return static_cast<char*>(context.uc_stack.ss_sp) +
- context.uc_stack.ss_size;
-}
-
#elif defined(XP_LINUX) && !defined(ANDROID) && defined(__GLIBC__)
void*
js::GetNativeStackBaseImpl()