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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/Makefile.com
          +++ new/usr/src/cmd/dtrace/test/tst/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
  23   24  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   25  # Use is subject to license terms.
  25   26  #
  26   27  
  27   28  include $(SRC)/cmd/Makefile.cmd
  28   29  
  29   30  .KEEP_STATE:
  30   31  
  31   32  ROOTOPTPKG = $(ROOT)/opt/SUNWdtrt
  32   33  ROOTTST = $(ROOTOPTPKG)/tst
↓ open down ↓ 18 lines elided ↑ open up ↑
  51   52  ROOT_TSTS = $(TSTS:%=$(TSTDIR)/%)
  52   53  ROOT_EXES = $(EXES:%=$(TSTDIR)/%)
  53   54  
  54   55  $(ROOT_TSTS) := FILEMODE = 0444
  55   56  $(ROOT_EXES) := FILEMODE = 0555
  56   57  
  57   58  # The DTrace tests rely on "normal" behaviour from the compiler which
  58   59  # agressive optimization of small, simple, one compilation-unit programs may
  59   60  # utterly subvert.  We force the compiler to not optimize rather than engage
  60   61  # in an arms race with increasingly belligerent optimizers.
  61      -COPTFLAG=       -xO0
       62 +COPTFLAG=       -_cc=-xO0 -_gcc=-O0
  62   63  
  63   64  CERRWARN +=     -_gcc=-Wno-switch
  64   65  CERRWARN +=     -_gcc=-Wno-unused-variable
  65   66  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  66   67  CERRWARN +=     -_gcc=-Wno-unused-function
  67   68  CERRWARN +=     -_gcc=-Wno-unused-variable
  68   69  
  69   70  all: $(EXES)
  70   71  
  71   72  clean lint:
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX