https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121931
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > here is the commit from LLVM: > https://github.com/llvm/llvm-project/commit/ > 3ed0f643fc3267b7fbb319e4cb5610e5a7e1ba86 > > that implemented this in the first place. No link to review or anything else. Found it: https://reviews.llvm.org/D26454 "Suppression of sanitizing is necessary if the variable is magically a memory-mapped device I/O address. The linker can arrange for this to be the case using fancy scripts, or even just as simple as a section attribute that requires that you take up exactly a certain number of bytes in the section. There was some thought that any non-default section should preclude sanitization, but Kostya said that, no, it would make sense to require explicit no-sanitize. I (mistakenly) took that to mean "just do it", for which I apologize. "