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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/sparcv9/Makefile.com
          +++ new/usr/src/lib/libc/sparcv9/Makefile.com
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2012, Joyent, Inc.  All rights reserved.
  24   24  # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
  25   25  # Copyright 2013 Garrett D'Amore <garrett@damore.org>
       26 +# Copyright 2014 Gary Mills
  26   27  #
  27   28  # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  28   29  # Use is subject to license terms.
  29   30  #
  30   31  
  31   32  LIBCDIR=        $(SRC)/lib/libc
  32   33  LIB_PIC=        libc_pic.a
  33   34  VERS=           .1
  34   35  CPP=            /usr/lib/cpp
  35   36  TARGET_ARCH=    sparc
↓ open down ↓ 1138 lines elided ↑ open up ↑
1174 1175          _Q_qtos.o               \
1175 1176          _Q_qtou.o               \
1176 1177          _Q_sqrt.o               \
1177 1178          _Q_stoq.o               \
1178 1179          _Q_sub.o                \
1179 1180          _Qp_qtox.o              \
1180 1181          _Qp_qtoux.o
1181 1182  
1182 1183  $(QIL:%=pics/%) := CFLAGS64 += $(LIBCDIR)/$(MACH)/fp/__quad.il
1183 1184  pics/_Qp%.o := CFLAGS64 += -I$(LIBCDIR)/$(MACH)/fp
1184      -pics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
     1185 +pics/_Q%.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -xchip=ultra
1185 1186  
1186 1187  # Files in crt subdirectory which need muldiv64.il inline template
1187 1188  #CIL=   mul64.o divrem64.o
1188 1189  #$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
1189 1190  
1190 1191  # large-file-aware components that should be built large
1191 1192  
1192 1193  #$(COMSYSOBJS64:%=pics/%) := \
1193 1194  #       CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1194 1195  
↓ open down ↓ 12 lines elided ↑ open up ↑
1207 1208  $(PORTSTDIO_W:%=pics/%) := \
1208 1209          CPPFLAGS += -D_WIDE
1209 1210  
1210 1211  $(PORTPRINT_W:%=pics/%) := \
1211 1212          CPPFLAGS += -D_WIDE
1212 1213  
1213 1214  $(PORTI18N_COND:%=pics/%) := \
1214 1215          CPPFLAGS += -D_WCS_LONGLONG
1215 1216  
1216 1217  # Files which need extra optimization
1217      -pics/getenv.o := sparcv9_COPTFLAG = -xO4
     1218 +pics/getenv.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2
1218 1219  
1219 1220  .KEEP_STATE:
1220 1221  
1221 1222  all: $(LIBS) $(LIB_PIC)
1222 1223  
1223 1224  lint    :=      CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1224 1225  lint    :=      CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1225 1226  lint    :=      LINTFLAGS64 += -mn
1226 1227  
1227 1228  lint:
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX