From 04c3f6fe60c9406faf0867922eca8cd64a3bd19f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 17 Apr 2014 12:50:42 +0300 Subject: [PATCH] Using -Oz causes crash, revert to Os This is with the Xcode 5.1.1 tool-chain. Either a compiler bug, or some undefined behaviour in our code sensitive to compiler optimisation details. The crash we noticed was in sw/source/core/layout/paintfrm.cxx. (There might of course be more locations with similar behaviour.) Change-Id: I5d0f0aee369b2ca5fc77356f0a7cb88bec6cc58e --- solenv/gbuild/platform/IOS_ARM_GCC.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solenv/gbuild/platform/IOS_ARM_GCC.mk b/solenv/gbuild/platform/IOS_ARM_GCC.mk index 27659c4e956a..a85a4b6188a4 100644 --- a/solenv/gbuild/platform/IOS_ARM_GCC.mk +++ b/solenv/gbuild/platform/IOS_ARM_GCC.mk @@ -26,7 +26,7 @@ ifeq ($(CXX),) $(error You must set CXX in the environment. See README.cross for example.) endif -gb_COMPILERDEFAULTOPTFLAGS := -Oz +gb_COMPILERDEFAULTOPTFLAGS := -Os include $(GBUILDDIR)/platform/com_GCC_defs.mk