https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81189
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- You can use mmap/mprotect to setup a source area where it woudl trap. See gcc.dg/vect/pr49038.c for example. Note that the vectorizer happily uses alignment for its advantage thus it is valid to access beyond the last element of an object if alignment of that object ensures the access cannot cross a page boundary (where we assume that max. alignment < page size ...).