Bug 409803. gcc (4.1 only) zealously avoids inlining at -Os. Patch by Dan Witte. r=ted.mielczarek
authorsayrer@gmail.com
Sat, 15 Mar 2008 19:48:58 -0700
changeset 13135 adb094e785e183a85e7d07bd6d1b1e4cb27bb397
parent 13134 8076a7de7c463827baafb97dcc87c6ae748a3cf1
child 13136 89056e6f16d727b8d6ea86a9eedb09f11f4381a7
push idunknown
push userunknown
push dateunknown
reviewersted.mielczarek
bugs409803
milestone1.9b5pre
Bug 409803. gcc (4.1 only) zealously avoids inlining at -Os. Patch by Dan Witte. r=ted.mielczarek
js/src/Makefile.in
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -45,17 +45,17 @@ VPATH		= @srcdir@
 include $(DEPTH)/config/autoconf.mk
 
 MODULE		= js
 LIBRARY_NAME	= mozjs
 LIB_IS_C_ONLY	= 1
 GRE_MODULE	= 1
 
 ifdef GNU_CC
-MODULE_OPTIMIZE_FLAGS = -Os -fstrict-aliasing
+MODULE_OPTIMIZE_FLAGS = -Os -fstrict-aliasing $(MOZ_OPTIMIZE_SIZE_TWEAK)
 # Special optimization flags for jsinterp.c
 INTERP_OPTIMIZER = -O3 -fstrict-aliasing
 else
 ifeq ($(OS_ARCH),SunOS)
 MODULE_OPTIMIZE_FLAGS = -O
 endif
 ifeq ($(OS_ARCH),WINNT)
 MODULE_OPTIMIZE_FLAGS = -O2 -GL