1
dnl Check if the compiler is gcc and has PR49911. If so
4
AC_DEFUN([MOZ_GCC_PR49911],
6
if test "$GNU_CC"; then
8
AC_MSG_CHECKING(for gcc PR49911)
9
ac_have_gcc_pr49911="no"
13
_SAVE_CXXFLAGS=$CXXFLAGS
16
extern "C" void abort(void);
18
eax, ecx, edx, ebx, esp, ebp,
25
static StateRemat FromRegister(RegisterID reg) {
30
static StateRemat FromAddress3(int address) {
33
if (address < 46 && address >= 0) {
39
StateRemat dataRematInfo2(bool y, int z) {
40
if (y) return FromRegister(RegisterID(1));
41
return FromAddress3(z);
46
__attribute__((noinline)) void jsop_setelem(bool y, int z) {
47
x = frame.dataRematInfo2(y, z);
53
ac_have_gcc_pr49911="yes",
55
CXXFLAGS="$_SAVE_CXXFLAGS"
59
if test "$ac_have_gcc_pr49911" == "yes"; then
61
CFLAGS="$CFLAGS -fno-tree-vrp"
62
CXXFLAGS="$CXXFLAGS -fno-tree-vrp"