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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sparc/mac/Makefile
          +++ new/usr/src/uts/sparc/mac/Makefile
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12  #
  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 +# Copyright 2014 Gary Mills
  22   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   24  # Use is subject to license terms.
  24   25  #
  25   26  #
  26   27  #       This makefile drives the production of the mac driver 
  27   28  #       kernel module.
  28   29  #
  29   30  #       sparc architecture dependent
  30   31  #
  31   32  #
↓ open down ↓ 19 lines elided ↑ open up ↑
  51   52  #
  52   53  ALL_TARGET      = $(BINARY)
  53   54  LINT_TARGET     = $(MODULE).lint
  54   55  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55   56  
  56   57  #
  57   58  #       Overrides.
  58   59  #
  59   60  CFLAGS                          += $(CCVERBOSE)
  60   61  $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
  61      -$(RELEASE_BUILD)COPTIMIZE       = -xO5
       62 +$(RELEASE_BUILD)COPTIMIZE       = -_cc=-xO5 -_gcc=-O2
  62   63  LDFLAGS                         += -dy
  63   64  INC_PATH                        += -I$(UTSBASE)/common/io/bpf
  64   65  
  65   66  LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
  66   67  LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN
  67   68  
  68   69  CERRWARN                        += -_gcc=-Wno-unused-label
  69   70  CERRWARN                        += -_gcc=-Wno-uninitialized
  70   71  CERRWARN                        += -_gcc=-Wno-parentheses
  71   72  CERRWARN                        += -_gcc=-Wno-type-limits
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX