From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by sourceware.org (Postfix) with ESMTPS id ED1C23858D35 for ; Tue, 7 May 2024 18:26:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED1C23858D35 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ED1C23858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715106407; cv=none; b=wweGo7lAiQgfwVNAzncj+3mV7gRHBUuuwg4Jn/mD/5Bp3zAU8DgZzEooW1GcP6/eXp7NnQqyo7U6CdEOd0T/OSO/zOC5k/BsUEoFaRkXP1I1J1CaYKnNZkUae0AaVoztbH+R0uK3R+T1/tTBI69Ix18lrCOnhZVPUmAGBhgQ8IU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715106407; c=relaxed/simple; bh=CUKziiYwPInCmSH0J9mYlKaZsdrtDxGdWKG87KeUb+s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Hp+qbk4bi857lNUewMlc7YID0lHrF2AXMNuE6RW+3ZHRo9rA7w0Y27BLcxsZGXeGR4mYxhuuLWC1DKoQpt8FVSNT5ZM+1yXNss5tbaPK4G4AzE0+W68KJxPhMxO83dZ8A+Lzl9uyvpVM86mZX2KIRd0m6rhFWzYlccbCgJl0tUE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1715106401; x=1715711201; i=gabifalk@gmx.com; bh=NDux20TG5gIp2f78BwwDBRQuj3QDG0kkOSBrW7tGJTE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-ID: MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=qeYCvdJLCX5Q10QAcF8zJERNn4KleDMmcP/8baMd8ijfQIIYun0jt78EiEeip1dj +0IR7tURl0Zg/D+AqUD+5ANRsGCSwvLQiV2tbLHdyz5eBojHvkNibn57wumWZwR1b 6WOSDoEsJfFizz25p0FbNBVniMwxPMpDfBkvQXUZEFHdUWFf3TA6Yte0e0LM5BJFJ lmAwDXkyodWI/m8fZPf14tAmkBt62OiU5dPFLuXtp4uwY3Q+1CctBpLT55Gf2Sen9 1vBV+coDkpUHQmt4ZmO1w3bZ0DJh6QyOXDzf1TJo44ffTMSWqq64Fc/2TVaHx0w9R ip6ReE47bP4hoeuCVQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([46.120.22.143]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N5G9t-1snp480KZR-011BBG; Tue, 07 May 2024 20:26:41 +0200 From: Gabi Falk To: libc-alpha@sourceware.org Cc: Gabi Falk , Sam James Subject: [PATCH] x86_64: Fix missing wcsncat function definition without multiarch (x86-64-v4) Date: Tue, 7 May 2024 18:25:00 +0000 Message-ID: <20240507182502.3820027-1-gabifalk@gmx.com> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:z+nIhExypJg6Kd+hLjEW/5SXt5y0JwP+FbJyeXn4U7DryoGjVF1 vpNC4X9FbE8XGNrnSUsdIIkHhYTcq0REvZgFNLPIqmfz6lIxO21FgDfyXvOs7XUhZx7GAPh YGERXcsfUOVfyhHEMcu8Rr2L5PDJMjCuJpk0EtxRLT8nb7p7WWTpfGdkSHlqxNT83F4So3i 2XAmPHuMdl1ErTynlu1mA== UI-OutboundReport: notjunk:1;M01:P0:9U+lHStZpic=;VTQ7b47hcredwpaIO1XfBh2mVqI 9daH2/wDY1lJ6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Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This code expects the WCSCAT preprocessor macro to be predefined in case the evex implementation of the function should be defined with a name different from __wcsncat_evex. However, when glibc is built for x86-64-v4 without multiarch support, sysdeps/x86_64/wcsncat.S defines WCSNCAT variable instead of WCSCAT to build it as wcsncat. Rename the variable to WCSNCAT, as it is actually a better naming choice for the variable in this case. Reported-by: Kenton Groombridge Link: https://bugs.gentoo.org/921945 Fixes: 64b8b6516b ("x86: Add evex optimized functions for the wchar_t strc= py family") Signed-off-by: Gabi Falk =2D-- sysdeps/x86_64/multiarch/wcsncat-evex.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/x86_64/multiarch/wcsncat-evex.S b/sysdeps/x86_64/mult= iarch/wcsncat-evex.S index 392215950a..10bfb0a531 100644 =2D-- a/sysdeps/x86_64/multiarch/wcsncat-evex.S +++ b/sysdeps/x86_64/multiarch/wcsncat-evex.S @@ -1,9 +1,9 @@ -#ifndef WCSCAT -# define WCSCAT __wcsncat_evex +#ifndef WCSNCAT +# define WCSNCAT __wcsncat_evex #endif #define USE_AS_WCSCPY #define USE_AS_STRCAT -#define STRNCAT WCSCAT +#define STRNCAT WCSNCAT #include "strncat-evex.S" =2D- gabi