[Bug sanitizer/80114] asan-stack=1 with -fsanitize-address-use-after-scope and stack arrays multiplies code size
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 20 11:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80114
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I see, with -O2 and your options:
main:
.LFB0:
.cfi_startproc
movl $1, -4(%rsp)
movslq -4(%rsp), %rax
movl ._1(,%rax,4), %eax
ret
which is the same as without. Similar for using GCC instead of G++.
More information about the Gcc-bugs
mailing list