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

@@ -21,10 +21,11 @@
 #
 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2012, Joyent, Inc.  All rights reserved.
 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
+# Copyright 2014 Gary Mills
 #
 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 

@@ -1248,12 +1249,12 @@
         _Q_sqrt.o               \
         _Q_stoq.o               \
         _Q_sub.o
 
 $(QIL:%=pics/%) := CFLAGS += $(LIBCDIR)/$(MACH)/fp/__quad.il
-pics/_Q%.o := sparc_COPTFLAG = -xO4 -dalign
-pics/__quad%.o := sparc_COPTFLAG = -xO4 -dalign
+pics/_Q%.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -dalign
+pics/__quad%.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -dalign
 
 # large-file-aware components that should be built large
 
 $(COMSYSOBJS64:%=pics/%) := \
         CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

@@ -1285,11 +1286,11 @@
 
 $(PORTI18N_COND:%=pics/%) := \
         CPPFLAGS += -D_WCS_LONGLONG
 
 # Files which need extra optimization
-pics/getenv.o := sparc_COPTFLAG = -xO4
+pics/getenv.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2
 
 .KEEP_STATE:
 
 all: $(LIBS) $(LIB_PIC)