[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy
gavin at yzena dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 18 18:44:17 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448
--- Comment #5 from Gavin Howard <gavin at yzena dot com> ---
As mentioned, it works at -O0, and UBSan reports nothing until the segfault.
ASan also reports nothing. Valgrind also reports nothing. They all report
nothing at -O0 and -O2.
I keep my code clean of such things during development, which is one reason I
am so confused.
I'll get the amalgamation to you, but it will take me some hours to do so.
More information about the Gcc-bugs
mailing list