diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-07-11 12:26:36 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-07-11 12:26:36 +0200 |
commit | 296597f53e2a3cf14eafdca4c3141f7a4a7ab14b (patch) | |
tree | 07478bc1dce3d0144deed7ef8b33eea5c47e0e4b /gas/input-scrub.c | |
parent | 8ea8012a8bddbc6fbbc86766a1df181cf133c5c6 (diff) | |
download | binutils-296597f53e2a3cf14eafdca4c3141f7a4a7ab14b.zip binutils-296597f53e2a3cf14eafdca4c3141f7a4a7ab14b.tar.gz binutils-296597f53e2a3cf14eafdca4c3141f7a4a7ab14b.tar.bz2 |
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().
Diffstat (limited to 'gas/input-scrub.c')
-rw-r--r-- | gas/input-scrub.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gas/input-scrub.c b/gas/input-scrub.c index 5bfdc53..776d15e 100644 --- a/gas/input-scrub.c +++ b/gas/input-scrub.c @@ -386,11 +386,6 @@ input_scrub_next_buffer (char **bufp) ++p; } - if (multibyte_handling == multibyte_warn) - (void) scan_for_multibyte_characters ((const unsigned char *) p, - (const unsigned char *) limit, - true /* Generate warnings */); - /* We found a newline in the newly read chars. */ partial_where = p; partial_size = limit - p; |