https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111875
--- Comment #4 from Filip Kastl <pheeck at gcc dot gnu.org> --- Ok, I see. There's not much point in optimizing everything on -Og -fsanitize and it can also lead to sanitizer checks not working properly. If no one objects, I'll mark this as RESOLVED INVALID.