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>
@@ -90,12 +90,11 @@
vsqrt_.o \
vsqrtf_.o \
vz_abs_.o \
vz_exp_.o \
vz_log_.o \
- vz_pow_.o \
- #end
+ vz_pow_.o
mvecvisCOBJS = \
__vTBL_atan1.o \
__vTBL_atan2.o \
__vTBL_rsqrt.o \
@@ -106,12 +105,11 @@
__vcosbigf.o \
__vrem_pio2m.o \
__vsinbig.o \
__vsinbigf.o \
__vsincosbig.o \
- __vsincosbigf.o \
- #end
+ __vsincosbigf.o
mvecvisSOBJS = \
__vatan.o \
__vatan2.o \
__vatan2f.o \
@@ -133,38 +131,35 @@
__vsin.o \
__vsincos.o \
__vsincosf.o \
__vsinf.o \
__vsqrt.o \
- __vsqrtf.o \
- #end
+ __vsqrtf.o
mvecvis2COBJS = \
__vTBL_sincos.o \
__vTBL_sincos2.o \
__vTBL_sqrtf.o \
__vcosbig.o \
__vcosbig_ultra3.o \
__vrem_pio2m.o \
__vsinbig.o \
- __vsinbig_ultra3.o \
- #end
+ __vsinbig_ultra3.o
mvecvis2SOBJS = \
__vcos_ultra3.o \
__vlog_ultra3.o \
__vsin_ultra3.o \
- __vsqrtf_ultra3.o \
- #end
+ __vsqrtf_ultra3.o
include $(SRC)/lib/Makefile.lib
include $(SRC)/lib/Makefile.rootfs
include $(LIBMDIR)/Makefile.libm.com
LIBS = $(DYNLIB)
SRCDIR = ../common/
-DYNFLAGS += -zignore
+DYNFLAGS += $(ZIGNORE)
LINTERROFF = -erroff=E_FP_DIVISION_BY_ZERO
LINTERROFF += -erroff=E_FP_INVALID
LINTERROFF += -erroff=E_BAD_PTR_CAST_ALIGN
LINTERROFF += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
@@ -175,33 +170,25 @@
LINTFLAGS64 += -errchk=longptr64
CLAGS += $(LINTERROFF)
CFLAGS64 += $(LINTERROFF)
-ASDEF += -DLIBMVEC_SO_BUILD
-
FLTRPATH_sparc = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
FLTRPATH_sparcv9 = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
FLTRPATH_i386 = $$ORIGIN/libmvec/$$HWCAP
FLTRPATH = $(FLTRPATH_$(TARGET_ARCH))
sparc_CFLAGS += -_cc=-W0,-xintrinsic
sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
CPPFLAGS_i386 += -Dfabs=__fabs
-CPPFLAGS += -DLIBMVEC_SO_BUILD
+SRCS_mvec_i386 = ../common/__vsqrtf.c
+
+SRCS_mvec_sparc = $(SRCS_mvec_i386)
+
+SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
-SRCS_mvec_i386 = \
- ../common/__vsqrtf.c \
- #end
-
-SRCS_mvec_sparc = \
- $(SRCS_mvec_i386) \
- #end
-SRCS_mvec_sparcv9 = \
- $(SRCS_mvec_i386) \
- #end
SRCS_mvec = \
$(SRCS_mvec_$(TARGETMACH)) \
../common/__vTBL_atan1.c \
../common/__vTBL_atan2.c \
@@ -276,12 +263,11 @@
../common/vsqrt_.c \
../common/vsqrtf_.c \
../common/vz_abs_.c \
../common/vz_exp_.c \
../common/vz_log_.c \
- ../common/vz_pow_.c \
- #end
+ ../common/vz_pow_.c
.KEEP_STATE:
all: $(LIBS)