Re: LoongArch: Add support for <b ".L1"> and <beq, $t0, $t1, ".L1">
authorAlan Modra <amodra@gmail.com>
Sun, 24 Dec 2023 04:11:06 +0000 (14:41 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 24 Dec 2023 23:55:36 +0000 (10:25 +1030)
commit2d120f18ef0f2844b5ae0fcf18d86f7d5647c5ad
treecd0c0531d8f09c77cc5a6ed3db621adef9285e59
parent32a5d479d2325545ad5829b7716ad962db3b323c
Re: LoongArch: Add support for <b ".L1"> and <beq, $t0, $t1, ".L1">

This fixes the buffer overflow added in commit 22b78fad28, and a few
other problems.

* loongarch-coder.c (loongarch_split_args_by_comma): Don't
overflow buffer when args == "".  Don't remove unbalanced
quotes.  Don't trim last arg if max number of args exceeded.
opcodes/loongarch-coder.c