https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108846
Thiago Macieira <thiago at kde dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thiago at kde dot org --- Comment #38 from Thiago Macieira <thiago at kde dot org> --- Can we get the __builtin_datasizeof() check at some point? The consequence of this commit is that there's a runtime check left in the code even for types where it makes no difference. I noticed this when copying char buffers. Alternatively, we can eliminate the memmove() call altogether and rely on the compiler realising that the loop can be replaced by such memmove()/memcpy(). I'm not sure how reliably we can count on GCC doing that, so I'm not sure this a good idea.