]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: multi-byte warning adjustments
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2024 10:26:36 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2024 10:26:36 +0000 (12:26 +0200)
commit296597f53e2a3cf14eafdca4c3141f7a4a7ab14b
tree07478bc1dce3d0144deed7ef8b33eea5c47e0e4b
parent8ea8012a8bddbc6fbbc86766a1df181cf133c5c6
gas: multi-byte warning adjustments

First input_scrub_next_buffer()'s invocation was wrong, leading to input
only being checked from the last newline till the end of the current
buffer. Correcting the invocation, however, leads to duplicate checking
unless -f (or the #NO_APP equivalent thereof) is in effect. Move the
invocation to input_file_give_next_buffer(), to restrict it accordingly.

Then, when macros contain multi-byte characters, warning about them
again in every expansion isn't useful. Suppress such warnings from
sb_scrub_and_add_sb().
gas/app.c
gas/as.h
gas/input-file.c
gas/input-scrub.c
gas/sb.c
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/multibyte3.l [new file with mode: 0644]
gas/testsuite/gas/all/multibyte3.s [new file with mode: 0644]