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
This commit is contained in:
Tor Lillqvist
2014-04-17 12:50:42 +03:00
parent fee4efcb54
commit 04c3f6fe60

View File

@@ -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