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

@@ -21,10 +21,11 @@
 
 #
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
+# Copyright 2014 Gary Mills
 #
 #       This makefile contains the common definitions for the sun4v unix
 #       and all sun4v implementation architecture dependent modules.
 #
 

@@ -166,11 +167,11 @@
 #
 #       machine specific optimization, override default in Makefile.master
 #
 CC_XARCH        = -m64 -xarch=sparcvis
 AS_XARCH        = -xarch=v9v
-COPTIMIZE       = -xO3
+COPTIMIZE       = -_cc=-xO3 -_gcc=-O2
 CCMODE          = -Xa
 
 CFLAGS          = -xchip=ultra $(CCABS32) $(CCREGSYM)
 CFLAGS          += $(CC_XARCH)
 CFLAGS          += $(COPTIMIZE)