gas: re-arrange listing output for .irp and alike
commita5ce326cfeb364a33d8ee9c806780347a92b5d18
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Dec 2022 13:31:11 +0000 (22 14:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Dec 2022 13:31:11 +0000 (22 14:31 +0100)
tree6fe651f7322048bf399bfb0d4d1e7b9afc1d6200
parent760ab3d0dbebbcd1b7b476f38704ae2e83006adf
gas: re-arrange listing output for .irp and alike

It is kind of odd to have the expansions of such constructs ahead of
their definition in listings with macro expansion enabled. Adjust this
by pulling ahead the output of the definition lines, taking care to
avoid producing a listing line for (non-existing) line 0 when the source
is stdin.

Note that with the code movement the conditional operator isn't
necessary anymore - list->line now match up.
gas/listing.c
gas/testsuite/gas/i386/noavx512-1.l