This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/64336] Template functions are not instrumented at -O0 and -Og
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Dec 2014 09:03:06 +0000
- Subject: [Bug sanitizer/64336] Template functions are not instrumented at -O0 and -Og
- Auto-submitted: auto-generated
- References: <bug-64336-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64336
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
hmm...
in this example at tsan.c, instrument_expr()
is exiting twice here:
if (TREE_READONLY (base)
|| (TREE_CODE (base) == VAR_DECL
&& DECL_HARD_REGISTER (base)))
return false;
because TREE_READONLY (base) == true !