Print this page
5196 The cw wrapper restricts gcc to -O2

@@ -17,10 +17,11 @@
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
 #
 #
+# Copyright 2014 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 
 #

@@ -53,11 +54,11 @@
 #
 # Overrides
 #
 CFLAGS                          += $(CCVERBOSE)
 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
-$(RELEASE_BUILD)COPTIMIZE       = -xO5
+$(RELEASE_BUILD)COPTIMIZE       = -_cc=-xO5 -_gcc=-O2
 LDFLAGS                         += -dy -N misc/dls -N misc/mac
 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
 
 #
 # For now, disable these lint checks; maintainers should endeavor