From c510681a6922eb96ec3f4585f71b97f73ae74388 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Tue, 12 Nov 2024 17:04:42 -0600 Subject: [PATCH] x86/string: Use `movsl` instead of `movsd` in strncpy/strncat [BZ #32344] `ld`, starting at 2.40, emits a warning when using `movsd`. There is no change to the actual code produced. Reviewed-by: H.J. Lu --- sysdeps/x86_64/multiarch/strncpy-evex.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/x86_64/multiarch/strncpy-evex.S b/sysdeps/x86_64/multiarch/strncpy-evex.S index d4053bb5f0..9b2629a5a4 100644 --- a/sysdeps/x86_64/multiarch/strncpy-evex.S +++ b/sysdeps/x86_64/multiarch/strncpy-evex.S @@ -43,7 +43,7 @@ # define VPTEST vptestmd # define CHAR_SIZE 4 -# define REP_MOVS rep movsd +# define REP_MOVS rep movsl # define REP_STOS rep stosl # define USE_WIDE_CHAR