This is the mail archive of the binutils@sourceware.cygnus.com 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]

Minor dubious fix for am33 gas


I don't understand why the ``special'' registers introduced in AM33
are not listed in `other_registers'.  Does anybody?  I think it would
be beneficial to get saner error messages, but it might break AM30
programs that inadvertently used the register names as symbol names.
Is that the reason?  If not, is this ok to install?

Index: gas/ChangeLog.Cygnus
from  Alexandre Oliva  <aoliva@cygnus.com>
	
	* config/tc-mn10300.c (other_registers): Added `epsw', `msp',
	`ssp' and `usp'.

Index: gas/config/tc-mn10300.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/config/tc-mn10300.c,v
retrieving revision 1.48
diff -u -r1.48 tc-mn10300.c
--- gas/config/tc-mn10300.c	1999/12/01 10:40:47	1.48
+++ gas/config/tc-mn10300.c	2000/03/31 16:45:30
@@ -1,5 +1,5 @@
 /* tc-mn10300.c -- Assembler code for the Matsushita 10300
-   Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation.
+   Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -220,9 +220,13 @@
 
 static const struct reg_name other_registers[] =
 {
+  { "epsw", 0 },
   { "mdr", 0 },
+  { "msp", 0 },
   { "psw", 0 },
   { "sp", 0 },
+  { "ssp", 0 },
+  { "usp", 0 },
 };
 #define OTHER_REG_NAME_CNT	(sizeof(other_registers) / sizeof(struct reg_name))
 

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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