From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 44F493858425 for ; Tue, 2 Apr 2024 14:06:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44F493858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 44F493858425 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; cv=none; b=A38Iov9Eq+d/HRlsyC3/LsmhQozVfN4JhSNlbPezI4ftCTWK21EN5tJ/+Q4sQCfpG3lfb2cb9miW0OgH6zlgwu81oC5j4zWYTS8Ies08vFQUTHFJyyatYNaTHROX26//lOcx7beqJ0QMQgZGVz/NZu+GgmFMhwun43Ir8bppLHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; c=relaxed/simple; bh=00T0ga3DR/rHECajkAvkTQ/4jA9dyC898LF3mdH+USY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vQSgFbkJ3jJjPJ1m5dHeUtQXFn2MUV+nzlKpZoR1aQnARO7TpX/Hc1ZSFs317xXxTaayEItu3QvQeCrF5Qi9j9pvQjcp+cTZJKWwgc8LeWUG4mPBS0tYHol0pQpVpxUX7V+B6uV/LwUua+KaOTYOdsAzWxREVQAomtZ2+sObyII= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1e27e174ccbso3089305ad.2 for ; Tue, 02 Apr 2024 07:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066815; x=1712671615; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=nwtpqSJqd8p9W3K7i70Wc5huZGgc2JNtzTHnhzv657PeWVhX6GYwENWJfWGu2frwrQ IluPlMTe2IoIXfYNWVQz6vD6UMpOvRx6xbpjUIljn/OSGwSpg9ZvPOylhKXPlrKLhE1c czcfKE9KOXWmn5lC5shuuJo/LrjRTmmd6o87+K7PwndNFE+AJFEIRpKJr1XExod/cH04 3ghal3yM23gaZM39/Hqwc92GLU0dhYXNnBATa5C8xsz4QckEtqmHAg+AF1NmMrKiBuLb tcfDeogmWkNQqen8TxrsGq3bnDGeuYkxPQl2kWqETpxzeA1lwFg3X4+e5kTSfTrLiKvW 0/2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066815; x=1712671615; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=gsZ286MCK1d8z2pkw6wvDFS/OI18gfctvSjC+2JmNHJbcVZMNq3MyUVVTpvXFsl5l8 30L6yACGL3oHY1LRH6YsLNw20J7zgIkWC9xFWELAmndD1qcCrXuW6d5wB50Xey1WW5lw yIWbVrXOWXOwNmIumy0gZ+OHT9p2kNQuUCDiTHGm0tHeGgiEnMfRv3Utgge3yMTW45KX YQEFQF2XGYLHpmmvWhXlKBpKiA70uwMErWGz2uYKjFRMHLvR24qYFyQ8Yvk/yVP4bWv+ 1Fd/lybW0bJzCj9p8QjNrwQtbDUJ07QK3foUiQV95bfuFnfrHzZjr6Sh08AoGusurEme 2aMA== X-Gm-Message-State: AOJu0YwupGvVEhujhvxwF+Y6UPNZjF5EzpISFPsZDevXEBJoL542Yj8d iNIBBsXuPK1exxSauO1sbx7tzNnIKqhrY81soMLllEvtvcdO50kCOJmcXI0joyX23QO6KtD0TnZ Y X-Google-Smtp-Source: AGHT+IHm7r+FAe5ZHto6jtfj7x+NMBb83u6VZD0AovSvpgiBrsR0vF2XKN70yJ3f7zKOK28mr/q9pA== X-Received: by 2002:a17:902:d501:b0:1de:eddc:9f9a with SMTP id b1-20020a170902d50100b001deeddc9f9amr16565954plg.53.1712066815450; Tue, 02 Apr 2024 07:06:55 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:54 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 3/7] math: Fix i386 and m68k exp10 on static build Date: Tue, 2 Apr 2024 11:06:40 -0300 Message-Id: <20240402140644.2172819-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 List-Id: 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' --- 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 -- 2.34.1