Package: mozjs60 Severity: normal Tags: patch User: [email protected] Usertags: ia64
Dear Maintainer, The attached patch fixes the build problems for mozjs60 on ia64. Please apply. Thank you. -- System Information: Debian Release: 10.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: ia64 Kernel: Linux 4.19.0-5-mckinley (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
--- a/js/src/jit/AtomicOperations.h 2019-05-16 23:15:54.589637251 -0400 +++ b/js/src/jit/AtomicOperations.h 2019-05-16 23:16:37.545944927 -0400 @@ -387,6 +387,8 @@ # include "jit/none/AtomicOperations-feeling-lucky.h" #elif defined(__s390__) || defined(__s390x__) # include "jit/none/AtomicOperations-feeling-lucky.h" +#elif defined(__ia64__) +# include "jit/none/AtomicOperations-feeling-lucky.h" #else # error "No AtomicOperations support provided for this platform" #endif --- a/js/src/jit/none/AtomicOperations-feeling-lucky.h 2018-10-04 20:47:07.000000000 -0400 +++ b/js/src/jit/none/AtomicOperations-feeling-lucky.h 2019-05-16 23:42:47.269079252 -0400 @@ -79,6 +79,12 @@ # define GNUC_COMPATIBLE #endif +#ifdef __ia64__ +# define HAS_64BIT_ATOMICS +# define HAS_64BIT_LOCKFREE +# define GNUC_COMPATIBLE +#endif + // The default implementation tactic for gcc/clang is to use the newer // __atomic intrinsics added for use in C++11 <atomic>. Where that // isn't available, we use GCC's older __sync functions instead. --- a/js/src/tests/jstests.list 2019-05-17 10:49:25.666015230 -0400 +++ b/js/src/tests/jstests.list 2019-05-17 10:52:19.211281661 -0400 @@ -473,6 +473,11 @@ # Crashes skip-if(xulRuntime.debian.DEB_HOST_ARCH.match(/^s390x$/)) script non262/extensions/clone-errors.js +# Fails on ia64, possibly due to ia64 glibc bugs +skip-if(xulRuntime.debian.DEB_HOST_ARCH.match(/^ia64$/)) script non262/Math/fround.js +skip-if(xulRuntime.debian.DEB_HOST_ARCH.match(/^ia64$/)) script non262/Math/log2-approx.js + + ########################################################### # Tests disabled due to issues in test262 importer script # ###########################################################

