bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/19577] Gold failed to build with GCC 5.3


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/19577] Gold failed to build with GCC 5.3
Date: Sun, 07 Feb 2016 02:20:41 +0000

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

--- Comment #9 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Cary Coutant <address@hidden>:

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

commit b7a4e9d8e6a854d2344ab7963e531d6f19571d2e
Author: Cary Coutant <address@hidden>
Date:   Sat Feb 6 18:18:51 2016 -0800

    Fix compile errors about shift counts too large.

    In order to get around the optimizer and newer compiler warnings
    about shift counts, the overflow checking code had resorted to
    some messy shifting, and with the never-before-seen instantiations
    of the template functions, we were still running afoul of the
    compiler checks.

    This patch replaces those messy shift sequences with a simple
    class template that provides the min and max limits for any
    bit size up to 64, with a specialization for 64 that prevents
    the compiler from complaining.

    gold/
        PR gold/19577
        * reloc.h (Limits): New class.
        (Bits::has_overflow32): Use min/max values from Limits.
        (Bits::has_unsigned_overflow32): Likewise.
        (Bits::has_signed_unsigned_overflow32): Likewise.
        (Bits::has_overflow): Likewise.
        (Bits::has_unsigned_overflow): Likewise.
        (Bits::has_signed_unsigned_overflow64): Likewise.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]