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

@@ -19,12 +19,12 @@
 # CDDL HEADER END
 #
 
 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
+# Copyright 2014 Gary Mills
 
-
 #
 #       This makefile contains the common definitions for all sparc
 #       implementation architecture independent modules.
 #
 

@@ -112,12 +112,12 @@
 #
 XARCH_32        = -xarch=v8
 XARCH_64        = -m64
 XARCH           = $(XARCH_$(CLASS))
 
-COPTIMIZE_32    = -xO3
-COPTIMIZE_64    = -xO3
+COPTIMIZE_32    = -_cc=-xO3 -_gcc=-O2
+COPTIMIZE_64    = -_cc=-xO3 -_gcc=-O2
 COPTIMIZE       = $(COPTIMIZE_$(CLASS))
 
 CCMODE          = -Xa
 
 CFLAGS_32       = -xcg92