]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/fix_loongson3_llsc: fix when target has multi labels
authorYunQiang Su <syq@debian.org>
Fri, 28 Feb 2020 07:58:13 +0000 (15:58 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Fri, 28 Feb 2020 08:47:55 +0000 (16:47 +0800)
commitdec7b24be89fe0496f9442232bcbfcb16e030742
tree87f51fe199f60f36ee0ea1a85437f0f9f002be1d
parent182ec6707c9fcca84d488413d4ddbbd9d12639fe
MIPS/fix_loongson3_llsc: fix when target has multi labels

When there is multi-labels on the same insn, the current code
will take care about the last one. it may cause that no sync
is added at the target.

Here we scan all labels with same value of
   S_GET_VALUE(label_list->label)
by label_list->next.

2020-02-28  YunQiang Su  <syq@debian.org>

    PR gas/25539
    * config/tc-mips.c (fix_loongson3_llsc): Compare label value
    to handle multi-labels.
    (has_label_name): New.
gas/ChangeLog
gas/config/tc-mips.c