[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'

law at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 12 21:53:00 GMT 2017


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


More information about the Gcc-bugs mailing list