This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/82493] [8 Regression] UBSAN in gcc/sbitmap.c:368:28: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
- From: "law at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Oct 2017 21:53:52 +0000
- Subject: [Bug tree-optimization/82493] [8 Regression] UBSAN in gcc/sbitmap.c:368:28: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
- Auto-submitted: auto-generated
- References: <bug-82493-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82493
--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Oct 12 21:53:21 2017
New Revision: 253699
URL: https://gcc.gnu.org/viewcvs?rev=253699&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sbitmap.c
trunk/gcc/selftest-run-tests.c
trunk/gcc/selftest.h
trunk/gcc/tree-ssa-dse.c