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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/bignum/Makefile.64
          +++ new/usr/src/uts/intel/bignum/Makefile.64
↓ 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  #       Configuration and targets for bignum module
  26   27  #       specific to AMD 64-bit architecture, amd64.
  27   28  #
  28   29  # Bignum configuration (BIGNUM_CFG):
  29   30  #   PSR_MUL:
  30   31  #       There is a processor-specific implementation bignum multiply functions
  31   32  #   HWCAP:
↓ open down ↓ 3 lines elided ↑ open up ↑
  35   36  #
  36   37  # -DPSR_MUL:
  37   38  # For AMD64, there is a processor-specific implementation of
  38   39  # the bignum multiply functions, which takes advantage of the
  39   40  # 64x64->128 bit multiply instruction.
  40   41  #
  41   42  # -UHWCAP:
  42   43  # There is only one implementation, because the 128 bit multiply using
  43   44  # general-purpose registers is faster than any MMX or SSE2 implementation.
  44   45  
       46 +COPTFLAG64        = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
  45   47  BIGNUM_CFG = -DPSR_MUL
  46      -CFLAGS  += -xO4 -xcrossfile
       48 +CFLAGS  += -xcrossfile
  47   49  $(OBJS_DIR)/bignumimpl.o $(LINTS_DIR)/bignumimpl.ln := \
  48   50          CPPFLAGS += $(BIGNUM_CFG)
  49   51  $(OBJS_DIR)/bignum_amd64.o $(LINTS_DIR)/bignum_amd64.ln := \
  50   52          CPPFLAGS += $(BIGNUM_CFG)
  51   53  
  52   54  $(OBJS_DIR)/bignum_amd64.o: $(BIGNUMDIR)/amd64/bignum_amd64.c
  53   55          $(COMPILE.c) -o $@ $(BIGNUM_CFG) $(BIGNUMDIR)/amd64/bignum_amd64.c
  54   56          $(CTFCONVERT_O)
  55   57          $(POST_PROCESS_O)
  56   58  
  57   59  $(OBJS_DIR)/bignum_amd64_asm.o: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  58   60          $(COMPILE.s) -P -o $@ $(BIGNUM_CFG) \
  59   61                  $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  60   62          $(POST_PROCESS_O)
  61   63  
  62   64  $(LINTS_DIR)/bignum_amd64.ln: $(BIGNUMDIR)/amd64/bignum_amd64.c
  63   65          @($(LHEAD) $(LINT.c) $(BIGNUMDIR)/amd64/bignum_amd64.c $(LTAIL))
  64   66  
  65   67  $(LINTS_DIR)/bignum_amd64_asm.ln: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  66   68          @($(LHEAD) $(LINT.s) $(BIGNUMDIR)/amd64/bignum_amd64_asm.s $(LTAIL))
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX