This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/77966] Corrupt function with -fsanitize-coverage=trace-pc
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Oct 2016 13:12:53 +0000
- Subject: [Bug target/77966] Corrupt function with -fsanitize-coverage=trace-pc
- Auto-submitted: auto-generated
- References: <bug-77966-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77966
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, the reason is that aggressive loop optimizations are disabled if a
-fsanitize is enabled.
If you want to catch the out of bounds access to wq_lock array, you can use
-fsanitize=undefined.