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

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 #
 # uts/sun4v/arcfour/Makefile
 #
+# 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 arcfour kernel module.
 #

@@ -70,11 +71,11 @@
 CFLAGS += -dalign
 
 #
 # For niagara specific optimizations
 #
-COPTIMIZE       = -xO5 -xbuiltin=%all
+COPTIMIZE       = -_cc=-xO5 -_gcc=-O2 -xbuiltin=%all
 
 #
 # Override the default -xspace setting
 #
 sparc_SPACEFLAG = -W0,-Lt