Bug 860867 - Disable loop vectorization optimizations in the JS engine for clang to prevent it from generating bad code; r=glandium

This commit is contained in:
Ehsan Akhgari 2013-04-26 08:43:19 -04:00
parent a83eeea807
commit 4d49a0cf90

View File

@ -1524,6 +1524,9 @@ case "$target" in
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MOZ_OPTIMIZE_FLAGS="-O3 -fno-stack-protector"
if test -n "$CLANG_CXX"; then
MOZ_OPTIMIZE_FLAGS="$MOZ_OPTIMIZE_FLAGS -fno-vectorize"
fi
CFLAGS="$CFLAGS -fno-common"
CXXFLAGS="$CXXFLAGS -fno-common"
DLL_SUFFIX=".dylib"
@ -1617,6 +1620,9 @@ ia64*-hpux*)
MOZ_GFX_OPTIMIZE_MOBILE=1
MOZ_OPTIMIZE_FLAGS="-O3 -freorder-blocks -fno-reorder-functions"
if test -n "$CLANG_CXX"; then
MOZ_OPTIMIZE_FLAGS="$MOZ_OPTIMIZE_FLAGS -fno-vectorize"
fi
# The Maemo builders don't know about this flag
MOZ_ARM_VFP_FLAGS="-mfpu=vfp"
;;
@ -1639,6 +1645,9 @@ ia64*-hpux*)
MOZ_OPTIMIZE_FLAGS="-O3 -freorder-blocks $MOZ_OPTIMIZE_SIZE_TWEAK"
MOZ_DEBUG_FLAGS="-g"
fi
if test -n "$CLANG_CXX"; then
MOZ_OPTIMIZE_FLAGS="$MOZ_OPTIMIZE_FLAGS -fno-vectorize"
fi
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'