* alpha-opc.c: Remove ARGSUSED.
[deliverable/binutils-gdb.git] / gas / config / tc-ip2k.c
index 4c217f299dedf061488df1bddd6b104d5e72c267..a57bc969f3b9821e80bb8ce2f0755ba02755f033 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-ip2k.c -- Assembler for the Scenix IP2xxx.
-   Copyright (C) 2000, 2002 Free Software Foundation.
+   Copyright (C) 2000, 2002, 2003 Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
 
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
-#include <ctype.h>
-
 #include "as.h"
-#include "dwarf2dbg.h"
 #include "subsegs.h"     
 #include "symcat.h"
 #include "opcodes/ip2k-desc.h"
@@ -66,8 +63,6 @@ static void ip2k_elf_section_rtn (int);
 /* The target specific pseudo-ops which we support.  */
 const pseudo_typeS md_pseudo_table[] =
 {
-    { "file",  dwarf2_directive_file,  0 },
-    { "loc",   dwarf2_directive_loc,   0 },
     { "text",   ip2k_elf_section_text,  0 },
     { "sect",   ip2k_elf_section_rtn,   0 },
     { NULL,    NULL,                   0 }
@@ -180,14 +175,15 @@ md_assemble (str)
       enum cgen_parse_operand_result result_type;
       long value;
       const char *curpc_plus_2 = ".+2";
+      const char *err;
 
-      errmsg = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
-                                  IP2K_OPERAND_ADDR16CJP,
-                                  BFD_RELOC_IP2K_PC_SKIP,
-                                  & result_type, & value);
-      if (errmsg)
+      err = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
+                               IP2K_OPERAND_ADDR16CJP,
+                               BFD_RELOC_IP2K_PC_SKIP,
+                               & result_type, & value);
+      if (err)
        {
-         as_bad ("%s", errmsg);
+         as_bad ("%s", err);
          return;
        }
     }
@@ -330,7 +326,6 @@ md_atof (type, litP, sizeP)
   LITTLENUM_TYPE   words [MAX_LITTLENUMS];
   LITTLENUM_TYPE  *wordP;
   char *           t;
-  char *           atof_ieee PARAMS ((char *, int, LITTLENUM_TYPE *));
 
   switch (type)
     {
@@ -384,10 +379,6 @@ ip2k_force_relocation (fix)
 {
   switch (fix->fx_r_type)
     {
-      /* (No C++ support in ip2k.  */
-      /* case BFD_RELOC_VTABLE_INHERIT: */
-      /* case BFD_RELOC_VTABLE_ENTRY: */
-
     case BFD_RELOC_IP2K_FR9:
     case BFD_RELOC_IP2K_FR_OFFSET:
     case BFD_RELOC_IP2K_BANK:
@@ -403,18 +394,20 @@ ip2k_force_relocation (fix)
       return 1;
 
     case BFD_RELOC_16:
-      if (fix->fx_subsy  && S_IS_DEFINED (fix->fx_subsy)
+      if (fix->fx_subsy && S_IS_DEFINED (fix->fx_subsy)
          && fix->fx_addsy && S_IS_DEFINED (fix->fx_addsy)
          && (S_GET_SEGMENT (fix->fx_addsy)->flags & SEC_CODE))
        {
          fix->fx_r_type = BFD_RELOC_IP2K_TEXT;
          return 0;
        }
-      return 0;
+      break;
 
     default:
-      return 0;
+      break;
     }
+
+  return generic_force_reloc (fix);
 }
 
 void
This page took 0.024799 seconds and 4 git commands to generate.