From 95f283e8f644349569df75b089178014914d276c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 23 May 2008 13:55:36 +0000 Subject: [PATCH] 2008-05-23 H.J. Lu PR gas/6518 * config/tc-i386.c (match_template): Report ambiguous operand size, not invalid suffix when there is no match in Intel syntax. --- gas/ChangeLog | 7 +++++++ gas/config/tc-i386.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 7a572df7de8..44319fe3b59 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2008-05-23 H.J. Lu + + PR gas/6518 + * config/tc-i386.c (match_template): Report ambiguous operand + size, not invalid suffix when there is no match in Intel + syntax. + 2008-05-22 Paul Brook * config/tc-arm.c (parse_cond): Covert to lowercase before matching. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 16f37422f6d..19a3ff0a4aa 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -3754,8 +3754,12 @@ match_template (void) if (t == current_templates->end) { /* We found no match. */ - as_bad (_("suffix or operands invalid for `%s'"), - current_templates->start->name); + if (intel_syntax) + as_bad (_("ambiguous operand size or operands invalid for `%s'"), + current_templates->start->name); + else + as_bad (_("suffix or operands invalid for `%s'"), + current_templates->start->name); return 0; } -- 2.30.2