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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsum/Makefile.com
          +++ new/usr/src/lib/libsum/Makefile.com
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  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  #
       23 +# Copyright 2014 Gary Mills
       24 +#
  23   25  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   26  # Use is subject to license terms.
  25   27  #
  26   28  
  27   29  SHELL=/usr/bin/ksh93
  28   30  
  29   31  LIBRARY=        libsum.a
  30   32  VERS=           .1
  31   33  
  32   34  OBJECTS= \
↓ open down ↓ 37 lines elided ↑ open up ↑
  70   72          -D_BLD_DLL
  71   73  
  72   74  CFLAGS += \
  73   75          $(ASTCFLAGS)
  74   76  CFLAGS64 += \
  75   77          $(ASTCFLAGS64)
  76   78  
  77   79  CERRWARN        += -_gcc=-Wno-parentheses
  78   80  
  79   81  # This codepath is performance-critical
  80      -sparc_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
  81      -sparcv9_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
  82      -i386_COPTFLAG=-_cc=-xO5 -_cc=-xprefetch=auto,explicit
  83      -amd64_COPTFLAG=-_cc=-xO5  -_cc=-xprefetch=auto,explicit
       82 +sparc_COPTFLAG=-_cc=-xO5 -_gcc=-O2 -_cc=-xprefetch=auto,explicit
       83 +sparcv9_COPTFLAG=-_cc=-xO5 -_gcc=-O2 -_cc=-xprefetch=auto,explicit
       84 +# No optimization for gcc
       85 +i386_COPTFLAG=-_cc=-xO5 -_gcc=-O0 -_cc=-xprefetch=auto,explicit
       86 +amd64_COPTFLAG=-_cc=-xO5 -_gcc=-O0  -_cc=-xprefetch=auto,explicit
       87 +amd64_ADJCOPT=$(ADJUST_OPT1)
  84   88  
  85   89  # Suppress this one warning as the fix would break old gcc, which upstream
  86   90  # still supports. This needs a better fix (later).
  87   91  pics/sumlib.o   := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
  88   92  
  89   93  .KEEP_STATE:
  90   94  
  91   95  all: $(LIBS)
  92   96  
  93   97  #
  94   98  # libsum is not lint-clean yet; fake up a target.  (You can use
  95   99  # "make lintcheck" to actually run lint; please send all lint fixes
  96  100  # upstream (to AT&T) so the next update will pull them into ON.)
  97  101  #
  98  102  lint:
  99  103          @ print "usr/src/lib/libsum is not lint-clean: skipping"
 100  104  
 101  105  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX