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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/sparc/Makefile.com
          +++ new/usr/src/lib/libc/sparc/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 ↓ 1207 lines elided ↑ open up ↑
1243 1244          _Q_mul.o                \
1244 1245          _Q_qtod.o               \
1245 1246          _Q_qtoi.o               \
1246 1247          _Q_qtos.o               \
1247 1248          _Q_qtou.o               \
1248 1249          _Q_sqrt.o               \
1249 1250          _Q_stoq.o               \
1250 1251          _Q_sub.o
1251 1252  
1252 1253  $(QIL:%=pics/%) := CFLAGS += $(LIBCDIR)/$(MACH)/fp/__quad.il
1253      -pics/_Q%.o := sparc_COPTFLAG = -xO4 -dalign
1254      -pics/__quad%.o := sparc_COPTFLAG = -xO4 -dalign
     1254 +pics/_Q%.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -dalign
     1255 +pics/__quad%.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -dalign
1255 1256  
1256 1257  # large-file-aware components that should be built large
1257 1258  
1258 1259  $(COMSYSOBJS64:%=pics/%) := \
1259 1260          CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1260 1261  
1261 1262  $(SYSOBJS64:%=pics/%) := \
1262 1263          CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1263 1264  
1264 1265  $(PORTGEN64:%=pics/%) := \
↓ open down ↓ 15 lines elided ↑ open up ↑
1280 1281  $(PORTPRINT_C89:%=pics/%) := \
1281 1282          CPPFLAGS += -D_C89_INTMAX32
1282 1283  
1283 1284  $(PORTSTDIO_C89:%=pics/%) := \
1284 1285          CPPFLAGS += -D_C89_INTMAX32
1285 1286  
1286 1287  $(PORTI18N_COND:%=pics/%) := \
1287 1288          CPPFLAGS += -D_WCS_LONGLONG
1288 1289  
1289 1290  # Files which need extra optimization
1290      -pics/getenv.o := sparc_COPTFLAG = -xO4
     1291 +pics/getenv.o := sparc_COPTFLAG = -_cc=-xO4 -_gcc=-O2
1291 1292  
1292 1293  .KEEP_STATE:
1293 1294  
1294 1295  all: $(LIBS) $(LIB_PIC)
1295 1296  
1296 1297  lint    :=      CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1297 1298  lint    :=      CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1298 1299  lint    :=      LINTFLAGS += -mn
1299 1300  
1300 1301  lint:
↓ open down ↓ 78 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX