On 2013-04-22 17:11, Marek Polacek wrote:
We're getting SIGFPE, because one simply does not divide by zero. Fixed by doing the modulo only when size != 0.Regtested/bootstrapped on x86_64-linux, ok for trunk and 4.8? 2013-04-22 Marek Polacek <pola...@redhat.com> PR sanitizer/56990 * tsan.c (instrument_expr): Don't count modulo if the size is zero. * gcc.dg/pr56990.c: New test.
Ok. r~