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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/common/Makefile
          +++ new/usr/src/cmd/dtrace/test/tst/common/Makefile
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26   26  
  27   27  #
  28   28  # Copyright (c) 2012 by Delphix. All rights reserved.
  29   29  # Copyright (c) 2013, Joyent, Inc. All rights reserved.
       30 +# Copyright 2014 Gary Mills
  30   31  #
  31   32  
  32   33  #
  33   34  # WARNING: Do not include Makefile.ctf here. That will cause tests to
  34   35  # break.
  35   36  #
  36   37  
  37   38  include $(SRC)/Makefile.master
  38   39  include ../Makefile.com
  39   40  
↓ open down ↓ 7 lines elided ↑ open up ↑
  47   48  RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
  48   49  CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
  49   50  CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
  50   51  
  51   52  fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
  52   53  fasttrap/tst.stack.exe := LDLIBS += -ldtrace
  53   54  
  54   55  sysevent/tst.post.exe := LDLIBS += -lsysevent
  55   56  sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
  56   57  
  57      -ustack/tst.bigstack.exe := COPTFLAG += -xO1
       58 +ustack/tst.bigstack.exe := COPTFLAG = $(ADJUST_OPT1) -_cc=-xO1 -_gcc=-O1
  58   59  
  59   60  GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
  60   61  
  61   62  nfs/%.o: $(SNOOPDIR)/%.c
  62   63          $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
  63   64          $(POST_PROCESS_O)
  64   65  nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
  65   66          $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
  66   67          $(POST_PROCESS) ; $(STRIP_STABS)
  67   68  $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
↓ open down ↓ 101 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX