re PR target/84945 (UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift...
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Apr 2018 11:22:40 +0000 (13:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 16 Apr 2018 11:22:40 +0000 (13:22 +0200)
commita57f99ba1c8f5ece013b9a2cae954338a492764a
tree3a4e46438b46f5e88a516a6dc46faeb407517198
parentc814ac9e69218ffd68b042c77829ea590ba6049a
re PR target/84945 (UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int')

PR target/84945
* config/i386/cpuinfo.c (set_feature): Wrap into do while (0) to avoid
-Wdangling-else warnings.  Mask shift counts to avoid
-Wshift-count-negative and -Wshift-count-overflow false positives.

From-SVN: r259398
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c