Clean up bitrot (such as interfaces that have changed since these
authorMichael Tiemann <tiemann@cygnus>
Fri, 25 Nov 1994 02:14:11 +0000 (02:14 +0000)
committerMichael Tiemann <tiemann@cygnus>
Fri, 25 Nov 1994 02:14:11 +0000 (02:14 +0000)
patches were last used).

bfd/.Sanitize
bfd/aout-rce.c
bfd/bfd-in2.h
bfd/cpu-rce.c
gas/config/tc-rce.c

index f3d944fe3b68510b64a882ed35042d114b60ab77..c5a8fe40045c29df99500efb0be722a703f32f22 100644 (file)
@@ -263,7 +263,7 @@ else
        done
 fi
 
-rce_files="ChangeLog archures.c config.bfd configure.in targets.c"
+rce_files="ChangeLog archures.c bfd-in2.h config.bfd configure.in targets.c"
 if ( echo $* | grep keep\-rce > /dev/null ) ; then
        for i in $rce_files ; do
                if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
index a89f1406be268c176b8a0e0d45324078b566bbf1..6fa3f524722ba70d26bc3829b9486aa9c1df4775 100644 (file)
@@ -1,4 +1,4 @@
-/* BFD back-end for SOP a.out binaries.
+/* BFD back-end for RCE a.out binaries.
    Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -32,7 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "aout/stab_gnu.h"
 #include "aout/ar.h"
 #include "libaout.h"
-#define DEFAULT_ARCH bfd_arch_sop
-#define MY(OP) CAT(sop_aout_,OP)
-#define TARGETNAME "a.out-sop"
+#define DEFAULT_ARCH bfd_arch_rce
+#define MY(OP) CAT(rce_aout_,OP)
+#define TARGETNAME "a.out-rce"
 #include "aout-target.h"
index 9beb9710255d948b2dfd14d98c11189206d27a10..ae32bae3ef97a29fc059ded40a7a63ea1b7d4b4f 100644 (file)
@@ -1027,6 +1027,9 @@ enum bfd_architecture
   bfd_arch_alpha,      /* Dec Alpha */
   bfd_arch_arm,        /* Advanced Risc Machines ARM */
   bfd_arch_ns32k,      /* National Semiconductors ns32000 */
+  /* start-sanitize-rce */
+  bfd_arch_rce,               /* Experimental Motorola RCE */
+  /* end-sanitize-rce */
   bfd_arch_last
   };
 
index 3300b0a0a9fc6d3f365ff42ab10ccb0c6121cc7e..57b44ba42b1ad88c97c12b99f7a7768928e81f47 100644 (file)
@@ -72,7 +72,7 @@ static bfd_arch_info_type arch_info_struct[] =
 
 
 void
-DEFUN_VOID(bfd_sop_arch)
+DEFUN_VOID(bfd_rce_arch)
 {
   bfd_arch_linkin(&arch_info_struct[0]);
 }
index 62698aa81c95c8f38ca226474f3c8e0949887b53..20f94888805cbcd2e54650675b72f7e5b4b085d4 100644 (file)
@@ -563,22 +563,49 @@ md_atof (type, litP, sizeP)
     }
   return 0;
 }
+\f
+CONST char *md_shortopts = "";
+struct option md_longopts[] = {
 
-int
-md_parse_option (argP, cntP, vecP)
-     char **argP;
-     int *cntP;
-     char ***vecP;
+#define OPTION_RELAX  (OPTION_MD_BASE)
+#define OPTION_LITTLE (OPTION_MD_BASE+1)
+
+  {"relax", no_argument, NULL, OPTION_RELAX},
+  {"little", no_argument, NULL, OPTION_LITTLE},
+  {NULL, no_argument, NULL, 0}
+};
+size_t md_longopts_size = sizeof(md_longopts);
 
+int
+md_parse_option (c, arg)
+     int c;
+     char *arg;
 {
-  if (!strcmp (*argP, "relax"))
+  switch (c)
     {
+    case OPTION_RELAX:
       relax = 1;
-      **argP = 0;
+      break;
+    case OPTION_LITTLE:
+      abort ();
+      break;
+
+    default:
+      return 0;
     }
+
   return 1;
 }
 
+void
+md_show_usage (stream)
+     FILE *stream;
+{
+  fprintf(stream, "\
+RCE options:\n\
+-relax                 alter jump instructions for long displacements\n");
+}
+\f
 int md_short_jump_size;
 
 void
This page took 0.03003 seconds and 4 git commands to generate.