S12Z: GAS: New option --mdollar-hex.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 22 May 2019 05:16:14 +0000 (07:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 22 May 2019 06:13:36 +0000 (08:13 +0200)
commit22c6ccb89e0f38a70a42fb49eb167e7857d51f5c
tree53939413dadacc46e7b3c2975212e52e9cf5ad6d
parenta7df56e5f840e2ce8bb09487ee0b6570cddb1550
S12Z: GAS: New option --mdollar-hex.

This option (also implied by --traditional) causes '$' to introduce
literal hexadecimal constants, rather than the modern convention '0x'.

gas/
* config/tc-s12z.c (s12z_strtol): New function. (md_show_usage): Update.
(md_parse_option): new case OPTION_DOLLAR_HEX. (s12z_init_after_args):
(<global>): Use s12z_strtol instead of strtol.
* doc/c-s12z.texi (S12Z Options): Document new option -mdollar-hex.
* testsuite/gas/s12z/dollar-hex.d: New file.
* testsuite/gas/s12z/dollar-hex.s: New file.
* testsuite/gas/s12z/s12z.exp: Add them.
gas/ChangeLog
gas/config/tc-s12z.c
gas/doc/c-s12z.texi
gas/testsuite/gas/s12z/dollar-hex.d [new file with mode: 0644]
gas/testsuite/gas/s12z/dollar-hex.s [new file with mode: 0644]
gas/testsuite/gas/s12z/s12z.exp