Bug 590179. Use -fomit-frame-pointer when building opt builds on mac. r=ted, a=beltzner

This commit is contained in:
Boris Zbarsky 2010-08-27 14:19:45 -07:00
Родитель 07cfc2f55a
Коммит 14a38ac417
3 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -2034,7 +2034,7 @@ case "$target" in
*-darwin*)
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MOZ_OPTIMIZE_FLAGS="-O3"
MOZ_OPTIMIZE_FLAGS="-O3 -fomit-frame-pointer"
_PEDANTIC=
CFLAGS="$CFLAGS -fpascal-strings -fno-common"
CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"

Просмотреть файл

@ -1727,7 +1727,7 @@ case "$target" in
*-darwin*)
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MOZ_OPTIMIZE_FLAGS="-O3"
MOZ_OPTIMIZE_FLAGS="-O3 -fomit-frame-pointer"
_PEDANTIC=
CFLAGS="$CFLAGS -fpascal-strings -fno-common"
CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"

Просмотреть файл

@ -64,6 +64,18 @@ NO_PROFILE_GUIDED_OPTIMIZE = 1
endif
endif
ifeq (Darwin,$(OS_ARCH))
ifeq (86,$(findstring 86,$(OS_TEST)))
ifneq (x86_64,$(OS_TEST))
# If we compile xptcinvoke_unixish_x86.cpp with -fomit-frame-pointer
# we end up crashing on startup, presumably because of the %esp munging we do
# when KEEP_STACK_16_BYTE_ALIGNED. So let's not use that flag here.
# NOTE: MODULE_OPTIMIZE_FLAGS must be set before including config.mk
MODULE_OPTIMIZE_FLAGS=-O3
endif
endif
endif
include $(topsrcdir)/config/config.mk
######################################################################