https://sourceware.org/bugzilla/show_bug.cgi?id=26448

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d8d6da137d7ececcd0e10c575aa187bb8c9b24e0

commit d8d6da137d7ececcd0e10c575aa187bb8c9b24e0
Author: Alan Modra <amo...@gmail.com>
Date:   Wed Aug 26 17:39:58 2020 +0930

    PR26448 UBSAN: symbols.c:1586 left shift of negative value

    Besides avoiding the UB, this also makes right shifts inside
    expression symbols unsigned, consistent with the way gas evaluates
    expressions in source.

            PR 26448
            * symbols.c: Include limits.h.
            (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
            unsigned shift.  Warn if shift count larger than valueT size.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to