diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-01-05 14:55:44 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-01-05 14:55:44 +0000 |
commit | e4a3b5a47ee980d1da1833628169f5c178c5b98c (patch) | |
tree | 801433135761dc9db2c646b68c6084012b638b52 /gas/config | |
parent | ebe8b99135d0de280c4094b0affdb4b5a6d2835b (diff) | |
download | gdb-e4a3b5a47ee980d1da1833628169f5c178c5b98c.zip gdb-e4a3b5a47ee980d1da1833628169f5c178c5b98c.tar.gz gdb-e4a3b5a47ee980d1da1833628169f5c178c5b98c.tar.bz2 |
2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
depending on allow_naked_reg.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 67bd39e..889bfc3 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1105,14 +1105,9 @@ set_intel_syntax (int syntax_flag) else allow_naked_reg = (ask_naked_reg < 0); - if (intel_syntax && allow_naked_reg) - { - identifier_chars['%'] = '%'; - register_prefix = ""; - } - else - identifier_chars['%'] = 0; + identifier_chars['%'] = intel_syntax && allow_naked_reg ? '%' : 0; identifier_chars['$'] = intel_syntax ? '$' : 0; + register_prefix = allow_naked_reg ? "" : "%"; } static void |