From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 742881F44D for ; Thu, 21 Mar 2024 16:44:04 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=opBXwBCQ; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A03393858CD1 for ; Thu, 21 Mar 2024 16:44:03 +0000 (GMT) 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-Google-Smtp-Source: AGHT+IExs3roDegGX+c5WVsfPHR7WuxbjfB/YsnqFueFgyKJuyFLjB+VNmTacbSJ0Rg7ykzLZPoe/w== 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 Content-Transfer-Encoding: 8bit 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+e=80x24.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 -- 2.34.1