* config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
depending on allow_naked_reg.
+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.
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