From: Alan Modra Date: Mon, 31 Aug 2020 06:25:20 +0000 (+0930) Subject: PR26480 UBSAN: tc-nios2.c:1634 left shift cannot be represented X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51bf29b1f75b811f8b398543e164798244ec9cc3;p=binutils-gdb.git PR26480 UBSAN: tc-nios2.c:1634 left shift cannot be represented PR 26480 * config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3f615cf8304..791a1f1812e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-08-31 Alan Modra + + PR 26480 + * config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left. + 2020-08-31 Alan Modra PR 26479 diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c index 16695c5c063..0134b15ae08 100644 --- a/gas/config/tc-nios2.c +++ b/gas/config/tc-nios2.c @@ -1631,7 +1631,7 @@ nios2_parse_reglist (char *token, const struct nios2_opcode *op) } } - mask |= 1 << regno; + mask |= 1UL << regno; last = regno; }