This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70281] valgrind error in can_be_stored_compactly_p (line-map.c:148)
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2016 14:22:10 +0000
- Subject: [Bug c/70281] valgrind error in can_be_stored_compactly_p (line-map.c:148)
- Auto-submitted: auto-generated
- References: <bug-70281-4 at http dot gcc dot gnu dot org/bugzilla/>
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.