Add multibyte character warning option to the assembler.
authorNick Clifton <nickc@redhat.com>
Thu, 18 Nov 2021 16:48:19 +0000 (16:48 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Nov 2021 16:48:19 +0000 (16:48 +0000)
commit578c64a45a0e47fd0af53c77339ec0c26ef4874a
treeb95f61afc34286ad08556eb14848e9ba2d0123a1
parent76eb8ef1ce470ca71b10fae721e32d49998d87b9
Add multibyte character warning option to the assembler.

* as.c (parse_args): Add support for --multibyte-handling.
* as.h (multibyte_handling): Declare.
* app.c (scan_for_multibyte_characters): New function.
(do_scrub_chars): Call the new function if multibyte warning is
enabled.
* input-scrub,c (input_scrub_next_buffer): Call the multibyte
scanning function if multibyte warnings are enabled.
* symbols.c (struct symbol_flags): Add multibyte_warned bit.
(symbol_init): Call the multibyte scanning function if multibyte
symbol warnings are enabled.
(S_SET_SEGMENT): Likewise.
* NEWS: Mention the new feature.
* doc/as.texi: Document the new feature.
* testsuite/gas/all/multibyte.s: New test source file.
* testsuite/gas/all/multibyte1.d: New test driver file.
* testsuite/gas/all/multibyte1.l: New test expected output.
* testsuite/gas/all/multibyte2.d: New test driver file.
* testsuite/gas/all/multibyte2.l: New test expected output.
* testsuite/gas/all/gas.exp: Run the new tests.
14 files changed:
gas/ChangeLog
gas/NEWS
gas/app.c
gas/as.c
gas/as.h
gas/doc/as.texi
gas/input-scrub.c
gas/symbols.c
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/multibyte.s [new file with mode: 0644]
gas/testsuite/gas/all/multibyte1.d [new file with mode: 0644]
gas/testsuite/gas/all/multibyte1.l [new file with mode: 0644]
gas/testsuite/gas/all/multibyte2.d [new file with mode: 0644]
gas/testsuite/gas/all/multibyte2.l [new file with mode: 0644]