From patchwork Thu Mar 21 16:43:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 781583 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp927724wrj; Thu, 21 Mar 2024 09:43:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF8hgbia0AQN15sD/jHr1ai1NbZfIXejfG/J5Q0glPPZbF/mMnXWbJH20Mxe0mcVEsoA6CGDLYOMuLTAqdwFBT X-Google-Smtp-Source: AGHT+IFP+Bi506YmN8v3hUQobxyeTXSonJ7MfdZFVY88Pauij5QUg1l37Y+eqUMAsgecusY0VJIj X-Received: by 2002:ac8:7dd5:0:b0:431:280b:619c with SMTP id c21-20020ac87dd5000000b00431280b619cmr1512021qte.62.1711039425605; Thu, 21 Mar 2024 09:43:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711039425; cv=pass; d=google.com; s=arc-20160816; b=k9H6INGPnGg05gYz6FfaMAMd6laphpnppnaJAc1e8w8eDqRvbLO86uhm8jeOPUUfBP 7GeWTutVDzUGJEDvCCyxT94nAKw/ODhXvQ6TPWUY7iUDl9iIcLc4P6jiCODzL/mB7Wss wuRxAcUWL7DUahauZCVxuVrXCafP5YrJ/EcDiJZBhbGcQC6dfKL8kJO+acsz4r81zyl6 q6GlAoPY7e5LEwKawSuyBsW07aDPdrKhhU3oCa5zVh77TMgKVglFsF2warjzautfnU8z JTWP5sofDI30qthrmxrubWkoHQIbmy0LTQq7d6tIH16D6XtKvSgQVHAiXFK7MX/P6bYT Zimw== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=tbCH85zBJ6v4JpB+F4VXnHhTH2rtl6HiE6Am99m6BW8=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=G3PWx+FSdvHdSwhB3qUFXj4sHb0zKiKuTiHjySFYDI6i/KDz8pYM4uzNUW8kVsnnrv TVJqs5vAhzzdp/zqAmin5DYSxtQ+6ObfLValAp44GZmXQHLmK1gYOo4zzitmCB9KVNa4 D+mjeKmvT2qEWAlFY/7WecPNQn3smWOhsmcnyNIXEWcuw8JXqOQMPwx3PEVom93D/ZsU ItmSp+n5jjgVGHmOsrk4q0WUmLBmKZsYunhSAi3R5RL8BcPnmIIkDgiRvzS7PX0NtyzU 82stNaWaXGcQ3TbC14vAOF8e97SRu60MEGhnXnGL+ciLIrQJ+7ULIgi8ZCYAmoktowfl d3zQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opBXwBCQ; 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 h20-20020ac85854000000b0042edcfb1f28si91896qth.92.2024.03.21.09.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:43:45 -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=opBXwBCQ; 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 3B1FE3858C35 for ; Thu, 21 Mar 2024 16:43:45 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 3F9F63858CD1 for ; Thu, 21 Mar 2024 16:43:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F9F63858CD1 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 3F9F63858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::631 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711039413; cv=none; b=tm974Xjeq/GltE53Vjh9RQ6WwtnaVf3J++VXZHhUYLfthYig6KqxgaNBIiCHxD9J/Eldf7SL3T1/gGf6a50K3aNbMX9s7WdCS31atl9WiKfLWvwH4m+bSEcRnKutO4aNTIjQ6cyApRzQGt7kZSqY+Xj3CHwLsTB1Y2xnz8pk3ew= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711039413; c=relaxed/simple; bh=6gbkLIs412TStYFVrImS6Ahr5lh0ZAfWnUY78tdszPA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ekQFGCeIxsX/JmcmWr15kxTqH4cwmdBtnErI4zyzdL7W993sh/7jJbZuSRldh7e+aJJpjlA1ZzzhFsUeLJIHufSRVtzcpPmk9D9WDbzzA2cotgnuX5as9xgGnC+/K53iEpS67bj8VqVWnfjRMT4qD4OQh9AguCCx3FqSaCW8xQ4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1e08512cd86so2012245ad.1 for ; Thu, 21 Mar 2024 09:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711039410; x=1711644210; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tbCH85zBJ6v4JpB+F4VXnHhTH2rtl6HiE6Am99m6BW8=; b=opBXwBCQPqAz9Uj9OrpNsrsN+VDrOmn2+n4XZe20ZytZ4OV3Id603PBFkT4+Lh8Xwn GraB/SQn94xvGj3PY8yXy+33wmYfWiAq930ARCgnMmdKwvcWqY+/hkJUgrikDTxBSK6R iBOBlbsp2Jv4pttluK+uLTmhmpmGCSKmoLC3Bg+0KXiJIwfXFxQWe3U5cex1EDnruLII 5Ryu3DLnIAO6TT/i6q1/YMsFe2+EOJFpjXJTbHFj2bIVFoCBxZjj2B8pvTUYZ5HsgZwP Lto/IO0Ty+6R83bI4oJd4gG4wtna1ndwwn7PSq8ArAjwqdEhzW0LhXAn542MZtwPMhjA bM0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711039410; x=1711644210; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tbCH85zBJ6v4JpB+F4VXnHhTH2rtl6HiE6Am99m6BW8=; b=JUR5J86HPvqKeX4mVyYhu1nYj8RzEjBurfXCot7q1+QIgrMI2Ftv0Uhiff5xBg2U4t 6LlrFPemTKNJl4l5aKqjo2UTtqTXSaXaeB3sAqYwLUgneokxnNgks4zdnOZhhvnkyPGi r6pndPelN2yHwxdf4lOg/f7vVro1jcDdOAjylTWOTmbgkcUHYcWeiR0x+vMtZqFVjKiv nUV9hinA3rR2aT7KQ4Hf+6zXLj3q9hRXPIolgliQiQ5TtMN5V3cmuac0YWJYS75SLPQV EXGh4xL9NXKyzfGVKNzj0Lh+2PrYvFBPBV/6SuGGxbfYz627BkwSH0sam8xbRn80yMFX kUOQ== X-Gm-Message-State: AOJu0YzJhTePYbEp9S9pg73zl4ZxZChiDPywbbKBtroJD1NnbtXshDVS SIDI2i1dq9gO/o9ly7OK1a4QtAjgY75e6mbad7Y9zHrARJzdpqWp8NzvKMrAvC6nwh5z3fVkRA3 4 X-Received: by 2002:a17:903:2990:b0:1de:f93f:4410 with SMTP id lm16-20020a170903299000b001def93f4410mr2999974plb.8.1711039409654; Thu, 21 Mar 2024 09:43:29 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:1d04:42cc:aea4:27d6:375f]) by smtp.gmail.com with ESMTPSA id q1-20020a170902bd8100b001dd75d4b408sm18074pls.302.2024.03.21.09.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:43:29 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v2 0/6] Math static build fixes Date: Thu, 21 Mar 2024 13:43:19 -0300 Message-Id: <20240321164325.539976-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 recent math optimizations remove some symbols from the static build and due to the limited static build check, along with a --disable-shared being broken for some time [1]; this issue has slipped some releases. Although the fix is straightforward, I added an extra framework to enable static build for select math libraries using the generic type framework (which autogenerated the tests for all supported types using the C template files). This should help with future static build tests. Although the second and fifth patches should be back portable, I also added some patches to removed the i686 assembly optimizations. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=20845 Adhemerval Zanella (6): math: Add support for auto static math tests math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488) i386: Use generic fmod i386: Use generic fmodf math: Fix i386 and m68k exp10 on static build i386: Use generic exp10 math/Makefile | 108 +++++++++++++++++++++- 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 + sysdeps/i386/fpu/Versions | 5 + sysdeps/i386/fpu/e_exp10.S | 51 ---------- sysdeps/i386/fpu/e_exp10.c | 2 + sysdeps/i386/fpu/e_exp_data.c | 1 - sysdeps/i386/fpu/e_fmod.S | 18 ---- sysdeps/i386/fpu/e_fmod.c | 2 + sysdeps/i386/fpu/e_fmodf.S | 18 ---- sysdeps/i386/fpu/e_fmodf.c | 2 + sysdeps/i386/fpu/math_err.c | 1 - sysdeps/i386/fpu/w_exp10_compat.c | 3 - sysdeps/i386/fpu/w_fmod_compat.c | 14 --- sysdeps/i386/fpu/w_fmodf_compat.c | 14 --- sysdeps/ieee754/dbl-64/e_exp10.c | 7 +- sysdeps/ieee754/dbl-64/e_fmod.c | 5 +- sysdeps/ieee754/flt-32/e_fmodf.c | 5 +- sysdeps/ieee754/ldbl-opt/s_ldexpl.c | 4 +- sysdeps/m68k/m680x0/fpu/w_exp10_compat.c | 9 +- sysdeps/m68k/m680x0/fpu/w_fmod_compat.c | 5 +- sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c | 7 +- sysdeps/mach/hurd/i386/libm.abilist | 3 + sysdeps/unix/sysv/linux/i386/libm.abilist | 3 + 31 files changed, 161 insertions(+), 135 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 delete mode 100644 sysdeps/i386/fpu/e_exp10.S create mode 100644 sysdeps/i386/fpu/e_exp10.c delete mode 100644 sysdeps/i386/fpu/e_exp_data.c delete mode 100644 sysdeps/i386/fpu/e_fmod.S create mode 100644 sysdeps/i386/fpu/e_fmod.c delete mode 100644 sysdeps/i386/fpu/e_fmodf.S create mode 100644 sysdeps/i386/fpu/e_fmodf.c delete mode 100644 sysdeps/i386/fpu/math_err.c delete mode 100644 sysdeps/i386/fpu/w_exp10_compat.c delete mode 100644 sysdeps/i386/fpu/w_fmod_compat.c delete mode 100644 sysdeps/i386/fpu/w_fmodf_compat.c