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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sparc/Makefile.sparc
          +++ new/usr/src/uts/sparc/Makefile.sparc
↓ open down ↓ 13 lines elided ↑ open up ↑
  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  # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
       24 +# Copyright 2014 Gary Mills
  24   25  
  25      -
  26   26  #
  27   27  #       This makefile contains the common definitions for all sparc
  28   28  #       implementation architecture independent modules.
  29   29  #
  30   30  
  31   31  #
  32   32  #       Define supported builds
  33   33  #
  34   34  DEF_BUILDS      = $(DEF_BUILDS64)
  35   35  ALL_BUILDS      = $(ALL_BUILDS64)
↓ open down ↓ 71 lines elided ↑ open up ↑
 107  107  #
 108  108  include $(UTSBASE)/Makefile.uts
 109  109  
 110  110  #
 111  111  #       machine specific optimization, override default in Makefile.master
 112  112  #
 113  113  XARCH_32        = -xarch=v8
 114  114  XARCH_64        = -m64
 115  115  XARCH           = $(XARCH_$(CLASS))
 116  116  
 117      -COPTIMIZE_32    = -xO3
 118      -COPTIMIZE_64    = -xO3
      117 +COPTIMIZE_32    = -_cc=-xO3 -_gcc=-O2
      118 +COPTIMIZE_64    = -_cc=-xO3 -_gcc=-O2
 119  119  COPTIMIZE       = $(COPTIMIZE_$(CLASS))
 120  120  
 121  121  CCMODE          = -Xa
 122  122  
 123  123  CFLAGS_32       = -xcg92
 124  124  CFLAGS_64       = -xchip=ultra $(CCABS32) $(CCREGSYM)
 125  125  CFLAGS          = $(CFLAGS_$(CLASS))
 126  126  
 127  127  CFLAGS          += $(XARCH)
 128  128  CFLAGS          += $(COPTIMIZE)
↓ open down ↓ 375 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX