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 c/70281] valgrind error in can_be_stored_compactly_p (line-map.c:148)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70281

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Minimized reproducer:

$ cat bug.c
const char *bch_stats_show (unsigned long cache_hits)
{
  return (__builtin_types_compatible_p (typeof (cache_hits >> 16), int)
          ? "%i\n" : "%i\n");
}

Am working on a fix.

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