Bug 1192277 - remove check for LLVM PR 8927; r=glandium
authorNathan Froyd <froydnj@mozilla.com>
Fri, 07 Aug 2015 19:35:43 -0400
changeset 257277 683f439ef93cf06b79a7e6442143d561b7a696cc
parent 257276 1955a6afd3538649bf42662e244480d68100d705
child 257278 497b3313e006ec26eccc0ef1bf67f0462d89ff8a
push id14604
push userkwierso@gmail.com
push dateTue, 11 Aug 2015 22:57:22 +0000
treeherderfx-team@b948eb69b69d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1192277
milestone43.0a1
Bug 1192277 - remove check for LLVM PR 8927; r=glandium The PR was fixed in early 2011. clang 3.3, the oldest version of clang that we build with, was released in mid-2013. It's safe to say that all versions of clang now have this fix, and we can delete the check.
aclocal.m4
build/autoconf/llvm-pr8927.m4
configure.in
js/src/aclocal.m4
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -14,17 +14,16 @@ builtin(include, build/autoconf/nspr-bui
 builtin(include, build/autoconf/nss.m4)dnl
 builtin(include, build/autoconf/pkg.m4)dnl
 builtin(include, build/autoconf/codeset.m4)dnl
 builtin(include, build/autoconf/altoptions.m4)dnl
 builtin(include, build/autoconf/mozprog.m4)dnl
 builtin(include, build/autoconf/mozheader.m4)dnl
 builtin(include, build/autoconf/mozcommonheader.m4)dnl
 builtin(include, build/autoconf/lto.m4)dnl
-builtin(include, build/autoconf/llvm-pr8927.m4)dnl
 builtin(include, build/autoconf/frameptr.m4)dnl
 builtin(include, build/autoconf/compiler-opts.m4)dnl
 builtin(include, build/autoconf/expandlibs.m4)dnl
 builtin(include, build/autoconf/arch.m4)dnl
 builtin(include, build/autoconf/android.m4)dnl
 builtin(include, build/autoconf/zlib.m4)dnl
 builtin(include, build/autoconf/linux.m4)dnl
 builtin(include, build/autoconf/python-virtualenv.m4)dnl
deleted file mode 100644
--- a/build/autoconf/llvm-pr8927.m4
+++ /dev/null
@@ -1,52 +0,0 @@
-dnl This Source Code Form is subject to the terms of the Mozilla Public
-dnl License, v. 2.0. If a copy of the MPL was not distributed with this
-dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-dnl Check if the compiler suffers from http://llvm.org/pr8927. If so, ask the
-dnl user to upgrade.
-
-AC_DEFUN([MOZ_LLVM_PR8927],
-[
-AC_MSG_CHECKING(for llvm pr8927)
-ac_have_llvm_pr8927="no"
-AC_LANG_SAVE
-AC_LANG_C
-
-_SAVE_CFLAGS=$CFLAGS
-CFLAGS="-O2"
-AC_TRY_RUN([
-struct foobar {
-  int x;
-};
-static const struct foobar* foo() {
-  static const struct foobar d = { 0 };
-  return &d;
-}
-static const struct foobar* bar() {
-  static const struct foobar d = { 0 };
-  return &d;
-}
-__attribute__((noinline)) int zed(const struct foobar *a,
-                                  const struct foobar *b) {
-  return a == b;
-}
-int main() {
-  return zed(foo(), bar());
-}
-], true,
-   ac_have_llvm_pr8927="yes",
-   true)
-CFLAGS="$_SAVE_CFLAGS"
-
-AC_LANG_RESTORE
-
-if test "$ac_have_llvm_pr8927" = "yes"; then
-   AC_MSG_RESULT(yes)
-   echo This compiler would miscompile firefox, please upgrade.
-   echo see http://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites
-   echo for more information.
-   exit 1
-else
-   AC_MSG_RESULT(no)
-fi
-])
--- a/configure.in
+++ b/configure.in
@@ -2638,18 +2638,16 @@ WINNT|Darwin|Android)
   STL_FLAGS='-I$(DIST)/stl_wrappers'
   WRAP_STL_INCLUDES=1
   ;;
 esac
 
 AC_SUBST(WRAP_SYSTEM_INCLUDES)
 AC_SUBST(VISIBILITY_FLAGS)
 
-MOZ_LLVM_PR8927
-
 dnl Checks for header files.
 dnl ========================================================
 AC_HEADER_DIRENT
 case "$target_os" in
 freebsd*|openbsd*)
 # for stuff like -lXshm
     CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
     ;;
--- a/js/src/aclocal.m4
+++ b/js/src/aclocal.m4
@@ -13,17 +13,16 @@ builtin(include, ../../build/autoconf/pk
 builtin(include, ../../build/autoconf/nspr.m4)dnl
 builtin(include, ../../build/autoconf/nspr-build.m4)dnl
 builtin(include, ../../build/autoconf/codeset.m4)dnl
 builtin(include, ../../build/autoconf/altoptions.m4)dnl
 builtin(include, ../../build/autoconf/mozprog.m4)dnl
 builtin(include, ../../build/autoconf/mozheader.m4)dnl
 builtin(include, ../../build/autoconf/mozcommonheader.m4)dnl
 builtin(include, ../../build/autoconf/lto.m4)dnl
-builtin(include, ../../build/autoconf/llvm-pr8927.m4)dnl
 builtin(include, ../../build/autoconf/frameptr.m4)dnl
 builtin(include, ../../build/autoconf/compiler-opts.m4)dnl
 builtin(include, ../../build/autoconf/expandlibs.m4)dnl
 builtin(include, ../../build/autoconf/arch.m4)dnl
 builtin(include, ../../build/autoconf/android.m4)dnl
 builtin(include, ../../build/autoconf/zlib.m4)dnl
 builtin(include, ../../build/autoconf/linux.m4)dnl
 builtin(include, ../../build/autoconf/python-virtualenv.m4)dnl