https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111944
--- Comment #1 from Ed Catmur <ed at catmur dot uk> --- Correction, it does affect sanitizers (-O2 -fsanitize=address) as well as -Og.
ed at catmur dot uk via Gcc-bugs Mon, 23 Oct 2023 13:40:06 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111944
--- Comment #1 from Ed Catmur <ed at catmur dot uk> --- Correction, it does affect sanitizers (-O2 -fsanitize=address) as well as -Og.