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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/Makefile.sun4u
          +++ new/usr/src/uts/sun4u/Makefile.sun4u
↓ 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 sun4u unix
  28   29  #       and all sun4u implementation architecture dependent modules.
  29   30  #
  30   31  
  31   32  #
  32   33  #       Machine type (implementation architecture):
  33   34  #
  34   35  PLATFORM         = sun4u
  35   36  PROMIF           = ieee1275
↓ open down ↓ 148 lines elided ↑ open up ↑
 184  185  IMPLEMENTATIONS         += lw8 
 185  186  IMPLEMENTATIONS         += makaha 
 186  187  IMPLEMENTATIONS         += opl 
 187  188  IMPLEMENTATIONS         += lw2plus 
 188  189  
 189  190  #
 190  191  #       machine specific optimization, override default in Makefile.master
 191  192  #
 192  193  CC_XARCH        = -m64 -xarch=sparcvis
 193  194  AS_XARCH        = -xarch=v9a
 194      -COPTIMIZE       = -xO3
      195 +COPTIMIZE       = -_cc=-xO3 -_gcc=-O2
 195  196  CCMODE          = -Xa
 196  197  
 197  198  CFLAGS          = -xchip=ultra $(CCABS32) $(CCREGSYM)
 198  199  CFLAGS          += $(CC_XARCH)
 199  200  CFLAGS          += $(COPTIMIZE)
 200  201  CFLAGS          += $(EXTRA_CFLAGS)
 201  202  CFLAGS          += $(XAOPT)
 202  203  CFLAGS          += $(INLINES) -D_ASM_INLINES
 203  204  CFLAGS          += $(CCMODE)
 204  205  CFLAGS          += $(SPACEFLAG)
↓ open down ↓ 272 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX