This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80114] asan-stack=1 with -fsanitize-address-use-after-scope and stack arrays multiplies code size
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Mar 2017 11:49:25 +0000
- Subject: [Bug sanitizer/80114] asan-stack=1 with -fsanitize-address-use-after-scope and stack arrays multiplies code size
- Auto-submitted: auto-generated
- References: <bug-80114-4@http.gcc.gnu.org/bugzilla/>
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++.