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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sparc/xge/Makefile
          +++ new/usr/src/uts/sparc/xge/Makefile
↓ 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  #       This makefile drives the production of the Neterion Xframe
  27   28  #       10G Ethernet (XGE) driver module in x86 systems
  28   29  #
  29   30  
  30   31  #
  31   32  #       Paths to the base of the uts directory trees
  32   33  #
↓ open down ↓ 45 lines elided ↑ open up ↑
  78   79  #               -DXGE_DEBUG_ERR_MASK=0xffffffff
  79   80  TRACE_CFLAGS    = -DXGE_DEBUG_MODULE_MASK=0x00003010 \
  80   81                  -DXGE_DEBUG_TRACE_MASK=0x00000000  \
  81   82                  -DXGE_DEBUG_ERR_MASK=0x00003010
  82   83  
  83   84  XGE_CFLAGS      = $(HAL_CFLAGS) $(TRACE_CFLAGS) $(CCVERBOSE) \
  84   85                  -I$(UTSBASE)/common/io/xge/hal/include \
  85   86                  -I$(UTSBASE)/common/io/xge/hal/xgehal \
  86   87                  -I$(UTSBASE)/common/io/xge/drv -DSOLARIS
  87   88  
  88      -CFLAGS          += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
  89      -CFLAGS64        += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
       89 +COPTFLAG        = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
       90 +COPTFLAG64      = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
       91 +CFLAGS          += $(XGE_CFLAGS) -xcrossfile -xc99=%all
       92 +CFLAGS64        += $(XGE_CFLAGS) -xcrossfile -xc99=%all
  90   93  
  91   94  #
  92   95  #       Driver depends on MAC & IP
  93   96  #
  94   97  LDFLAGS         +=  -dy -N misc/mac -N drv/ip
  95   98  
  96   99  #       Lint flag
  97  100  #
  98  101  LINTFLAGS       += $(XGE_CFLAGS) -Xc99=%all
  99  102  
↓ open down ↓ 41 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX