h8300 consts

Daniel Jacobowitz drow@false.org
Thu Oct 26 17:40:00 GMT 2006


I needed this to build --enable-targets=all, so I've committed it.

-- 
Daniel Jacobowitz
CodeSourcery

2006-10-26  Daniel Jacobowitz  <dan@codesourcery.com>

	* h8300-dis.c (bfd_h8_disassemble): Add missing consts.

Index: h8300-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/h8300-dis.c,v
retrieving revision 1.21
diff -u -p -r1.21 h8300-dis.c
--- h8300-dis.c	16 Sep 2006 18:12:17 -0000	1.21
+++ h8300-dis.c	26 Oct 2006 15:36:36 -0000
@@ -362,7 +362,7 @@ bfd_h8_disassemble (bfd_vma addr, disass
   for (qi = h8_instructions; qi->opcode->name; qi++)
     {
       const struct h8_opcode *q = qi->opcode;
-      op_type *nib = q->data.nib;
+      const op_type *nib = q->data.nib;
       unsigned int len = 0;
 
       while (1)
@@ -640,7 +640,7 @@ bfd_h8_disassemble (bfd_vma addr, disass
 		    }
 		  if (CONST_STRNEQ (q->name, "mova"))
 		    {
-		      op_type *args = q->args.nib;
+		      const op_type *args = q->args.nib;
 
 		      if (args[1] == (op_type) E)
 			{
@@ -666,7 +666,7 @@ bfd_h8_disassemble (bfd_vma addr, disass
 		    }
 		  /* Fill in the args.  */
 		  {
-		    op_type *args = q->args.nib;
+		    const op_type *args = q->args.nib;
 		    int hadone = 0;
 		    int nargs;
 



More information about the Binutils mailing list