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.
 #
 #
 #       This makefile drives the production of the mac driver 

@@ -56,11 +57,11 @@
 #
 #       Overrides.
 #
 CFLAGS                          += $(CCVERBOSE)
 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
-$(RELEASE_BUILD)COPTIMIZE       = -xO5
+$(RELEASE_BUILD)COPTIMIZE       = -_cc=-xO5 -_gcc=-O2
 LDFLAGS                         += -dy
 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
 
 LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
 LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN