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

--- Comment #12 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #3)
> I find doing a bootstrap build with -O3 -march=native, with
> asan & ubsan, is a useful weekly sanity check.

Today's sanity check shows this problem:

$ grep error: mk.out | sort | uniq -c
    196 ../../trunk/gcc/ext-dce.cc:696:15: runtime error: shift exponent 64 is
too large for 64-bit type 'long unsigned int'
$ 

The source code line is

              dst_mask <<= bit;

Perhaps it would be wise to sanity check the value of bit before use ?

I am not sure what to do if the value is out of range.

Reply via email to