]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/selftest-run-tests.c
re PR tree-optimization/82493 (UBSAN in gcc/sbitmap.c:368:28: runtime error: shift...
authorMartin Liska <mliska@suse.cz>
Thu, 12 Oct 2017 21:53:21 +0000 (23:53 +0200)
committerJeff Law <law@gcc.gnu.org>
Thu, 12 Oct 2017 21:53:21 +0000 (15:53 -0600)
commit0af377c15a40ae329f6019155d07857df452f42b
tree693e21e454052f1912690ef8c070dde06b757ea4
parentc64959bdf1388d332159cb5d40afddc30d8c61d2
re PR tree-optimization/82493 (UBSAN in gcc/sbitmap.c:368:28: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int')

PR tree-optimization/82493
* sbitmap.c (bitmap_bit_in_range_p): Fix the implementation.
(test_range_functions): New function.
(sbitmap_c_tests): Likewise.
* selftest-run-tests.c (selftest::run_tests): Run new tests.
* selftest.h (sbitmap_c_tests): New function.

* tree-ssa-dse.c (live_bytes_read): Fix thinko.

From-SVN: r253699
gcc/ChangeLog
gcc/sbitmap.c
gcc/selftest-run-tests.c
gcc/selftest.h
gcc/tree-ssa-dse.c