This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: h8300 assembler rejects upper-case letters after slash


On Jul 15, 2003, Alexandre Oliva <aoliva@redhat.com> wrote:

> Index: gas/ChangeLog
> from  Alexandre Oliva  <aoliva@redhat.com>

> 	* config/tc-h8300.c (md_assemble): Make sure characters after
> 	slash and dot are lower-case.

Ping?


Here's one more, that fixes bsr/bc and bsr/bs to labels.  Ok?

Index: gas/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
	or bsr/bs.

Index: gas/config/tc-h8300.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8300.c,v
retrieving revision 1.34
diff -u -p -r1.34 tc-h8300.c
--- gas/config/tc-h8300.c 7 Jul 2003 09:33:01 -0000 1.34
+++ gas/config/tc-h8300.c 21 Jul 2003 04:20:10 -0000
@@ -1197,9 +1197,11 @@ get_specific (instruction, operands, siz
 		}
 	      else if (op_mode == PCREL && op_mode == x_mode)
 		{
-		  /* movsd only comes in PCREL16 flavour:
+		  /* movsd, bsr/bc and bsr/bs only come in PCREL16 flavour:
 		     If x_size is L_8, promote it.  */
-		  if (OP_KIND (this_try->opcode->how) == O_MOVSD)
+		  if (OP_KIND (this_try->opcode->how) == O_MOVSD
+		      || OP_KIND (this_try->opcode->how) == O_BSRBC
+		      || OP_KIND (this_try->opcode->how) == O_BSRBS)
 		    if (x_size == L_8)
 		      x_size = L_16;
 
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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