From patchwork Tue Apr 2 14:06:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87936 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C3D713858286 for ; Tue, 2 Apr 2024 14:10:30 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 6E3DB385842A for ; Tue, 2 Apr 2024 14:06:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E3DB385842A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E3DB385842A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066825; cv=none; b=Icl8hnxQWFd+jFN/MAc1dRyoZvzCmemhLmN1GhulLJHVOi9V4KQOeo+7oi02YHJup57Y/8W5VFV75YqvFVczk/Z4QkJjUEIn0XKxQS958PrzBapdERsKZaVXJsiSRLl8mTeIhdIpOkLKcaPftsujXbuthmT3z8BsOMnG9WKeQkM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066825; c=relaxed/simple; bh=F17GlDjX7AeNwvBWtH3ZAUIxPYj8Z62z0MEHK5gGnoc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=X/CXIcKwQc9Dv2EV8gn2EC35nP4iunYbnu/mHRxnFUuq9pUMfLHPtaN7PrHFaKfgCy8QKci3kuctMUltR1am1b3diW9TSlytdC1ySniSuk7dPOzVguVoOrMPLAOow0e0PQM1dWEFPtVKnDzYM/2cvgYVzg44ZAWwSPGYJ6AbosY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1e2232e30f4so38231605ad.2 for ; Tue, 02 Apr 2024 07:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066811; x=1712671611; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cTWul3ZweVLqeWA/O787T6Pmir3fhv4nYm2+Dp3UUSM=; b=rHTYnkGgwRVqEK8VHfGvOxFxRAzAexEtZpH2ZXA7aaqYECXl9BzfvGiB+72CK39Vz7 rPGoPVXMo7Egr3lc6iY/GHqENFQBsPJmWhig6wSU5v25B34TU25A3SowhnYQevGLrRoi BW0B6KYnNSdLEi8mQNkQ0YJx5blIGLukj/Wkg32Q2mXG/65om0pwupRnzPZddCQPh8LK gzUvOFF8yvJFxB3rvy9CKvrT88tjgK7c2KoBKh6YhUH6qbfBospUXt6hT9dg7mvoHsyd FMfj/Mv1YmgkQP1wjWv7IuY9uo8nqAtLhmHfn8XoBqKUd1NsEoNG4HhGlOkMmuBpQw0k ddtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066811; x=1712671611; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cTWul3ZweVLqeWA/O787T6Pmir3fhv4nYm2+Dp3UUSM=; b=bpHz9Hqxalp8iVFag5B+dyULxQhILMGHp3WR1twy828ph/cZXoBrWpJcUWa2PzH9BK jiKx9dw5uBZn+SrCkJlANm7lCCM8DeV7Iq57hKp33DiQL4ftijNxPSrFm9kOr/mpmAEP ogIY58+nG5CG/ELKeCDJIjP4KGPFYYoVRrzVg85rHGFOpJajPZ/ZXhTsukUC/W5RwOIS 3BvtBLDiYRbxmC9W24WCYnWB9CoiPH2mL5VQM8CSlI0ZwwmU3iW4c3K5mtsRq7MA8bNC G/cTh51fT+rzO/+kxL/AjmR34bhJavRca5n1jpxl9JZ8GL/pva4Lba3X4AKYtyD2ZoH5 PjSg== X-Gm-Message-State: AOJu0Yxhc9bDk75fjy5V8uEgeyE8cp73Awr4c1feWwFBFpM8Q4Grr57B O5gwDoyzSyID9EPNFmB0hynMjkma6Fc6xnSfyHoAJKEMr40vJtKoNJKM7RVtyGtL9rcK3yzt/EZ h X-Google-Smtp-Source: AGHT+IFz3m00z9quGMdzqiprNo2tKNtNOfwNISclpBjnMibrsed9bFnDV94vFVeOQkFSX9o2p+T5ag== X-Received: by 2002:a17:902:d2c5:b0:1e0:b76b:cfb8 with SMTP id n5-20020a170902d2c500b001e0b76bcfb8mr14929087plc.19.1712066810923; Tue, 02 Apr 2024 07:06:50 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:50 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 1/7] math: Add support for auto static math tests Date: Tue, 2 Apr 2024 11:06:38 -0300 Message-Id: <20240402140644.2172819-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org It basically copy the already in place rules for dynamic tests for auto-generated math functions for all support types. To avoid the need to duplicate .inc files, a .SECONDEXPANSION rules is adeed for the gen-libm-test.py generation. New tests are added on the new rules 'libm-test-funcs-auto-static', 'libm-test-funcs-noauto-static', and 'libm-test-funcs-narrow-static'; similar to the non-static counterparts. To avoid add extra build and disk requirement, the new math static tests are only enable with a new define 'build-math-static-tests'. --- Makeconfig | 5 ++ Makefile.help | 4 ++ math/Makefile | 113 +++++++++++++++++++++++++++++++++++- math/test-double-static.h | 1 + math/test-float-static.h | 1 + math/test-float128-static.h | 1 + math/test-float32-static.h | 1 + math/test-float32x-static.h | 1 + math/test-float64-static.h | 1 + math/test-float64x-static.h | 1 + math/test-ibm128-static.h | 1 + math/test-ldouble-static.h | 1 + 12 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 math/test-double-static.h create mode 100644 math/test-float-static.h create mode 100644 math/test-float128-static.h create mode 100644 math/test-float32-static.h create mode 100644 math/test-float32x-static.h create mode 100644 math/test-float64-static.h create mode 100644 math/test-float64x-static.h create mode 100644 math/test-ibm128-static.h create mode 100644 math/test-ldouble-static.h diff --git a/Makeconfig b/Makeconfig index 85e00cef94..9d287da67b 100644 --- a/Makeconfig +++ b/Makeconfig @@ -742,6 +742,11 @@ run-built-tests = yes endif endif +# Whether to build the static math tests +ifndef build-math-static-tests +build-math-static-tests = no +endif + # Whether to stop immediately when a test fails. Nonempty means to # stop, empty means not to stop. ifndef stop-on-test-failure diff --git a/Makefile.help b/Makefile.help index b49df9c5c9..17e7154797 100644 --- a/Makefile.help +++ b/Makefile.help @@ -33,6 +33,10 @@ test Note that this will rebuild the test if needed, but will not rebuild what "make all" would have rebuilt. +build-math-static-tests + Enable extra math tests for static linking. Use like this: + make test t=math/test-float-exp10-static build-math-static-tests=yes + -- Other useful hints: diff --git a/math/Makefile b/math/Makefile index 79ef4ebb65..98a98d6851 100644 --- a/math/Makefile +++ b/math/Makefile @@ -274,8 +274,10 @@ endif libm-vec-tests = $(addprefix test-,$(libmvec-tests)) libm-test-support = $(foreach t,$(test-types),libm-test-support-$(t)) -test-extras += $(libm-test-support) -extra-test-objs += $(addsuffix .o, $(libm-test-support)) +libm-test-support-static = $(foreach t,$(test-types),libm-test-support-$(t)-static) +test-extras += $(libm-test-support) $(libm-test-support-static) +extra-test-objs += $(addsuffix .o, $(libm-test-support)) \ + $(addsuffix .o, $(libm-test-support-static)) libm-vec-test-wrappers = $(addsuffix -wrappers, $(libm-vec-tests)) test-extras += $(libm-vec-test-wrappers) extra-test-objs += $(addsuffix .o, $(libm-vec-test-wrappers)) @@ -305,7 +307,7 @@ libm-test-funcs-noauto = canonicalize ceil cimag conj copysign cproj creal \ nextup remainder remquo rint round roundeven scalb \ scalbln scalbn setpayload setpayloadsig signbit \ significand totalorder totalordermag trunc ufromfp \ - ufromfpx compat_totalorder compat_totalordermag + ufromfpx libm-test-funcs-compat = compat_totalorder compat_totalordermag libm-test-funcs-narrow = add div fma mul sqrt sub libm-test-funcs-all = $(libm-test-funcs-auto) $(libm-test-funcs-noauto) @@ -364,6 +366,71 @@ $(libm-test-c-narrow-obj): $(objpfx)libm-test%.c: libm-test%.inc \ $(make-target-directory) $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out$* -C $@ + +libm-test-funcs-auto-static = \ + $(libm-test-funcs-auto) \ + # libm-test-funcs-auto-static +libm-test-funcs-noauto-static = \ + $(libm-test-funcs-noauto) \ + # libm-test-funcs-noauto-static +libm-test-funcs-narrow-static = \ + $(libm-test-funcs-narrow) \ + # libm-test-funcs-narrow-static +libm-test-funcs-all-static = $(libm-test-funcs-auto-static) $(libm-test-funcs-noauto-static) + +libm-test-c-auto-static = $(foreach f,$(libm-test-funcs-auto-static),libm-test-$(f)-static.c) +libm-test-c-noauto-static = $(foreach f,$(libm-test-funcs-noauto-static),libm-test-$(f)-static.c) +libm-test-c-narrow-static = $(foreach f,$(libm-test-funcs-narrow-static),\ + libm-test-narrow-$(f)-static.c) +generated += $(libm-test-c-auto-static) $(libm-test-c-noauto-static) $(libm-test-c-narrow-static) + +libm-tests-normal-static = $(foreach t,$(libm-tests-base-normal),\ + $(foreach f,$(libm-test-funcs-all-static),\ + $(t)-$(f)-static)) +libm-tests-narrow-static = $(foreach t,$(libm-tests-base-narrow-static),\ + $(foreach f,$(libm-test-funcs-narrow-static),\ + $(t)-$(f)-static)) +libm-tests-vector-static = $(foreach t,$(libmvec-tests-static),\ + $(foreach f,$($(t)-funcs),test-$(t)-$(f)-static)) +libm-tests-static = $(libm-tests-normal-static) $(libm-tests-narrow-static) $(libm-tests-vector-static) +libm-tests-for-type-static = $(foreach f,$(libm-test-funcs-all-static),\ + test-$(1)-$(f)-static test-i$(1)-$(f)-static) \ + $(filter test-$(1)-%,$(libm-tests-vector-static) \ + $(libm-tests-narrow-static)) + +libm-tests.o += $(addsuffix .o,$(libm-tests-static)) + +ifeq ($(build-math-static-tests),yes) +tests-static += $(libm-tests-static) +generated += $(addsuffix .c,$(libm-tests)) \ + $(foreach t,$(test-types),libm-test-support-$(t)-static.c) +endif + +libm-test-c-auto-obj-static = $(addprefix $(objpfx),$(libm-test-c-auto-static)) +libm-test-c-noauto-obj-static = $(addprefix $(objpfx),$(libm-test-c-noauto-static)) +libm-test-c-narrow-obj-static = $(addprefix $(objpfx),$(libm-test-c-narrow-static)) + +# Use the same input test definitions for both dynamic and static tests. +.SECONDEXPANSION: +$(libm-test-c-noauto-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a /dev/null -C $@ + +.SECONDEXPANSION: +$(libm-test-c-auto-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py \ + auto-libm-test-out$$(subst -static,,%) + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out`echo $* | sed 's/-static//'` -C $@ + +.SECONDEXPANSION: +$(libm-test-c-narrow-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py \ + auto-libm-test-out$$(subst -static,,%) + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out`echo $* | sed 's/-static//'` -C $@ + # Tests for totalorder compat symbols reuse the table of tests as # processed by gen-libm-test.py, so add dependencies on the generated # .c files. @@ -505,6 +572,18 @@ $(foreach t,$(libm-tests-normal),$(objpfx)$(t).c): $(objpfx)test-%.c: echo "#include "; \ ) > $@ +$(foreach t,$(libm-tests-normal-static),$(objpfx)$(t).c): $(objpfx)test-%.c: + type_func=$*; \ + type=$${type_func%%-*}; \ + func=$${type_func#*-}; \ + ( \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + ) > $@ + $(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c): $(objpfx)test-%.c: type_pair_func=$*; \ type_pair=$${type_pair_func%-*}; \ @@ -539,6 +618,13 @@ $(foreach t,$(test-types),\ echo "#include "; \ ) > $@ +$(foreach t,$(test-types),\ + $(objpfx)libm-test-support-$(t)-static.c): $(objpfx)libm-test-support-%.c: + ( \ + echo "#include "; \ + echo "#include "; \ + ) > $@ + $(addprefix $(objpfx), $(libm-tests.o)): $(objpfx)libm-test-ulps.h define o-iterator-doit @@ -548,6 +634,13 @@ endef object-suffixes-left := $(libm-tests-base) include $(o-iterator) +define o-iterator-doit +$(foreach f,$(libm-test-funcs-all-static),\ + $(objpfx)$(o)-$(f)-static.o): $(objpfx)$(o)%.o: $(objpfx)libm-test%.c +endef +object-suffixes-left := $(libm-tests-base) +include $(o-iterator) + define o-iterator-doit $(foreach f,$(libm-test-funcs-narrow),\ $(objpfx)$(o)-$(f).o): $(objpfx)$(o)%.o: \ @@ -563,6 +656,13 @@ endef object-suffixes-left := $(libm-tests-base-normal) include $(o-iterator) +define o-iterator-doit +$(foreach f,$(libm-test-funcs-all-static),\ + $(objpfx)$(o)-$(f)-static.o): CFLAGS += $(libm-test-no-inline-cflags) +endef +object-suffixes-left := $(libm-tests-base-normal) +include $(o-iterator) + define o-iterator-doit $(foreach f,$(libm-test-funcs-narrow),\ $(objpfx)$(o)-$(f).o): CFLAGS += $(libm-test-no-inline-cflags) @@ -584,6 +684,13 @@ endef object-suffixes-left := $(test-types) include $(o-iterator) +define o-iterator-doit +$(addprefix $(objpfx),\ + $(call libm-tests-for-type-static,$(o))): $(objpfx)libm-test-support-$(o)-static.o +endef +object-suffixes-left := $(test-types) +include $(o-iterator) + define o-iterator-doit $(objpfx)libm-test-support-$(o).o: CFLAGS += $(libm-test-no-inline-cflags) endef diff --git a/math/test-double-static.h b/math/test-double-static.h new file mode 100644 index 0000000000..d53f46819f --- /dev/null +++ b/math/test-double-static.h @@ -0,0 +1 @@ +#include "test-double.h" diff --git a/math/test-float-static.h b/math/test-float-static.h new file mode 100644 index 0000000000..7834c9e1f1 --- /dev/null +++ b/math/test-float-static.h @@ -0,0 +1 @@ +#include "test-float.h" diff --git a/math/test-float128-static.h b/math/test-float128-static.h new file mode 100644 index 0000000000..5f8206456a --- /dev/null +++ b/math/test-float128-static.h @@ -0,0 +1 @@ +#include "test-float128.h" diff --git a/math/test-float32-static.h b/math/test-float32-static.h new file mode 100644 index 0000000000..2df27d1ca0 --- /dev/null +++ b/math/test-float32-static.h @@ -0,0 +1 @@ +#include "test-float32.h" diff --git a/math/test-float32x-static.h b/math/test-float32x-static.h new file mode 100644 index 0000000000..62f78b49d8 --- /dev/null +++ b/math/test-float32x-static.h @@ -0,0 +1 @@ +#include "test-float32x.h" diff --git a/math/test-float64-static.h b/math/test-float64-static.h new file mode 100644 index 0000000000..807c174df1 --- /dev/null +++ b/math/test-float64-static.h @@ -0,0 +1 @@ +#include "test-float64.h" diff --git a/math/test-float64x-static.h b/math/test-float64x-static.h new file mode 100644 index 0000000000..a7801dbc10 --- /dev/null +++ b/math/test-float64x-static.h @@ -0,0 +1 @@ +#include "test-float64x.h" diff --git a/math/test-ibm128-static.h b/math/test-ibm128-static.h new file mode 100644 index 0000000000..b66a57050b --- /dev/null +++ b/math/test-ibm128-static.h @@ -0,0 +1 @@ +#include "test-ibm128.h" diff --git a/math/test-ldouble-static.h b/math/test-ldouble-static.h new file mode 100644 index 0000000000..beabedb817 --- /dev/null +++ b/math/test-ldouble-static.h @@ -0,0 +1 @@ +#include "test-ldouble.h" From patchwork Tue Apr 2 14:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87931 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E0B5385B523 for ; Tue, 2 Apr 2024 14:07:56 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id E0665385C6EE for ; Tue, 2 Apr 2024 14:06:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0665385C6EE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E0665385C6EE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066828; cv=none; b=BgH4HKI95SBcvtr5j7uOgdRLLV8ybZ6z+9hh+hUbW1BE8j2zRuGIPA7xIsBc/8ceTfiKzxP4OIHeSE9bo2cLbR+FJF5Sgo664Zdq2hYyW7Qe06JU12rFu90/ZrMH4NRacEKpzcdDrE08c4BOnJ8OYRAbGMo2sDQ2opyPhIIglwU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066828; c=relaxed/simple; bh=nJ7ZOOPC8VsLEjtVDvqSQgdGQVmUeioFjo/icp8xjhk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=IpFogDAlQh6vEsm06bIyQ23ZGwkiUyVcBl7HmtZX2Os4ZuCN1IGUD0tejJZ5znpUx99wzYmGCXbcbA3dwpxdAyGk+GATDoJypUFnL5KkmZ6FBOaHRSm4SorNQM9URZbi4reNbWndmIt6hRX6FKEVY6tRDmrtcgWIGiZV1dGeftw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1e0d8403257so39762635ad.1 for ; Tue, 02 Apr 2024 07:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066813; x=1712671613; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=niJ8IbGqn67vNOx/k+HT+uAqNd8V6iptrnTofEmu4eE=; b=wo7C5GxfIRynFGUrioUqDkZQ1DtB3xWPoX23T4Rn+g/vbEI2xH7PrOveh8puuOrsgF LtCM0yhWC9Qy1AizEf1+dqGAl9gexKyIZbFxrAK+iZVk8VRdZmvLoLcb9vTY2YMHNLxn No+p+XZOTFMl8Hq+k6XRw5a53UgwfI3jCN+1d9wW6qLttcm2ALuYaTNGPH8RhUCIkmBt VqlnmaLtX/dvJq2D/7qBvpyHMChdwsLMW5FpMAfMXK9topr4Li5IzJcAoKnavGVEvnM+ momyeXR7d9iPFZ1dHLeHAA/8SYuMKXNRLjvk1KkN3+j1MHaToJqG0qTY9drsTkbsC/Gn Iw2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066813; x=1712671613; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=niJ8IbGqn67vNOx/k+HT+uAqNd8V6iptrnTofEmu4eE=; b=PFArfjYhsTgF0GswjuspFiTR6n8kBiVzOPWeWZipkgjclIXLoe1VIPe33mvk2Vtx9v e7CSh7BCBn3AHXcO7WzpPyc/Q2dIjlLGsBmfZzy31vd0gqGTkj7lqikKjF4nL5591Zza p47TRLNMkKtTO+VrdTtjUSE1W3DaPWC8FJ4ebIqeXFxG/8nN1yjN+L1kaBntpTPkBlPm c5e8ghvNoKI3DlC/wljmDonxgukhEc2xjMIAC0g2YxQmF1TY2pBLYwr1jMS778uAXdok j+YK5MDll701zZ0Zvwj2k3xRNPaA9Zl+TxqqYAfm2U/oKt3+03NeuaHETrdJC/9kBcFx 0KBw== X-Gm-Message-State: AOJu0YwN3mEdBHkcqZcMk0sxg+ezxqIR79oMZwMqh2UyQkxmUsfBs1eg as6vDRIOLxbqRj1jokce202VRBbu28w54IXlc1jbyiiWJt2yuxrtOZeI1XJNPa1izkbamoirrju b X-Google-Smtp-Source: AGHT+IHxeFPHaaRX35+DgS+pp+yvfLw5TtX7o/L+tAkCaqUIeqoSUgUP/WKv3X1si4DdUxJX7LFd0g== X-Received: by 2002:a17:903:2986:b0:1e2:7094:473c with SMTP id lm6-20020a170903298600b001e27094473cmr2214721plb.54.1712066813208; Tue, 02 Apr 2024 07:06:53 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:52 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 2/7] math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488) Date: Tue, 2 Apr 2024 11:06:39 -0300 Message-Id: <20240402140644.2172819-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org The commit 16439f419b removed the static fmod/fmodf on i386 and m68k with and empty w_fmod.c (required for the ABIs that uses the newly implementation). This patch fixes by adding the required symbols on the arch-specific w_fmod{f}_compat.c implementation. To statically build fmod fails on some ABI (alpha, s390, sparc) because it does not export the ldexpf128, this is also fixed by this patch. Checked on i686-linux-gnu and with a build for m68k-linux-gnu with 'make test t=math/test-{float,double}-modf-static build-math-static-tests=yes'. Reviewed-by: Aurelien Jarno Tested-by: Aurelien Jarno --- sysdeps/i386/fpu/w_fmod_compat.c | 7 ++++--- sysdeps/i386/fpu/w_fmodf_compat.c | 7 ++++--- sysdeps/ieee754/ldbl-opt/s_ldexpl.c | 4 ++-- sysdeps/m68k/m680x0/fpu/w_fmod_compat.c | 5 +++-- sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c | 7 ++++--- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/sysdeps/i386/fpu/w_fmod_compat.c b/sysdeps/i386/fpu/w_fmod_compat.c index 5ac9995ffd..528bfc2a13 100644 --- a/sysdeps/i386/fpu/w_fmod_compat.c +++ b/sysdeps/i386/fpu/w_fmod_compat.c @@ -7,8 +7,9 @@ # define LIBM_SVID_COMPAT 1 # undef compat_symbol # define compat_symbol(a, b, c, d) -#endif -#include -#ifdef SHARED +# include libm_alias_double (__fmod_compat, fmod) +#else +#include +#include #endif diff --git a/sysdeps/i386/fpu/w_fmodf_compat.c b/sysdeps/i386/fpu/w_fmodf_compat.c index cc417e07d3..5a61693e51 100644 --- a/sysdeps/i386/fpu/w_fmodf_compat.c +++ b/sysdeps/i386/fpu/w_fmodf_compat.c @@ -7,8 +7,9 @@ # define LIBM_SVID_COMPAT 1 # undef compat_symbol # define compat_symbol(a, b, c, d) -#endif -#include -#ifdef SHARED +# include libm_alias_float (__fmod_compat, fmod) +#else +#include +#include #endif diff --git a/sysdeps/ieee754/ldbl-opt/s_ldexpl.c b/sysdeps/ieee754/ldbl-opt/s_ldexpl.c index 1afbe7d8ad..932cc4341c 100644 --- a/sysdeps/ieee754/ldbl-opt/s_ldexpl.c +++ b/sysdeps/ieee754/ldbl-opt/s_ldexpl.c @@ -17,13 +17,13 @@ License along with the GNU C Library; if not, see . */ -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # define declare_mgen_alias(f,t) #endif #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __ldexpl, ldexpl); long_double_symbol (libc, __wrap_scalbnl, scalbnl); #endif diff --git a/sysdeps/m68k/m680x0/fpu/w_fmod_compat.c b/sysdeps/m68k/m680x0/fpu/w_fmod_compat.c index 527d4fbed2..57f38091e6 100644 --- a/sysdeps/m68k/m680x0/fpu/w_fmod_compat.c +++ b/sysdeps/m68k/m680x0/fpu/w_fmod_compat.c @@ -7,8 +7,9 @@ # define LIBM_SVID_COMPAT 1 # undef compat_symbol # define compat_symbol(a, b, c, d) -#endif #include -#ifdef SHARED libm_alias_double (__fmod_compat, fmod) +#else +#include +#include #endif diff --git a/sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c b/sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c index 5043586b91..88db07f443 100644 --- a/sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c +++ b/sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c @@ -7,8 +7,9 @@ # define LIBM_SVID_COMPAT 1 # undef compat_symbol # define compat_symbol(a, b, c, d) -#endif -#include -#ifdef SHARED +# include libm_alias_float (__fmod_compat, fmod) +#else +#include +#include #endif From patchwork Tue Apr 2 14:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87937 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 30DFF3858CDA for ; Tue, 2 Apr 2024 14:11:18 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 44F493858425 for ; Tue, 2 Apr 2024 14:06:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44F493858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 44F493858425 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; cv=none; b=A38Iov9Eq+d/HRlsyC3/LsmhQozVfN4JhSNlbPezI4ftCTWK21EN5tJ/+Q4sQCfpG3lfb2cb9miW0OgH6zlgwu81oC5j4zWYTS8Ies08vFQUTHFJyyatYNaTHROX26//lOcx7beqJ0QMQgZGVz/NZu+GgmFMhwun43Ir8bppLHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; c=relaxed/simple; bh=00T0ga3DR/rHECajkAvkTQ/4jA9dyC898LF3mdH+USY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vQSgFbkJ3jJjPJ1m5dHeUtQXFn2MUV+nzlKpZoR1aQnARO7TpX/Hc1ZSFs317xXxTaayEItu3QvQeCrF5Qi9j9pvQjcp+cTZJKWwgc8LeWUG4mPBS0tYHol0pQpVpxUX7V+B6uV/LwUua+KaOTYOdsAzWxREVQAomtZ2+sObyII= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1e27e174ccbso3089305ad.2 for ; Tue, 02 Apr 2024 07:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066815; x=1712671615; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=nwtpqSJqd8p9W3K7i70Wc5huZGgc2JNtzTHnhzv657PeWVhX6GYwENWJfWGu2frwrQ IluPlMTe2IoIXfYNWVQz6vD6UMpOvRx6xbpjUIljn/OSGwSpg9ZvPOylhKXPlrKLhE1c czcfKE9KOXWmn5lC5shuuJo/LrjRTmmd6o87+K7PwndNFE+AJFEIRpKJr1XExod/cH04 3ghal3yM23gaZM39/Hqwc92GLU0dhYXNnBATa5C8xsz4QckEtqmHAg+AF1NmMrKiBuLb tcfDeogmWkNQqen8TxrsGq3bnDGeuYkxPQl2kWqETpxzeA1lwFg3X4+e5kTSfTrLiKvW 0/2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066815; x=1712671615; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=gsZ286MCK1d8z2pkw6wvDFS/OI18gfctvSjC+2JmNHJbcVZMNq3MyUVVTpvXFsl5l8 30L6yACGL3oHY1LRH6YsLNw20J7zgIkWC9xFWELAmndD1qcCrXuW6d5wB50Xey1WW5lw yIWbVrXOWXOwNmIumy0gZ+OHT9p2kNQuUCDiTHGm0tHeGgiEnMfRv3Utgge3yMTW45KX YQEFQF2XGYLHpmmvWhXlKBpKiA70uwMErWGz2uYKjFRMHLvR24qYFyQ8Yvk/yVP4bWv+ 1Fd/lybW0bJzCj9p8QjNrwQtbDUJ07QK3foUiQV95bfuFnfrHzZjr6Sh08AoGusurEme 2aMA== X-Gm-Message-State: AOJu0YwupGvVEhujhvxwF+Y6UPNZjF5EzpISFPsZDevXEBJoL542Yj8d iNIBBsXuPK1exxSauO1sbx7tzNnIKqhrY81soMLllEvtvcdO50kCOJmcXI0joyX23QO6KtD0TnZ Y X-Google-Smtp-Source: AGHT+IHm7r+FAe5ZHto6jtfj7x+NMBb83u6VZD0AovSvpgiBrsR0vF2XKN70yJ3f7zKOK28mr/q9pA== X-Received: by 2002:a17:902:d501:b0:1de:eddc:9f9a with SMTP id b1-20020a170902d50100b001deeddc9f9amr16565954plg.53.1712066815450; Tue, 02 Apr 2024 07:06:55 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:54 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 3/7] math: Fix i386 and m68k exp10 on static build Date: Tue, 2 Apr 2024 11:06:40 -0300 Message-Id: <20240402140644.2172819-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org The commit 08ddd26814 removed the static exp10 on i386 and m68k with an empty w_exp10.c (required for the ABIs that uses the newly implementation). This patch fixes by adding the required symbols on the arch-specific w_exp{f}_compat.c implementation. Checked on i686-linux-gnu and with a build for m68k-linux-gnu with 'make test t=math/test-{float,double}-exp10-static build-math-static-tests=yes' Reviewed-by: Aurelien Jarno --- sysdeps/i386/fpu/w_exp10_compat.c | 9 +++++++-- sysdeps/m68k/m680x0/fpu/w_exp10_compat.c | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/sysdeps/i386/fpu/w_exp10_compat.c b/sysdeps/i386/fpu/w_exp10_compat.c index b53455386e..49a0e03385 100644 --- a/sysdeps/i386/fpu/w_exp10_compat.c +++ b/sysdeps/i386/fpu/w_exp10_compat.c @@ -1,3 +1,8 @@ /* i386 provides an optimized __ieee754_exp10. */ -#define NO_COMPAT_NEEDED 1 -#include +#ifdef SHARED +# define NO_COMPAT_NEEDED 1 +# include +#else +# include +# include +#endif diff --git a/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c b/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c index 0d3e718626..350f2e4b4d 100644 --- a/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c +++ b/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c @@ -1,3 +1,8 @@ /* m68k provides an optimized __ieee754_exp10. */ -#define NO_COMPAT_NEEDED 1 -#include +#ifdef SHARED +# define NO_COMPAT_NEEDED 1 +# include +#else +# include +# include +#endif From patchwork Tue Apr 2 14:06:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87932 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AC810385E454 for ; Tue, 2 Apr 2024 14:08:36 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 2B7C13858287 for ; Tue, 2 Apr 2024 14:06:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B7C13858287 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B7C13858287 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066830; cv=none; b=f5stBPbF6Q4I7yuq6BWkjNJZsLmf55fb9Hsr9qk2b/jAKXc7g1YxbdKxcg5L3q7CIVk84NWGSw2zLDg7on1VCcIYOs4cJGCmmNpBDaqE0VbpyFYZMoGcniqRrC4Nj1yqWt2BDULvG3NEQkupFaVK7y8xfN+ddz5XjQAYok1XnWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066830; c=relaxed/simple; bh=8ksAtigQ9dlqnT85lsOrrcyj2Ft6X7RS08MKjr+WFz4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=yANHPm6RXVvHL7zbukX08uAh8GiF+aRRUkYKdr3CnHZ1Xmy5s0vMWVSyVlLak5oNBRm0F2j8BhuCsi7hp2+P/U1ZXyXbJ8svN/ub0y+YRlusXk3ul/ftGnlFhLW3Uz8mL+elP3R71MknoqT8pU8aGL+kEEMF4uXLqp1P5eUBqo8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e704078860so4391783b3a.0 for ; Tue, 02 Apr 2024 07:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066817; x=1712671617; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xOR4nGMOezkTBDkCwuk3xq9dvnSfILCezaDFGnxIPx0=; b=HcHNzvWb5OzuEDsm7wcicX0Y6GXT2tBFl9T7EM3srdnP4fYecFDPojvFME9CbyNAYd hArzpYCiehjnMQaFMSAkycdLBjtZesxcj12AGpjzt5kDPt4d+t5lTQK0g7ZV3D8Kpshy 5pLOG/lYRFm/2U8mnMF49uWO4h2DUlKc3M7MiXyEUbafNwEZUePjCqFzAH5gc7+NjYDa n3gdGvJQIkXSfsw5xsTYTk0nN0aSA2qNFBmnGBkd85LaBCyqJb9ZICuLKBNOpTueiEcW ui9fqVT05BSh5FsFB57Ecgj0+TEr8Y8bdVwD202qhtrTU9fBIpg6JABGQkRK9l3m5GLT FNGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066817; x=1712671617; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xOR4nGMOezkTBDkCwuk3xq9dvnSfILCezaDFGnxIPx0=; b=Z2TMcgbTXnH05SBvjKuCveVNhXjuMDVD0Qcud9dTMllig7+zfBlCFCVcTstzZwMSU8 7s7ua9o5BU8Ubz1zWrLsFr0Jl+DT1tlGX0wBWY4JZQoeRMigS9EnK51U4QvDgZJxu1cQ dCIduEEkeRpP9Uf5etfCgSvSk9mov1etfFQasi1lTlXf6HwxAfejer4zkt1o2R1pjWr4 gbWlSoAEO9l8467RnhO976U5+pATcP+xhuMWH3OlkxN9jytKfwFXXTI/vJeMBdZMiam8 F5KamsYdsh5/orbYH2yiVQwijVWL4M1KhWO1sjhiqjJWDxdDiOV4JC95FemoxYdXNxjH ll1Q== X-Gm-Message-State: AOJu0YyxNGEPS41yYIryCoPtg4vhHGXAv8MIccJCDFeXCoSwfsSZi87p kW66qqP55JyIc8tJ1OKJFr6UiRxBmFN9ms8xM40+o+Datk7w7p4oilWcwMg3px/rhGw/L5PPBk6 X X-Google-Smtp-Source: AGHT+IGlP+ckh6xXeCe1tSzpaqyCDGsi9JggWgaZk7Tk0SNyb4ELFgo13Jg0eQimEtI78Wr0ySRegw== X-Received: by 2002:a17:903:555:b0:1e2:577:f694 with SMTP id jo21-20020a170903055500b001e20577f694mr10336738plb.61.1712066817472; Tue, 02 Apr 2024 07:06:57 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:57 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 4/7] math: Fix isnanf128 static build Date: Tue, 2 Apr 2024 11:06:41 -0300 Message-Id: <20240402140644.2172819-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Some static implementation of float128 routines might call __isnanf128, which is not provided by the static object. Checked on x86_64-linux-gnu. --- sysdeps/ieee754/float128/float128_private.h | 2 +- sysdeps/ieee754/float128/s_isnanf128.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h index 38a8bdd0fe..672bf3cccf 100644 --- a/sysdeps/ieee754/float128/float128_private.h +++ b/sysdeps/ieee754/float128/float128_private.h @@ -352,7 +352,7 @@ #define frexpl frexpf128 #define getpayloadl getpayloadf128 #define isinfl isinff128_do_not_use -#define isnanl isnanf128_do_not_use +#define isnanl isnanf128 #define ldexpl ldexpf128 #define llrintl llrintf128 #define llroundl llroundf128 diff --git a/sysdeps/ieee754/float128/s_isnanf128.c b/sysdeps/ieee754/float128/s_isnanf128.c index 59f71533ce..b73a4e80d7 100644 --- a/sysdeps/ieee754/float128/s_isnanf128.c +++ b/sysdeps/ieee754/float128/s_isnanf128.c @@ -11,7 +11,11 @@ #include "../ldbl-128/s_isnanl.c" #if !IS_IN (libm) #include +#ifdef SHARED hidden_ver (__isnanf128_impl, __isnanf128) +#else +strong_alias (__isnanf128_impl, __isnanf128) +#endif _weak_alias (__isnanf128_impl, isnanl) versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34); #if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34)) From patchwork Tue Apr 2 14:06:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87933 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C07DC385E037 for ; Tue, 2 Apr 2024 14:08:51 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 2B46B3858C74 for ; Tue, 2 Apr 2024 14:07:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B46B3858C74 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B46B3858C74 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::432 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066832; cv=none; b=VnD8IiWrdK6YU9eWHlhgdGd3pJATYS8HPTsB7dKa7lArAJWdmogVndlPUBXuzECSkNV3y7iFT+xPzl7SkwyCrGY2iwWFkCnQm2iNysA2NGglK9y0mKl4B7h2e4Ue4kz4f48ou3ZUSQSso7iWsAG90Uz9lRvyVOHQZlODK+BIP6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066832; c=relaxed/simple; bh=t05dAXF3TVUBBkzvQxjPS5tZrlsGMOmnEU7trT5ZUP4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=FobxWWtT7Pgg9WCsLXxRrtBg8M4G+UI2AXEmiO+W9GeVHlsEw4qr7K8cbXdwl54ScZFqguWCaJcjqrgoYFkElBtD86FpmGY+vrkRp9obXR00zpWnRRM9/4xRdo3K4L5A2+gr/QIE3cvrmJ5Je0RdyCZXZ9MGsB4lXQ9jfn2ZkWE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6ea80de0e97so3661938b3a.2 for ; Tue, 02 Apr 2024 07:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066819; x=1712671619; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y4YYVgQBBVROi1Leo/8wpBGHfueJ71sr1wNvXEqDiww=; b=boTL/KNmQGl9wbGcpP3EB/dnmZO2kMfyQtEl+QNXlchpiJ7r0b7jQNz5QQ8QoBalQb S6i3iz1tjfMIQKWBbQD9NJesTHLLPRyUZVRuxoeF6W4fvLCJAmV514wF59VT5BDCNNyU Ls6IXiV9xk4EJUrNGZCmE4rFLW2YecK2lccjP56MPb16nKosYW9CNXAdT84yGhcf5u4a XheWeHyO9CIelakoeBsHs0JgxBH2AND1iAnxrsD0rSCHU4HaI1oqXkTgby0xBs/UgCLU 2yDFdRBXJgbWP5KwgICmniBO49m3e78OCIrC29cbtT6NiPIg6MF7zOU09NsCw/R8HQ0x 9DrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066819; x=1712671619; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y4YYVgQBBVROi1Leo/8wpBGHfueJ71sr1wNvXEqDiww=; b=Q9Yt9geOKv7tPZzch+wgfcKKWFwfhJf/dk8i9J3UdsAgOJwF7bx1mRXfDxPCaMZOfv VQf6XZ2uXIoxwTJfncEKGYCt5kZu0JliMak1yOGcD71fe34/wa4+lYFWp9crnGKI0zZZ dvmU+04SSsYcvJ4C6Sx7Rz4858QAspXlMMCnWUZJ/n6IGiYQWPSH0XRNKCUeSXmuCivc FG6nsG+uq2UWLbflLJGLrZqc+3EeSdHhtqAM6Wyl/KoZYd4nzocT11Ebr4mmptw17Q4P MYL9LXTSFMzA6IOqBTVf/D0+/gqU0s2uXGmma+vW7zJnkhYrgndqOPpamV1/Owb7pNSl w9hg== X-Gm-Message-State: AOJu0Yy6jsyyq7ACodpYwqtZ2oPPieHqEc8xZJqcVpfnRDYqOJ6a+17S ktC/6NNJzDgjdrITXhRXCWIAp6I8RNb8K4eWYPLz+wG9sNx443NVLRw8xFpm29IuiOEU8sVZNtJ L X-Google-Smtp-Source: AGHT+IFXqzrEG3gsr9CycOSJJ+8L8sHUHlDq/8kpI6lupMD4dJy9GyIVtEq8FOXnAQufBiNLjCAi4Q== X-Received: by 2002:a17:902:a504:b0:1dd:68cd:728b with SMTP id s4-20020a170902a50400b001dd68cd728bmr11059785plq.17.1712066819614; Tue, 02 Apr 2024 07:06:59 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:59 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 5/7] math: Provided copysignf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 2 Apr 2024 11:06:42 -0300 Message-Id: <20240402140644.2172819-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Checked with a static build for the affected ABIs. --- sysdeps/ieee754/ldbl-64-128/s_copysignl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c index 11b42d04ba..80137847d3 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __copysignl, copysignl); #endif From patchwork Tue Apr 2 14:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87934 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CA2D9385E839 for ; Tue, 2 Apr 2024 14:09:00 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 312DA385DC1D for ; Tue, 2 Apr 2024 14:07:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 312DA385DC1D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 312DA385DC1D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066831; cv=none; b=fniB9qUhATAIqNL3x875FHiAyJZNBetw1fCE0exann2x3XPoSbC9iMjOKw1dsWmF8hetMIvfWd0z7eSt/OmGBY2o3EOtvNDnj/EYLYS5L8pfTIbw+AknkHUAlGBDkDL7kTiltb/8HE2zttlqI9Myu330Chp8JMCO6KGGxHJA2MU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066831; c=relaxed/simple; bh=+GUd+NvobipFsHd4JT84YfFaLyhJjveKqG6E5m+ey5Q=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Fjy42Xx93teAuDi+N6Ah7tXRhP/DObOzyYl1bLPF7kYxvMXV11cKGZ5820jBCoBPVH4hE5+Qou+Geggc3/IwWa9vQshF2W+X0QCpEnGHooCJXshZZOUgkwho+p88FeB1jz50n9j7dysYQa4Zabbk3CJg6pXD53Fr90A/8Rg/zAo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1e0f0398553so46406065ad.3 for ; Tue, 02 Apr 2024 07:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066822; x=1712671622; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lVcxbBPj3wRh+Od0IgP5noi7tARR6S2U033+oeKyZrc=; b=g+5GzGmwglqL8ye+Dwj0WQpArhO34GBtXfz4gpampNDWP8SFdRYXkiwpenXX3RJX2N CZ++6f9Z/T6IixD+5xNP8hRNQaINqz0pHGVoFyI7CUImU7rlcRWFzD23JaTSFhYA8T81 oBvAJwSzgIdn07dXMmG1r+FNa4jawv5Hs9vcWmrcpU62ksBjkOJkI9DH0HnFsqkxNvFw LmhhjNBMThQeip3HgpyCMiRs+If8O4+TD7Up5eeNfCQRgX0w0YlVg7vLRlh+//F7pRfc 1Z02Swe29sSwFBhAlLwTlmeglkIi7lDO5h6OzCAOCqrjn4Xsh//+DGkNBYZRk2WwqRuO apHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066822; x=1712671622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lVcxbBPj3wRh+Od0IgP5noi7tARR6S2U033+oeKyZrc=; b=p1wFV5i0zGCF8LOivn4lJ9kyRk+VgKL2qmOm+jn5pLkXIoDmZ78vnhyiUfg/AC/Zqp bjoR7KsPoKageY692tdD6m6aQfeNiv6e7u8mCQCR4QzsfKGJbjxRn2vV05RCA68lX14g uoCKiyG1BskchI9VK9D+to1C3siVBzCig4XxEG8mbVh5Q4TcOBlMgEVXD3ZXhOnmysZX rXyepxjT0lHo5kp0n1+LtDXh7W93SvxcXpPOxIStvJPJj6CuyRG2lTNtVwXn9sSUUcno ZkAxloTCLoZWIkttbxkuIiLkxF5aKmIU4eY2rtIe+JrZpJXVbqTaKmq3WgGczNjBxuNM Wzcg== X-Gm-Message-State: AOJu0Yw3QItPQNAeJ1HyJ9Nz9W72I9JwDm4ovfXX58iTsTpAURq/QEiI fdLHfxlduHbYIZogJuzlAAD3xI6IPSRz5LggNlPajotXHowHL9MivrdVvg2LdOcHDmqtYWmSesj l X-Google-Smtp-Source: AGHT+IGXTFYP5sLdNtaGPINlUuZX8VecN9gwRbe9tqzSB6w3FXM2yqwlsSAaw11OsT+lobxXt5USGA== X-Received: by 2002:a17:902:6bca:b0:1e0:4cfa:3063 with SMTP id m10-20020a1709026bca00b001e04cfa3063mr11954775plt.62.1712066821862; Tue, 02 Apr 2024 07:07:01 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:07:01 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 6/7] math: Provide frexpf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 2 Apr 2024 11:06:43 -0300 Message-Id: <20240402140644.2172819-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org hecked with a build for the affected ABIs. --- sysdeps/ieee754/ldbl-64-128/s_frexpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c index 73ac41e40c..f5f7d349f7 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __frexpl, frexpl); #endif From patchwork Tue Apr 2 14:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 87935 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AD2E2385842A for ; Tue, 2 Apr 2024 14:09:47 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 98EC4385841B for ; Tue, 2 Apr 2024 14:07:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 98EC4385841B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 98EC4385841B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066838; cv=none; b=AZrJsEvPb/ACErsoFBjDihYxmZApTcXTTnqvs0BKIhDaLzTJNHuCiFP9rUvgUtPlrXW7OZcL2jCHWzdPPuvXDCbTNN4P6gdR5WyZyi26cj+meeK8q5AFG+RPyqIdQCEdWKirQvTx9zlqTGSgMmViZW0suhYOAIK8vxR+dp/+EsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066838; c=relaxed/simple; bh=TFRUJKhfsKH2kTByhS6Knd4PuZwTGJlx1Q+XuhZJym4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=XV7pHPIxOE0yP+XxY7haj5zYZ66jENhMh7GDYFPiWdUYZpk+Uq+DHtZXPpV7k819/14o0KeaBL6BIc3THmXHE3aLv0d0ggZE7T/s81rn6UznCsd6Fp23VFgzdq7frHp95/xUW5Z6cSzh1JWtYBLFdfa/Tg4Td5dwkMUdRGVlF6Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5dbf7b74402so2775604a12.0 for ; Tue, 02 Apr 2024 07:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066824; x=1712671624; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BiNohVZ0JID36PBJ+XWSwqPOCnw9FJJABCCG1nulua0=; b=TQwr5mOeHn8nj//RhAbOJ7uK6Sk7y+zIdYMIYukwind+XEDxxU5uku1H20TrUXl5jn 9jeZzqggosK6VuXXIS8Endq4kfzkMg6+B62BoEuR+wye5Km7xF9Z2vuKSl+Q40VABWZ4 ePF8iQDPmx9FongvmYMpNc/IUbQSYRUCNkPoQ8KSOmJGlYfjOjaRhM8ZMz2AizYc3LNg R4z9X2IGNf/40hM7vUpv9yr9/Wbn7JGkD9z28e99Oxj+EXDIFoL9488KRAqZwLpMc5Rn psuWidfctHQ6sxeqR++V3ZEuiDhisz1qUgXFAQUeXV1HFsN0s93mfS9olR5Jx107F9zY VZ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066824; x=1712671624; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BiNohVZ0JID36PBJ+XWSwqPOCnw9FJJABCCG1nulua0=; b=OVsS9ICiZcoFnX12lJNqqgsqaWh2Ej4RxrOH8JiQeXZWgAzE7eXQXWKCgk51/dFx44 0YIvnYH/mZAaD/yqTS04lWwHpUBtpUi8R3Ls1ZNlc2+mPdezuuMJhn1PfvqMLkbgWHpY kNvFMgcjwktAqLgxSuYKrpOhTOcSOgTrzB1LxeHR3ZX9dx2/2jw0W4pYbhNDqNavbrMv HjGEsiLg9YtB+f7sRApUh9BtFJfK87kVT+gt3ZIihVsZD54fkMqkZIxV2S1JB/MYuXVB FlQrnLnKwOlUGdKL0ypI20Ky5KjvZYg2QFV8Uwi9uhITjssymgClmh++kkSapJcXRWQs GUvQ== X-Gm-Message-State: AOJu0Ywmlh4C/VlZ35yWG57QwrOOC72AZ2iLJlrDhvcJ3ymdaumr0knv pW6tJJkZ2CoV8JdR9orwO9XG3gDVzOFCCDKGjp+VFJs00xScG31lLmMX0QGt/JzCBP3CQfGib9g y X-Google-Smtp-Source: AGHT+IGsvh6HjLxrPZ43m0x8RI+7E6pGEmfKl6ANua6poZWSYggWW1yuoOb3QKTLtxir2h6DfpcZBg== X-Received: by 2002:a17:902:f805:b0:1e0:4afe:b70d with SMTP id ix5-20020a170902f80500b001e04afeb70dmr9315774plb.64.1712066823996; Tue, 02 Apr 2024 07:07:03 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:07:03 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 7/7] math: Provide modf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 2 Apr 2024 11:06:44 -0300 Message-Id: <20240402140644.2172819-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Checked with a build for the affected ABIs --- sysdeps/ieee754/ldbl-64-128/s_modfl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_modfl.c b/sysdeps/ieee754/ldbl-64-128/s_modfl.c index 7d7aeae111..ba3d31334a 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_modfl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __modfl, modfl); #endif