This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]