diff -r 000000000000 -r 6474c204b198 build/autoconf/gcc-pr39608.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/autoconf/gcc-pr39608.m4 Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,37 @@ +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 is gcc and has pr39608. If so +dnl disable vrp. + +AC_DEFUN([MOZ_GCC_PR39608], +[ +AC_MSG_CHECKING(for gcc pr39608) +ac_have_gcc_pr39608="yes" +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +AC_TRY_COMPILE([ +typedef void (*FuncType)(); +template +void f(); +template class C { + typedef C ThisC; + template + static void h() { + f >(); + } +}; +], true, + ac_have_gcc_pr39608="no", + true) + +AC_LANG_RESTORE + +AC_MSG_RESULT($ac_have_gcc_pr39608) +if test "$ac_have_gcc_pr39608" = "yes"; then + echo This compiler would fail to build firefox, please upgrade. + exit 1 +fi +])