From: Noah Goldstein Date: Tue, 12 Nov 2024 23:04:42 +0000 (-0600) Subject: x86/string: Use `movsl` instead of `movsd` in strncpy/strncat [BZ #32344] X-Git-Tag: glibc-2.41~493 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c510681a6922eb96ec3f4585f71b97f73ae74388;p=thirdparty%2Fglibc.git 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 --- 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