patch for gas error message

Philip Blundell pb@futuretv.com
Thu Nov 2 03:26:00 GMT 2000


The error message that ARM GAS gives for a bad `msr' instruction is rather 
ambiguous.  Is this patch OK?

p.

2000-09-01  Theo Honohan  <th@futuretv.com>

	* config/tc-arm.c (do_msr): Improve error message. 

Index: config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.62
diff -u -r1.62 tc-arm.c
--- tc-arm.c	2000/10/27 13:55:49	1.62
+++ tc-arm.c	2000/11/02 10:32:02
@@ -2180,7 +2180,7 @@
 
   if (inst.instruction & ((PSR_c | PSR_x | PSR_s) << PSR_SHIFT))
     {
-      inst.error = _("can only set flag field with immediate value");
+      inst.error = _("only flag field of psr can be set with immediate value");
       return;
     }
 




More information about the Binutils mailing list