]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: fix rs_fill_nop listing
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Feb 2025 08:33:18 +0000 (09:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Feb 2025 09:03:35 +0000 (10:03 +0100)
commitd4c7ee9fbc1e9da2dbb92dc8eccba495b2104f21
tree3751fc13db110aa583870d5ec624bf713baca670
parent10651b768e78905ba8b9788dd370ef3c4d53bc9f
gas: fix rs_fill_nop listing

In commit a0094f1a70e1 ("gas: make .nops output visible in listing") I
was wrongly assuming fr_fix would be zero for rs_fill_nop, when that's
only a side effect of listing_newline() inserting dummy frags, but only
when file/line did actually change from the previous invocation. This is
in particular not going to be true when the .nops directive isn't the
first statement on a line.
gas/listing.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/nop-7.l [new file with mode: 0644]
gas/testsuite/gas/i386/nop-7.s [new file with mode: 0644]