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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/Makefile.sun4v
          +++ new/usr/src/uts/sun4v/Makefile.sun4v
↓ open down ↓ 15 lines elided ↑ open up ↑
  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   23  # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
       26 +# Copyright 2014 Gary Mills
  26   27  #
  27   28  #       This makefile contains the common definitions for the sun4v unix
  28   29  #       and all sun4v implementation architecture dependent modules.
  29   30  #
  30   31  
  31   32  #
  32   33  #       Machine type (implementation architecture):
  33   34  #
  34   35  PLATFORM         = sun4v
  35   36  LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
↓ open down ↓ 125 lines elided ↑ open up ↑
 161  162  #
 162  163  include $(UTSBASE)/Makefile.uts
 163  164  
 164  165  CTFMERGE_GUDIR  = sun4v
 165  166  
 166  167  #
 167  168  #       machine specific optimization, override default in Makefile.master
 168  169  #
 169  170  CC_XARCH        = -m64 -xarch=sparcvis
 170  171  AS_XARCH        = -xarch=v9v
 171      -COPTIMIZE       = -xO3
      172 +COPTIMIZE       = -_cc=-xO3 -_gcc=-O2
 172  173  CCMODE          = -Xa
 173  174  
 174  175  CFLAGS          = -xchip=ultra $(CCABS32) $(CCREGSYM)
 175  176  CFLAGS          += $(CC_XARCH)
 176  177  CFLAGS          += $(COPTIMIZE)
 177  178  CFLAGS          += $(EXTRA_CFLAGS)
 178  179  CFLAGS          += $(XAOPT)
 179  180  CFLAGS          += $(INLINES) -D_ASM_INLINES
 180  181  CFLAGS          += $(CCMODE)
 181  182  CFLAGS          += $(SPACEFLAG)
↓ open down ↓ 258 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX