diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 25c726b..7b9c20e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +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. + 2007-01-04 Paul Brook <paul@codesourcery.com> * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form. 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 |