1 dnl This Source Code Form is subject to the terms of the Mozilla Public
2 dnl License, v. 2.0. If a copy of the MPL was not distributed with this
3 dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 dnl Check if the compiler suffers from http://llvm.org/pr8927. If so, ask the
8 AC_DEFUN([MOZ_LLVM_PR8927],
10 AC_MSG_CHECKING(for llvm pr8927)
11 ac_have_llvm_pr8927="no"
21 static const struct foobar* foo() {
22 static const struct foobar d = { 0 };
25 static const struct foobar* bar() {
26 static const struct foobar d = { 0 };
29 __attribute__((noinline)) int zed(const struct foobar *a,
30 const struct foobar *b) {
34 return zed(foo(), bar());
37 ac_have_llvm_pr8927="yes",
39 CFLAGS="$_SAVE_CFLAGS"
43 if test "$ac_have_llvm_pr8927" = "yes"; then
45 echo This compiler would miscompile firefox, please upgrade.
46 echo see http://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites
47 echo for more information.