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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/Makefile.intel
          +++ new/usr/src/uts/intel/Makefile.intel
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # If applicable, add the following below this CDDL HEADER, with the
  15   15  # fields enclosed by brackets "[]" replaced with your own identifying
  16   16  # information: Portions Copyright [yyyy] [name of copyright owner]
  17   17  #
  18   18  # CDDL HEADER END
  19   19  #
  20   20  
  21   21  # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  22   22  # Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
  23   23  # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
       24 +# Copyright 2014 Gary Mills
  24   25  
  25   26  #
  26   27  #       This makefile contains the common definitions for all intel
  27   28  #       implementation architecture independent modules.
  28   29  #
  29   30  
  30   31  #
  31   32  #       Machine type (implementation architecture):
  32   33  #
  33   34  PLATFORM         = i86pc
↓ open down ↓ 75 lines elided ↑ open up ↑
 109  110  INLINES                 += $(INLINES_$(CLASS))
 110  111  
 111  112  #
 112  113  #       kernel-specific optimizations; override default in Makefile.master
 113  114  #
 114  115  
 115  116  CFLAGS_XARCH_32         = $(i386_CFLAGS)
 116  117  CFLAGS_XARCH_64         = $(amd64_CFLAGS)
 117  118  CFLAGS_XARCH            = $(CFLAGS_XARCH_$(CLASS))
 118  119  
 119      -COPTFLAG_32             = $(COPTFLAG)
 120      -COPTFLAG_64             = $(COPTFLAG64)
      120 +COPTFLAG_32             = -_gcc=-fno-toplevel-reorder $(COPTFLAG)
      121 +COPTFLAG_64             = -_gcc=-fno-toplevel-reorder $(COPTFLAG64)
 121  122  COPTIMIZE               = $(COPTFLAG_$(CLASS))
 122  123  
 123  124  CFLAGS                  = $(CFLAGS_XARCH)
 124  125  CFLAGS                  += $(COPTIMIZE)
 125  126  CFLAGS                  += $(INLINES) -D_ASM_INLINES
 126  127  CFLAGS                  += $(CCMODE)
 127  128  CFLAGS                  += $(SPACEFLAG)
 128  129  CFLAGS                  += $(CCUNBOUND)
 129  130  CFLAGS                  += $(CFLAGS_uts)
 130  131  CFLAGS                  += -xstrconst
↓ open down ↓ 591 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX