https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108498
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Adam Stylinski from comment #11) > It's possible's a glibc bug and clang avoids it by simply not needing it but > it seems doubtful a small memcpy like this would have an issue that didn't > show up until now. It seems like if it did need a memcpy, GCC would invoke > it's builtin for a struct like like this rather than call into a library > function. Is there a compilation flag I can invoke to rule that out? Like > some sort of "only builtins"? No I misread the generated code. I missed there is a store missing. store to offset 124 is missing I think.