* alpha-opc.c: Remove ARGSUSED.
[deliverable/binutils-gdb.git] / gas / config / tc-openrisc.c
index 1aae4b4bf8283845fd172c2a5766bff69b762d4c..9b97958248fdec2ffb4365727ac8d7e27f02b7a3 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-openrisc.c -- Assembler for the OpenRISC family.
-   Copyright (C) 2001 Free Software Foundation.
+   Copyright 2001, 2002, 2003 Free Software Foundation.
    Contributed by Johan Rydberg, jrydberg@opencores.org
 
    This file is part of GAS, the GNU Assembler.
@@ -20,7 +20,6 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
-#include <ctype.h>
 #include "as.h"
 #include "subsegs.h"
 #include "symcat.h"
@@ -84,6 +83,8 @@ md_show_usage (stream)
 {
 }
 
+static void ignore_pseudo PARAMS ((int));
+
 static void
 ignore_pseudo (val)
      int val ATTRIBUTE_UNUSED;
@@ -303,7 +304,7 @@ md_estimate_size_before_relax (fragP, segment)
            if ((strcmp (CGEN_INSN_MNEMONIC (insn),
                         CGEN_INSN_MNEMONIC (fragP->fr_cgen.insn))
                 == 0)
-               && CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_RELAX))
+               && CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_RELAXED))
              break;
          }
        if (i == 4)
@@ -371,12 +372,12 @@ md_cgen_lookup_reloc (insn, operand, fixP)
 
   switch (operand->type)
     {
-    case OPENRISC_OPERAND_ABS_26:  
-      fixP->fx_pcrel = 0; 
+    case OPENRISC_OPERAND_ABS_26:
+      fixP->fx_pcrel = 0;
       type = BFD_RELOC_OPENRISC_ABS_26;
       goto emit;
-    case OPENRISC_OPERAND_DISP_26: 
-      fixP->fx_pcrel = 1; 
+    case OPENRISC_OPERAND_DISP_26:
+      fixP->fx_pcrel = 1;
       type = BFD_RELOC_OPENRISC_REL_26;
       goto emit;
 
@@ -397,23 +398,6 @@ md_cgen_lookup_reloc (insn, operand, fixP)
 
   return BFD_RELOC_NONE;
 }
-
-/* See whether we need to force a relocation into the output file.
-   This is used to force out switch and PC relative relocations when
-   relaxing.  */
-
-int
-openrisc_force_relocation (fix)
-     fixS * fix ATTRIBUTE_UNUSED;
-{
-  if (fix->fx_r_type == BFD_RELOC_VTABLE_INHERIT
-      || fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
-    return 1;
-
-  return 0;
-}
-
-
 \f
 /* Write a value out to the object file, using the appropriate endianness.  */
 
@@ -444,7 +428,6 @@ md_atof (type, litP, sizeP)
   int              prec;
   LITTLENUM_TYPE   words [MAX_LITTLENUMS];
   char *           t;
-  char *           atof_ieee ();
 
   switch (type)
     {
@@ -484,17 +467,14 @@ md_atof (type, litP, sizeP)
   return 0;
 }
 
-boolean
+bfd_boolean
 openrisc_fix_adjustable (fixP)
    fixS * fixP;
 {
-  if (fixP->fx_addsy == NULL)
-    return 1;
-
   /* We need the symbol name for the VTABLE entries */
   if (fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
       || fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
-    return 0;        
+    return 0;
 
   return 1;
 }
This page took 0.024462 seconds and 4 git commands to generate.