diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-08-04 20:52:20 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-08-04 20:52:20 +0000 |
commit | 01559eccf05db6be95f9bc88126c573940f567a7 (patch) | |
tree | e8b5c236a34b3313e76954d8d54072b1a23929ee | |
parent | 70728992914cbc42d5fde4b9b029b465500b2702 (diff) | |
download | gdb-01559eccf05db6be95f9bc88126c573940f567a7.zip gdb-01559eccf05db6be95f9bc88126c573940f567a7.tar.gz gdb-01559eccf05db6be95f9bc88126c573940f567a7.tar.bz2 |
Move the first i.error out of the loop.
2010-08-04 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Move the first i.error
out of the loop.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 648e61b..54a88f6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-08-04 H.J. Lu <hongjiu.lu@intel.com> + + * config/tc-i386.c (match_template): Move the first i.error + out of the loop. + 2010-08-04 Alan Modra <amodra@gmail.com> * configure.tgt (m32c): Set endian=little. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 281faaa..03ea562 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -3848,12 +3848,13 @@ match_template (void) else if (i.suffix == LONG_DOUBLE_MNEM_SUFFIX) suffix_check.no_ldsuf = 1; + /* Must have right number of operands. */ + i.error = number_of_operands_mismatch; + for (t = current_templates->start; t < current_templates->end; t++) { addr_prefix_disp = -1; - /* Must have right number of operands. */ - i.error = number_of_operands_mismatch; if (i.operands != t->operands) continue; |