public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Blackfin patch: Better error messages
@ 2007-09-18 13:20 Bernd Schmidt
  0 siblings, 0 replies; only message in thread
From: Bernd Schmidt @ 2007-09-18 13:20 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

I've committed this patch, which improves error messages for cases like 
"P0 += 64;".


Bernd
-- 
This footer brought to you by insane German lawmakers.
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif

[-- Attachment #2: regconst-src.diff --]
[-- Type: text/plain, Size: 1185 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.3342
diff -c -p -r1.3342 ChangeLog
*** ChangeLog	18 Sep 2007 01:05:44 -0000	1.3342
--- ChangeLog	18 Sep 2007 11:57:51 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2007-09-18  Bernd Schmidt  <bernd.schmidt@analog.com>
+ 
+ 	* config/bfin-parse.y (asm_1): Slightly improve error messages
+ 	for "reg += const;".
+ 
  2007-09-18  Alan Modra  <amodra@bigpond.net.au>
  
  	PR gas/5026
Index: config/bfin-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/bfin-parse.y,v
retrieving revision 1.12
diff -c -p -r1.12 bfin-parse.y
*** config/bfin-parse.y	3 Jul 2007 11:01:03 -0000	1.12
--- config/bfin-parse.y	18 Sep 2007 11:57:51 -0000
*************** asm_1:   
*** 1432,1437 ****
--- 1432,1439 ----
  	      notethat ("COMPI2opD: dregs += imm7\n");
  	      $$ = COMPI2OPD (&$1, imm7 ($3), 1);
  	    }
+ 	  else if ((IS_DREG ($1) || IS_PREG ($1)) && IS_CONST ($3))
+ 	    return yyerror ("Immediate value out of range");
  	  else
  	    return yyerror ("Register mismatch");
  	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-18 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18 13:20 Blackfin patch: Better error messages Bernd Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).