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: 785121 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4954295wrt; Tue, 2 Apr 2024 07:10:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCGYTtNnuy2E8XSFdjgYodk2B+j3Y/yj5SeVii/VcTLs4chmWe6kXXPak6PeicDkXm9DEjal5wqCnlSBvaPMVR X-Google-Smtp-Source: AGHT+IF2Nr0XELXTF8DtFsHJLOdwxEVyL7ml0WRTNY9Ah5KxJLf12L3DdpgdRtPp/JxqPSBBoa+u X-Received: by 2002:a05:620a:558d:b0:789:fee6:3770 with SMTP id vq13-20020a05620a558d00b00789fee63770mr13276277qkn.19.1712067017124; Tue, 02 Apr 2024 07:10:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712067017; cv=pass; d=google.com; s=arc-20160816; b=nz++/i9Sw8TRYGsocANXt/GoDiCHonL8Gukj888vtFQUzscGckuM/2b2yhhV2Tlucm 5IAcu/kQZvfVYXW8gq6PYCS0J/8CBp/3vzoE1HjuGSOSodx9O8JVWFZSx6G3dFGWqfZE cfaU9IPq9CUeswYuZ3Ib90tiYKAXlqNq2jMbeaceBIoDAnHGnMLFFBuaDcffr9NXTQBE ePDhwYO9haVKhRtozGhTRvchs42B0kwSRS6VcNzRYXKBTmdX8lymjROuJqM6Gbo6Thmd Xtnk4taz8KFy3G9DQO3dfpNsqF+vLwfqDnYNLdLu5JflLxFcRpO8bN+xDBqKAzyXLHlN kExg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=cTWul3ZweVLqeWA/O787T6Pmir3fhv4nYm2+Dp3UUSM=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=C/Dqql2FyiRFpTY34wYqeJT3+vFtRKRc8YC7eFVl7gRTa/6zjirOl+5QS/JktleU3x hASjBae3q0ZcG7zFBP2Y+ALW/iBkZJGeIgnpqGwkVvOJG7f8rD3KYBP+qT6rGmW0tY7y gadyyfyYRvE/p03CdD5f22kFLtNOWOmazT/zOEEmFkddYX9X4AIYanpkHixE3JFwGbCd 4HCNshx1FyxQmePeEzXU6VOkBhVI4K1ZNiQ2zu1PdJsGLMP8rKPD7e+94aFpJpeLLa2Y 5OpYdMCDLYDgGQ66E+47u7p7xbyTWZTjI3z35an5de7BsqtODYzcYvG4+HCSfKx6MmW7 rvdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rHTYnkGg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ya1-20020a05620a5e4100b0078a65bfef07si11751500qkn.656.2024.04.02.07.10.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rHTYnkGg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5921385843A for ; Tue, 2 Apr 2024 14:10:16 +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-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+patch=linaro.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: 785116 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4952700wrt; Tue, 2 Apr 2024 07:07:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmWfAx4mEwZ9GS0bqo09uZVxq0p7AZX83Hwg1ATUEKv5a1T1YWcopZK12wN5aYMqmflaMxGDfwiWLbhsRVAMjK X-Google-Smtp-Source: AGHT+IFStnoMa7XoL1xKHf+/b73ah+4rz0E3zznRU79V6htXYCe3jGuJx+X3RBmeGmAoO2CQzl+8 X-Received: by 2002:a05:622a:1482:b0:432:f681:cb46 with SMTP id t2-20020a05622a148200b00432f681cb46mr6276461qtx.41.1712066852301; Tue, 02 Apr 2024 07:07:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712066852; cv=pass; d=google.com; s=arc-20160816; b=pcBfFT6EqAzRlJws8PkzTGJtd6NLtl9NRB+jEqydYmUh/wPegpInQUeL+DmflOxSb1 jtOSJOvXAmraQXoKmamBUyn4zdaPryVd+6ekYoukr0LzcpOeP4rL6X+VSJKFY6RT5A63 /5p+Wztlv5Hi/5hWNfcYQo319nA0J/AIdt1stnb2WrIy//SvcTrXupppcu3P7zzI8V+L iaQGrOkYWYwcMD0i+Ugrvhh/TdXbXXDek+WJlvXzDCV60ExGarxDs5vpJYo0ctNofCyT 0el/tvR8JppYcC/YoaZb2sqP3QICZh93xZTF+y653AsxZVUCwMNcG3t42qKiVPgrdhQa y3/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=niJ8IbGqn67vNOx/k+HT+uAqNd8V6iptrnTofEmu4eE=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=dYNsF9IEWAHJ26qEU4wl6b5lwQY2eeQzi9+osaV+5J8mvix0JAA3py2qvQNky+1EyU P5T2izp0jWFzgrLg6HoBf7LpR4L6RJInkRnYKCbKZUBTSL/W4C5s//SmY1INCyQsEqZR P2PTsjONjxhm3+5xZnaCFYV3vTMxVMxQwGtklRx7/R70pSsQ18ggo+1d0xB5jPJZ3yAW aS7sf6F85ka81PoODGDJEsCVUB6sRlmH+k9f9RA8x0rnxy/6ajV+/j5B2we3rbU7BSjY r7apb7oCKWtdgNGEqOJfBnbjrPIEzf4UeA/M9glIMMhFka/jerV2lLyJ5/EsDxFOexjk vZFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wo7C5Gxf; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d19-20020a05622a05d300b00430a6018435si11960495qtb.738.2024.04.02.07.07.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wo7C5Gxf; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2CF83858419 for ; Tue, 2 Apr 2024 14:07:31 +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-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+patch=linaro.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: 785122 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4954729wrt; Tue, 2 Apr 2024 07:11:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfJ64xb8WmX9uXXoRCIw6hwCk/+BV+/ljWrjyCFrcy7e3JAL0ZaJFACYnUJgNLy+4jw8DnrVZivH5Q82Mi4xpI X-Google-Smtp-Source: AGHT+IE3HISOocw5tWyHbc6awAtSdxhUk79BWrRN9W+YBV0IokC7g8Me69Dv3pLcz+1mx7Jw53AL X-Received: by 2002:a05:622a:5cc:b0:431:3df8:30b1 with SMTP id d12-20020a05622a05cc00b004313df830b1mr16029910qtb.40.1712067064739; Tue, 02 Apr 2024 07:11:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712067064; cv=pass; d=google.com; s=arc-20160816; b=Xz5Eqc5RjNwRACaKhiVs5sgieHJa9bv8LiTF58eIc2QtrGnVe+0MtOhVrUlbHS0rjV yj6f+wzEg9GVf/H9iEHAQ7rTAwBBms2V9dj11kdbdG80b7JatiaBJGcP4957P7y7nuIj rDUaDnRH6VRIqqlq9Oywvf/LK2rmq7fYLuZfMk9CipQjhCKLM9c/bJYYzzInzs570lV1 o1SBNBA7G4bJZ53uHqHBM4G6QdRN+sh3G+04DNoxCO18tahcHICA5LFr4beQryoDQo7U 3ErqXoqtmSvEUAHuQ81Qwu5ALYVxtKLTh7eatMVmWYy+c946ipm4z6Mw8DB5oMaN87op gvig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=s78uZ6DjrcaHhYG9DH//FBJu2QCvrzhKEO3kEsZ5hegKRCeWu+77PuTke86iEHkPmM gcJsdsVLBkVmplftVTduDZ28Vuevx1qydQMyXYSrH59PB8RmAmIdQeHfwAJ5/WVp3ATM KrZgN3hSwoyj+x69mZGvsxfJGp/9ZalnAP86VfWKqsUaRbM/FbIDhOcN06uc+0zuj44r w0QwOHzIykQk1nHElyrgbrN8DNssiHh5Zk85vtirK4dGedqs/wvLVqTJ3CT9NwHHsPv3 bySWPW4pG4SsdgnKDrP/hUbsZCTir6d0FiWW6qeF25fkTOCUzU2J4dzGaJTXmZjCxF/L 1LdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nwtpqSJq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b19-20020ac87fd3000000b004318498b1d3si12325454qtk.424.2024.04.02.07.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nwtpqSJq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 514893858425 for ; Tue, 2 Apr 2024 14:11:04 +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-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+patch=linaro.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: 785117 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4953145wrt; Tue, 2 Apr 2024 07:08:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+G4NSRRBa65g2QW6aySgZwAGUn5/JnskJRW78UQ8p/XHpDTqj3ZwX/r4xOPrWy6I80A89r7eerQRgGCl4hgWG X-Google-Smtp-Source: AGHT+IG6nzXDuFp72C9bN3R2reQaRptJ35K8pC+AIIt3EOt5Q5x4zo82nZhpuXDGvYqcylaABR2R X-Received: by 2002:a05:620a:290b:b0:78b:ea95:8b09 with SMTP id m11-20020a05620a290b00b0078bea958b09mr4638327qkp.16.1712066891174; Tue, 02 Apr 2024 07:08:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712066891; cv=pass; d=google.com; s=arc-20160816; b=odv3jyKIJl7ar2spRwhRCfPv+uag83xIFJJwXZQrcGwBksvBF96MhSrZP6qwe2ZRDw 8IjGcOhxq4HMLElR1BZOenRS4692wqnqyRFpyquF5nzgHUU9Iq15etYMgKql0uw8EuQI 4SqV6sGpdWT4Zsk027SiuMiTTbLkHJMK1PkblcoriWvrbh6HtLKE0sNzUkkZ6hnpnNNH FXlPG6xc3X3hdScGjiGLAIFZ+iIG5sWmEszjXYslVoEhlOWbBL5hJjwArS0GugwhdGD8 82v13VMQCTdmQMccKnzWl+fV6XqbA5vmG+kglmU51jdt0U24SuNPT45b+jZDyXmor35Q wKrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=xOR4nGMOezkTBDkCwuk3xq9dvnSfILCezaDFGnxIPx0=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=tq0dNEP/mX94WY4JlGWBRX7EVNcKHZWldoSFrpm6udr5Ee3UfA5MQ8zxYznbNJx/9R MXOQqPhKGCNaRdbYN5VZTjjzODrGqMX4Eh5Qw+5q01j1feJ+SAXlNfjNtZ9QSI9ZxKc9 5TQ8FvMYCiJqRRxSQu+4m6i3kAhG0ODjKqyeheRsm354k7oyCOu3Yl/HV7xdGFsh6z0s bmLDcWZt56gHOd+22XVNz+pryesySHcfXT08+fEwAx3ZoUDiRWuEwX/zL2BnLGtW4fZ9 l6CWkMWCv3hrbEQImi3Ey2ObNrkG/uQgct1nUBNWeIWmceCdncOrxpQxPUrWDRbaVbnT eIFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HcHNzvWb; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id wj24-20020a05620a575800b0078a3a113293si11948535qkn.98.2024.04.02.07.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HcHNzvWb; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B6FE9385DC0F for ; Tue, 2 Apr 2024 14:08:10 +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-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+patch=linaro.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: 785118 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4953374wrt; Tue, 2 Apr 2024 07:08:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxLBp2Hlf7siVKcbFna+CVH28lgSb/rUmShgRMtbUWQcahHywnsjajzIZWchMLOSGR8JzvcXfANgjoBgRLZjYK X-Google-Smtp-Source: AGHT+IE1xRkB7k9f2gnUFmscwtHeskI3cZvaG+joLfDKQRMtmegmWcj4gf11GVP2s3extZZ+QOoF X-Received: by 2002:a05:620a:8c3:b0:789:f7d5:806 with SMTP id z3-20020a05620a08c300b00789f7d50806mr13441100qkz.68.1712066916911; Tue, 02 Apr 2024 07:08:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712066916; cv=pass; d=google.com; s=arc-20160816; b=HZIymPfaFifw/c4UpIYX852VQ/AMs2ZnRbwUfjb6dawHDSiS2lRmfWcZbPC7rw4tvg tQGZ40001F0XkBqd3OnySB0ooH0JSLqBb3o8BamFBVpLM9BptuR7AvVUaLKfLM3rwEf9 F5uInOcQa54NKGhInQI3KQF+CDde6pKN3DyOW3LBCvI594XqkbwJRdhLLCfzyIovQfXP oDvXP/cMANcf0BgXM3WnZWh8rIadIcuME7TDnpq6CRaXgFs+PKNSgZDT05tQXw7gXxMS +ePUm+cue10QOZs9ph2QCMAyHBstfnjkqqMT8N3yUuQ9Pu+UPFlSA2R0jKkg9DqzVn9/ VSnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Y4YYVgQBBVROi1Leo/8wpBGHfueJ71sr1wNvXEqDiww=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=ILaeKwkPDcKM7Czn10i7bdGqCNlQ8Lvl38RwUxx/BfCXBQluOFfkXjsvrpDqHaLmoZ AqaVMnFBX86/Oy51tlWSpc+afiezxdpueLaHA+7W98UYukrdejtej41XzTvwfR8dNvBA 2Iqlqi5LBnL3QBWdtWOYGphrQJCSG186jMXsCGPEtzp+mOe82uNIZTv+P/7/xuRYACQb vapHIdoOT7sxtMqbHJ6MZdJFqhxzofopLd2xwgWLstpE0kvOVF4np4MPnQkYWpkwGIJ+ n2oFsqcpBfas5LpTydAm1ZyHyVPu4IWPdkhFtCrgrpjGHgyYmdvNPORBCvIa8jzkdax1 WMug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="boTL/KNm"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vu1-20020a05620a560100b0078be44a0405si4444561qkn.146.2024.04.02.07.08.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="boTL/KNm"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 71243385E449 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-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-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+patch=linaro.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: 785119 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4953430wrt; Tue, 2 Apr 2024 07:08:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/BBFhxHQPYKi1vUclSUzt/mFg+qu+E05AEqG73sMTi6qYqHb05W0Qqu1XvOjH3YRN+He4cQw3aFJydUjkDaUs X-Google-Smtp-Source: AGHT+IEeuyYcq/rvxtgUXRI+2YL/GRKTpKKquBQ37Qc3xjxoorm4QVslzNh3NcsGvCwTZ1RliaDm X-Received: by 2002:a05:620a:3703:b0:78a:4815:1931 with SMTP id de3-20020a05620a370300b0078a48151931mr15420483qkb.9.1712066923906; Tue, 02 Apr 2024 07:08:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712066923; cv=pass; d=google.com; s=arc-20160816; b=iadSEu1Ab081kzteFPBA71XewTC1jEiGPm6iaEnHgIYkBAVOj1DYokyFo+KktLmLoP f43QhxziiASu/DTTtsd2ycakatmQHZBwfz3yaCx23pvLCyKy5xFQ6v7jPGD6rTF0ZJl1 Hbpvwkl3zqhwzzsxqcklMMnxFS8a95hwNdXG1G7GcvBGyx9s/BXCl+I+EcmpsrW2asiJ cnBtOkNH/K663PIWAh1YDC2ZR5jWZUZNCEGJRs2TJQZKwYXD23OSJScJAIRWD2wHF6e4 DkawITdtff2euCgQDgJguqEt9uMxySrivKiDiGy93yOzqIkp7/P+CiSQpFDhaJF0ePnO IVgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=lVcxbBPj3wRh+Od0IgP5noi7tARR6S2U033+oeKyZrc=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=ia9Gnv7F9c/lA4Rm8cL1VIbJv6oTpY/EIEBbYh8t4/B+B2zM70KrgDkYIHE8g3dmvf 3bqiONexriT3btPFtv9hq4rXSFHeE07YxI6EdacQsAaqSTjoXQV7QrFhKDeDnAzG4Dyc MqZkogt4YVoDDgliUhc+ENqNS1hM4KSeq8uVhaJNzD3A15VrG+ps/JPt5rUmI1I9nkOJ an6pQYYHWrWY8DowLQ+c4mDtooGtwjp76jfvulmzDe55GufeC1AGPHkx3E2hUAFUPw4u 0YYj3+/avSCtzZS8QiW0DZesjDItdg9uGr/mWRpkMqcVjiVGwafGvCioaMsCPdu3jIaj kETA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+5GzGmw; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w24-20020ae9e518000000b0078bd8f4255dsi6721834qkf.648.2024.04.02.07.08.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:08:43 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+5GzGmw; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 79D9E385ED4F for ; Tue, 2 Apr 2024 14:08:43 +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-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+patch=linaro.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: 785120 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4953857wrt; Tue, 2 Apr 2024 07:09:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViAuIWsjOZLUmEl2rgtlkL1S9zejtsBkOLFbBATJYHZY5Mlqto+ZMw8dQhN+8Y0eKxlvD4XF6voVNk1aEVj5Ev X-Google-Smtp-Source: AGHT+IHFW+LaMa1MgcAdYd3M8YPIQPD5No7hJvZezc3SeYc2DxE0LMqxPJQ6DM5AFzxbcGT/+rzP X-Received: by 2002:a0c:fa84:0:b0:699:4a0:8518 with SMTP id o4-20020a0cfa84000000b0069904a08518mr6592827qvn.19.1712066973422; Tue, 02 Apr 2024 07:09:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712066973; cv=pass; d=google.com; s=arc-20160816; b=mZflbXxkXtTpUV94wAxqtZVie9262SC6cR+3Dmwko9xA+UYIFPU4yViqhk2pCvV6nA TfMWHNaB+l2OzmK90W8XZKsJNwuvkMKheacM1yvHzIKnfsGphK2XSxXjml5cxMpHnaN4 9zWpBJQcRxAqfKwleHvq+ESIxQr5s1HxgyJYABpJH6zm3kQC2pVDqIRv2YoppwV7sv/t 1Czbtg6HoyqyLG3JrasxtiNxgKFwe1YMcV6sjrucOAu9Sk+YKU7jYvCwha3FmQuq9szM m+goWpy0T5aQU33DpeSrnFfGheRLFa+OtExKF9CL1xhZA1JGgsgZVUu8F+CTMCnfRFeU XE3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=BiNohVZ0JID36PBJ+XWSwqPOCnw9FJJABCCG1nulua0=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=kEzBzOJY7Bs4SZnZNLOHV0dV4XkNtZv1bIFJcuMTaUC1ZHeNGHwxBGajJ8VQuPnQnF HuRCQlp3ivRbPV0URZhBV7tT/OGtHsi9aRKZ8uPUCg3fHvC3rFL6o378fTcmxdbX6j89 YUH+MJnAwXZbl4HXEOIYqureXKjDtjmZJx642y/2Crv9x6Ffh7PWVR5HIM1ZhphfnIKd fNvlY7LQWug8jkDfghPhU+ziWZVFz3cxphNKmBTD/IRRU+WWVvobusQIVn1L0E2fP1v6 ib2afs0eRqiK7g4NS5SdvRTMcu0LT4L1ohi8LEjNMeYk9umcYMad5kWyqAhXHHSD6atB Vr7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TQwr5mOe; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qd2-20020ad44802000000b0068fe057717fsi5635897qvb.139.2024.04.02.07.09.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TQwr5mOe; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0FC383858294 for ; Tue, 2 Apr 2024 14:09:33 +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-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+patch=linaro.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