This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/64336] Template functions are not instrumented at -O0 and -Og


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 !


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]