diff options
author | Alan Modra <amodra@gmail.com> | 2020-09-02 10:08:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-09-02 16:30:42 +0930 |
commit | 251150adb1ec4315f2ec66aceb289cc0ccbf7438 (patch) | |
tree | 45ca5c08e46d2fe8ad994f86bde7a1bf4d342ed2 /gas | |
parent | 839f41a323fe2ba58e64431bd567a214f776aa7c (diff) | |
download | gdb-251150adb1ec4315f2ec66aceb289cc0ccbf7438.zip gdb-251150adb1ec4315f2ec66aceb289cc0ccbf7438.tar.gz gdb-251150adb1ec4315f2ec66aceb289cc0ccbf7438.tar.bz2 |
ubsan: bfin-lex.l:503 left shift cannot be represented
* config/bfin-lex.l: Use an unsigned type for "value".
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/bfin-lex.l | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b7cc8cb..bcc56ca 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2020-09-02 Alan Modra <amodra@gmail.com> + * config/bfin-lex.l: Use an unsigned type for "value". + +2020-09-02 Alan Modra <amodra@gmail.com> + * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code on BFD64. diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l index 6837f0d..d31ecc6 100644 --- a/gas/config/bfin-lex.l +++ b/gas/config/bfin-lex.l @@ -344,7 +344,7 @@ static long parse_int (char **end) int not_done = 1; int shiftvalue = 0; char * char_bag; - long value = 0; + unsigned long value = 0; char *arg = *end; while (*arg && *arg == ' ') |