From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by sourceware.org (Postfix) with ESMTPS id 4D3CF3858D20 for ; Sun, 9 Jun 2024 13:40:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D3CF3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Wilcox-Tech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Wilcox-Tech.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4D3CF3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=45.32.83.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717940418; cv=none; b=uiod5Lsqm/52qM/u1eWN14UJuEPhpiBrYF3FO0Jst9dCo0R4xg0LdI6Y2yCqed+NMkUO20H6gcMucBhBhAvzv5ZF2eOGSA+ZakAnsDP+74lAKw1oQ0ZThLXo7a1Nu2pA5QFjcB55Riey4DIPP7E2kJsn9avXxTuINLKd8KbdWvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717940418; c=relaxed/simple; bh=zjjZvwrDrs/IJ3W7sD4r6OaGY7WykjA5DuPSSeUS0zA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=kN7zijxRoRdiqb1Noy+gLIDN9s+9bIlP6AUsko3xWeLb1XcP0ZjymzcbMoPqq5U4y3Uv6j1Ye0i/DjCGYXAV+Zh9Z10Z7xDckhvdSYW6sJ1hyUu/QgGSIOs/ygYe9Te/ZszHbLSfNtbjcmgzoSQ2/UUPTTI2QFXkYbiGAPJnVdY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: (qmail 29416 invoked from network); 9 Jun 2024 13:38:03 -0000 Received: from unknown (HELO gwyn.us) (awilcox@wilcox-tech.com@72.192.66.135) by mail.wilcox-tech.com with ESMTPA; 9 Jun 2024 13:38:03 -0000 From: "A. Wilcox" To: libc-alpha@sourceware.org Cc: "A. Wilcox" Subject: [PATCH] x86: Ensure MINIMUM_X86_ISA_LEVEL=0 for baseline [BZ #31867] Date: Sun, 9 Jun 2024 08:39:33 -0500 Message-Id: <20240609133933.62366-1-AWilcox@Wilcox-Tech.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The value of MINIMUM_X86_ISA_LEVEL starts at 0 for true baseline x86 processors; 1 includes SSE and SSE2. Before this change, building glibc for a target without SSE/SSE2 (such as a Pentium 3 or an Athlon XP) would result in the following error: /usr/lib/libc.so.6: CPU ISA level is lower than required Fixes: 46c9997413 ("x86: Define MINIMUM_X86_ISA_LEVEL in config.h [BZ #31676]") Signed-off-by: A. Wilcox --- sysdeps/x86/configure | 2 +- sysdeps/x86/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/configure b/sysdeps/x86/configure index d28d9bcb29..7cf243efb1 100644 --- a/sysdeps/x86/configure +++ b/sysdeps/x86/configure @@ -152,7 +152,7 @@ else libc_cv_have_x86_isa_level=baseline fi if test $libc_cv_have_x86_isa_level = baseline; then - printf "%s\n" "#define MINIMUM_X86_ISA_LEVEL 1" >>confdefs.h + printf "%s\n" "#define MINIMUM_X86_ISA_LEVEL 0" >>confdefs.h else printf "%s\n" "#define MINIMUM_X86_ISA_LEVEL $libc_cv_have_x86_isa_level" >>confdefs.h diff --git a/sysdeps/x86/configure.ac b/sysdeps/x86/configure.ac index 5b0acd03d2..2b1070cd98 100644 --- a/sysdeps/x86/configure.ac +++ b/sysdeps/x86/configure.ac @@ -106,7 +106,7 @@ else libc_cv_have_x86_isa_level=baseline fi if test $libc_cv_have_x86_isa_level = baseline; then - AC_DEFINE_UNQUOTED(MINIMUM_X86_ISA_LEVEL, 1) + AC_DEFINE_UNQUOTED(MINIMUM_X86_ISA_LEVEL, 0) else AC_DEFINE_UNQUOTED(MINIMUM_X86_ISA_LEVEL, $libc_cv_have_x86_isa_level) fi -- 2.40.0