This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Improve unsupported error message


Hi,

I checked in this patch to change error message from

foo.s:1: Error: unsupported for `bar'

to

foo.s:1: Error: unsupported `bar'

when bar is an unsupported instruction.

H.J.
---
	* config/tc-i386.c (match_template): Improve unsupported error
	message.

diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index d33fc56..22c861c 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4861,8 +4861,9 @@ check_reverse:
 	  err_msg = _("unsupported syntax");
 	  break;
 	case unsupported:
-	  err_msg = _("unsupported");
-	  break;
+	  as_bad (_("unsupported `%s'"),
+		  current_templates->start->name);
+	  return NULL;
 	case invalid_vsib_address:
 	  err_msg = _("invalid VSIB address");
 	  break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]