* remote.c (struct packet_reg): Declare.
[deliverable/binutils-gdb.git] / gas / config / tc-d10v.c
index fa553050fa4d63550dd1eba9eff28948ce3d4370..248e62a1f34b052305b8da4339408792993373ba 100644 (file)
@@ -1,5 +1,6 @@
 /* tc-d10v.c -- Assembler code for the Mitsubishi D10V
-   Copyright (C) 1996, 97, 98, 99, 2000 Free Software Foundation.
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -19,8 +20,8 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
-#include <ctype.h>
 #include "as.h"
+#include "safe-ctype.h"
 #include "subsegs.h"
 #include "opcode/d10v.h"
 #include "elf/ppc.h"
@@ -72,7 +73,7 @@ typedef int packing_type;
 static packing_type etype = PACK_UNSPEC; /* Used by d10v_cleanup.  */
 
 /* True if instruction swapping warnings should be inhibited.
-   --nowarnswap.  */   
+   --nowarnswap.  */
 static boolean flag_warn_suppress_instructionswap;
 
 /* True if instruction packing should be performed when --gstabs is specified.
@@ -1096,6 +1097,8 @@ md_assemble (str)
 
          /* Assemble first instruction and save it.  */
          prev_insn = do_assemble (str, &prev_opcode);
+         prev_seg = now_seg;
+         prev_subseg = now_subseg;
          if (prev_insn == (unsigned long) -1)
            as_fatal (_("can't find opcode "));
          fixups = fixups->next;
@@ -1182,7 +1185,7 @@ do_assemble (str, opcode)
        && !is_end_of_line[*op_end] && *op_end != ' ';
        op_end++)
     {
-      name[nlen] = tolower (op_start[nlen]);
+      name[nlen] = TOLOWER (op_start[nlen]);
       nlen++;
     }
   name[nlen] = 0;
This page took 0.024634 seconds and 4 git commands to generate.