https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189
--- Comment #25 from Luke Dashjr <luke-jr+gccbugs at utopios dot org> --- Created attachment 49334 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49334&action=edit Hacky patch to workaround the bug by disabling builtin memcmp always I wrote and am rebuilding my own systems with a very minimal patch that essentially disables the builtin memcmp entirely. It's probably overkill and bad for performance, but it should at least produce sane code and apply to pretty much any GCC (warning: including unaffected versions).