Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmvec/Makefile.com
          +++ new/usr/src/lib/libmvec/Makefile.com
↓ open down ↓ 84 lines elided ↑ open up ↑
  85   85                  vrsqrtf_.o \
  86   86                  vsin_.o \
  87   87                  vsincos_.o \
  88   88                  vsincosf_.o \
  89   89                  vsinf_.o \
  90   90                  vsqrt_.o \
  91   91                  vsqrtf_.o \
  92   92                  vz_abs_.o \
  93   93                  vz_exp_.o \
  94   94                  vz_log_.o \
  95      -                vz_pow_.o \
  96      -                #end
       95 +                vz_pow_.o
  97   96  
  98   97  mvecvisCOBJS    = \
  99   98                  __vTBL_atan1.o \
 100   99                  __vTBL_atan2.o \
 101  100                  __vTBL_rsqrt.o \
 102  101                  __vTBL_sincos.o \
 103  102                  __vTBL_sincos2.o \
 104  103                  __vTBL_sqrtf.o \
 105  104                  __vcosbig.o \
 106  105                  __vcosbigf.o \
 107  106                  __vrem_pio2m.o \
 108  107                  __vsinbig.o \
 109  108                  __vsinbigf.o \
 110  109                  __vsincosbig.o \
 111      -                __vsincosbigf.o \
 112      -                #end
      110 +                __vsincosbigf.o
 113  111  
 114  112  mvecvisSOBJS    = \
 115  113                  __vatan.o \
 116  114                  __vatan2.o \
 117  115                  __vatan2f.o \
 118  116                  __vatanf.o \
 119  117                  __vcos.o \
 120  118                  __vcosf.o \
 121  119                  __vexp.o \
 122  120                  __vexpf.o \
↓ open down ↓ 5 lines elided ↑ open up ↑
 128  126                  __vpowf.o \
 129  127                  __vrhypot.o \
 130  128                  __vrhypotf.o \
 131  129                  __vrsqrt.o \
 132  130                  __vrsqrtf.o \
 133  131                  __vsin.o \
 134  132                  __vsincos.o \
 135  133                  __vsincosf.o \
 136  134                  __vsinf.o \
 137  135                  __vsqrt.o \
 138      -                __vsqrtf.o \
 139      -                #end
      136 +                __vsqrtf.o
 140  137  
 141  138  mvecvis2COBJS   = \
 142  139                  __vTBL_sincos.o \
 143  140                  __vTBL_sincos2.o \
 144  141                  __vTBL_sqrtf.o \
 145  142                  __vcosbig.o \
 146  143                  __vcosbig_ultra3.o \
 147  144                  __vrem_pio2m.o \
 148  145                  __vsinbig.o \
 149      -                __vsinbig_ultra3.o \
 150      -                #end
      146 +                __vsinbig_ultra3.o
 151  147  
 152  148  mvecvis2SOBJS   = \
 153  149                  __vcos_ultra3.o \
 154  150                  __vlog_ultra3.o \
 155  151                  __vsin_ultra3.o \
 156      -                __vsqrtf_ultra3.o \
 157      -                #end
      152 +                __vsqrtf_ultra3.o
 158  153  
 159  154  include         $(SRC)/lib/Makefile.lib
 160  155  include         $(SRC)/lib/Makefile.rootfs
 161  156  include         $(LIBMDIR)/Makefile.libm.com
 162  157  
 163  158  LIBS            = $(DYNLIB)
 164  159  SRCDIR          = ../common/
 165      -DYNFLAGS        += -zignore
      160 +DYNFLAGS        += $(ZIGNORE)
 166  161  
 167  162  LINTERROFF      = -erroff=E_FP_DIVISION_BY_ZERO 
 168  163  LINTERROFF      += -erroff=E_FP_INVALID
 169  164  LINTERROFF      += -erroff=E_BAD_PTR_CAST_ALIGN
 170  165  LINTERROFF      += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
 171  166  LINTERROFF      += -erroff=E_FUNC_SET_NOT_USED
 172  167  
 173  168  LINTFLAGS       += $(LINTERROFF)
 174  169  LINTFLAGS64     += $(LINTERROFF)
 175  170  LINTFLAGS64     += -errchk=longptr64
 176  171  
 177  172  CLAGS           += $(LINTERROFF)
 178  173  CFLAGS64        += $(LINTERROFF)
 179  174  
 180      -ASDEF           += -DLIBMVEC_SO_BUILD
 181      -
 182  175  FLTRPATH_sparc          = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
 183  176  FLTRPATH_sparcv9        = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
 184  177  FLTRPATH_i386           = $$ORIGIN/libmvec/$$HWCAP
 185  178  FLTRPATH                = $(FLTRPATH_$(TARGET_ARCH))
 186  179  
 187  180  sparc_CFLAGS += -_cc=-W0,-xintrinsic
 188  181  sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
 189  182  CPPFLAGS_i386   += -Dfabs=__fabs
 190  183  
 191      -CPPFLAGS        += -DLIBMVEC_SO_BUILD
      184 +SRCS_mvec_i386 = ../common/__vsqrtf.c
      185 +
      186 +SRCS_mvec_sparc = $(SRCS_mvec_i386)
      187 +
      188 +SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
 192  189  
 193      -SRCS_mvec_i386 = \
 194      -        ../common/__vsqrtf.c \
 195      -        #end
 196      -
 197      -SRCS_mvec_sparc = \
 198      -        $(SRCS_mvec_i386) \
 199      -        #end
 200      -SRCS_mvec_sparcv9 = \
 201      -        $(SRCS_mvec_i386) \
 202      -        #end
 203  190  
 204  191  SRCS_mvec = \
 205  192          $(SRCS_mvec_$(TARGETMACH)) \
 206  193          ../common/__vTBL_atan1.c \
 207  194          ../common/__vTBL_atan2.c \
 208  195          ../common/__vTBL_rsqrt.c \
 209  196          ../common/__vTBL_sincos.c \
 210  197          ../common/__vTBL_sincos2.c \
 211  198          ../common/__vTBL_sqrtf.c \
 212  199          ../common/__vatan.c \
↓ open down ↓ 58 lines elided ↑ open up ↑
 271  258          ../common/vrsqrtf_.c \
 272  259          ../common/vsin_.c \
 273  260          ../common/vsincos_.c \
 274  261          ../common/vsincosf_.c \
 275  262          ../common/vsinf_.c \
 276  263          ../common/vsqrt_.c \
 277  264          ../common/vsqrtf_.c \
 278  265          ../common/vz_abs_.c \
 279  266          ../common/vz_exp_.c \
 280  267          ../common/vz_log_.c \
 281      -        ../common/vz_pow_.c \
 282      -        #end
      268 +        ../common/vz_pow_.c
 283  269  
 284  270  .KEEP_STATE:
 285  271  
 286  272  all:    $(LIBS)
 287  273  
 288  274  lint:   lintcheck
 289  275  
 290  276  pics/%.o: ../$(TARGET_ARCH)/src/%.S
 291  277          $(COMPILE.s) -o $@ $<
 292  278          $(POST_PROCESS_O)
 293  279  
 294  280  pics/%.o: ../common/$$(CHIP)/%.S
 295  281          $(COMPILE.s) -o $@ $<
 296  282          $(POST_PROCESS_O)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX