[Bug middle-end/32667] block copy with exact overlap is expanded as memcpy
post+gcc at ralfj dot de
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 19:04:02 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667
--- Comment #43 from post+gcc at ralfj dot de ---
That is not my reading of the standard, but absent a proper (formal,
mathematical) spec I guess it is hard to tell.
With your reading, "if ((uintptr_t)src == 0x400400)" is UB, since changing the
"src" argument to a different copy located at that address would change the
execution. I strongly doubt that is the intent of the standard.
More information about the Gcc-bugs
mailing list