Re: [PATCH] Fix two undefined behaviors in gcc sources

2014-03-22 Thread Richard Biener
On March 21, 2014 9:30:25 PM CET, Jakub Jelinek wrote: >Hi! > >--with-build-config=bootstrap-ubsan on i686-linux showed >most often these two issues. > >The first one is that 32-bit signed time_t is multiplied by 1000, which >overflows the int type. The result is then cast to unsigned, so even >o

[PATCH] Fix two undefined behaviors in gcc sources

2014-03-21 Thread Jakub Jelinek
Hi! --with-build-config=bootstrap-ubsan on i686-linux showed most often these two issues. The first one is that 32-bit signed time_t is multiplied by 1000, which overflows the int type. The result is then cast to unsigned, so even on 64-bit hosts we don't care about the upper bits. The other ch