summaryrefslogtreecommitdiffstats
path: root/js
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
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')
-rw-r--r--js/public/LegacyIntTypes.h10
-rw-r--r--js/src/Makefile.in11
-rw-r--r--js/src/jsnativestack.cpp15
3 files changed, 0 insertions, 36 deletions
diff --git a/js/public/LegacyIntTypes.h b/js/public/LegacyIntTypes.h
index 2c8498c89..cdfd98726 100644
--- a/js/public/LegacyIntTypes.h
+++ b/js/public/LegacyIntTypes.h
@@ -31,20 +31,10 @@ typedef uint16_t uint16;
typedef uint32_t uint32;
typedef uint64_t uint64;
-/*
- * On AIX 4.3, sys/inttypes.h (which is included by sys/types.h, a very
- * common header file) defines the types int8, int16, int32, and int64.
- * So we don't define these four types here to avoid conflicts in case
- * the code also includes sys/types.h.
- */
-#if defined(AIX) && defined(HAVE_SYS_INTTYPES_H)
-#include <sys/inttypes.h>
-#else
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
-#endif /* AIX && HAVE_SYS_INTTYPES_H */
typedef uint8_t JSUint8;
typedef uint16_t JSUint16;
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()