* config/tc-sh.c (allow_dollar_register_prefix): New variable.

(parse_reg_without_prefix): New function.
  (parse_reg): Check for '$' register prefix if --allow-reg-prefix is set.
  (option md_longopts): Add allow-reg-prefix option.
* doc/c-sh.texi: Document --allow-reg-prefix option.
* NEWS: Mention the new switch.

* gas/sh/basic.exp:  Run reg-prefix test.
* gas/sh/reg-prefix.s: New
* gas/sh/reg-prefix.d: New
This commit is contained in:
Nick Clifton
2005-10-06 11:44:07 +00:00
parent 8ba0209fdd
commit 37dedf6633
8 changed files with 138 additions and 49 deletions

View File

@ -1,5 +1,9 @@
-*- text -*-
* The SH target supports a new command line switch --enable-reg-prefix which,
if enabled, will allow register names to be optionally prefixed with a $
character. This allows register names to be distinguished from label names.
* Macros with a variable number of arguments are now supported. See the
documentation for how this works.