Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 02:08:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-gecko@FreeBSD.org
Subject:   [Bug 197058] [arm] lang/spidermonkey24 fails to build for arm
Message-ID:  <bug-197058-21739-BXzEevqMX7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197058-21739@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197058-21739@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197058

--- Comment #6 from Jan Beich <jbeich@vfemail.net> ---
Comment on attachment 152112
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D152112
Upstream patches and stuff I needed to do to get an ARM build

AsmJSSignalHandlers.cpp chunk should probably go into files/patch-bug919968=
 and
replaced with upstream version.

https://hg.mozilla.org/mozilla-central/rev/07ce4364fbec

> ++#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG)
> ++    static void cacheFlush(void* code, size_t size)
> ++    {
> ++	__clear_cache(code, reinterpret_cast<char*>(code) + size);

Why is this limited to compiler-rt? Wouldn't __clear_cache() from libgcc
implemented via ARM_SYNC_ICACHE for NetBSD also work for us?

  #elif CPU(ARM_TRADITIONAL) && (OS(FREEBSD) || OS(NETBSD))

> +-#if !(defined(ANDROID) || defined(MOZ_B2G))
> ++#if !(defined(ANDROID) || defined(MOZ_B2G) || defined(__FreeBSD__))

The header probably doesn't exist anywhere else.

  #if defined(__linux__) && !defined(ANDROID) && !defined(MOZ_B2G)

> + #include <asm/hwcap.h>
> + #else
> + #define HWCAP_VFP      (1<<0)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197058-21739-BXzEevqMX7>