diff --git a/gas/ChangeLog b/gas/ChangeLog index f7f701c638..88eea23748 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-08-25 Alan Modra + + PR 26500 + * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn + with name = "". + 2020-08-25 Alan Modra PR 26441 diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index f1eb5bfb41..1889b47128 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -1242,9 +1242,8 @@ tic4x_inst_make (const char *name, unsigned long opcode, const char *args) insts[iindex].args = args; iindex++; - do + while (*name) *names++ = *name++; - while (*name); *names++ = '\0'; return &insts[iindex - 1];