From: Collin Funk Date: Sun, 15 Mar 2026 04:04:12 +0000 (-0700) Subject: wc: make sure input buffer for neon 'wc -l' is aligned X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b29c9c899e02a071012f2715bb32b25d99eab39;p=thirdparty%2Fcoreutils.git wc: make sure input buffer for neon 'wc -l' is aligned * src/wc_neon.c (wc_lines_neon): Use alignas. --- diff --git a/src/wc_neon.c b/src/wc_neon.c index 00fa38b6eb..571f5051c3 100644 --- a/src/wc_neon.c +++ b/src/wc_neon.c @@ -35,7 +35,7 @@ wc_lines_neon (int fd) while (true) { - unsigned char neon_buf[IO_BUFSIZE]; + unsigned char alignas (16) neon_buf[IO_BUFSIZE]; ssize_t bytes_read = read (fd, neon_buf, sizeof neon_buf); if (bytes_read <= 0) return (struct wc_lines) { bytes_read == 0 ? 0 : errno, lines, bytes };