PR26479 UBSAN: tc-nios2.c:244 left shift cannot be represented
authorAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 06:21:24 +0000 (15:51 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 10:58:11 +0000 (20:28 +0930)
commitbaeb994f3f6bf2b416676ad269f262675ab9d774
treec6b285227bdb463947a32ad13ca25ff6716e98d9
parente0fd91ef813536b5ad4eef4e88412ac2a929997d
PR26479 UBSAN: tc-nios2.c:244 left shift cannot be represented

PR 26479
* config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
gas/ChangeLog
gas/config/tc-nios2.c