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.
#
@@ -1179,11 +1180,11 @@
_Qp_qtox.o \
_Qp_qtoux.o
$(QIL:%=pics/%) := CFLAGS64 += $(LIBCDIR)/$(MACH)/fp/__quad.il
pics/_Qp%.o := CFLAGS64 += -I$(LIBCDIR)/$(MACH)/fp
-pics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
+pics/_Q%.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -xchip=ultra
# Files in crt subdirectory which need muldiv64.il inline template
#CIL= mul64.o divrem64.o
#$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
@@ -1212,11 +1213,11 @@
$(PORTI18N_COND:%=pics/%) := \
CPPFLAGS += -D_WCS_LONGLONG
# Files which need extra optimization
-pics/getenv.o := sparcv9_COPTFLAG = -xO4
+pics/getenv.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2
.KEEP_STATE:
all: $(LIBS) $(LIB_PIC)