From: H.J. Lu Date: Fri, 5 Jan 2007 14:55:44 +0000 (+0000) Subject: 2007-01-05 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4a3b5a47ee980d1da1833628169f5c178c5b98c;p=binutils-gdb.git 2007-01-05 H.J. Lu * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax depending on allow_naked_reg. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 25c726b8a68..7b9c20e5abb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-01-05 H.J. Lu + + * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax + depending on allow_naked_reg. + 2007-01-04 Paul Brook * 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 67bd39eb5c3..889bfc37672 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