]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: iq2000/m32r/lm32/sh64: delete dead option code
authorMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 15:29:51 +0000 (10:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 15:39:13 +0000 (10:39 -0500)
The iq2000/m32r/sh64 option parsing logic appears to have always been
dead.  At least iq2000/sh64 are simply copy & paste rot from m32r.

The lm32 option parsing hack here hasn't been needed for a while -- this
was fixed back in commit 11409fac6b95d71a92848a4499b02d60a4f4c5bb in the
common code.

sim/iq2000/ChangeLog
sim/iq2000/sim-if.c
sim/lm32/ChangeLog
sim/lm32/sim-if.c
sim/m32r/ChangeLog
sim/m32r/sim-if.c
sim/sh64/ChangeLog
sim/sh64/sim-if.c

index d2584e905da5ff06d17091ef5638c2f2a57fca0b..07c6ef67b0d0c4825959e694f4b6922794ed7d09 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-02  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-if.c (current_state): Delete.
index d21ec1b9abe7a4ce4ff2dc6c45fc8a618f435c5a..fefa764dde06c5936b1955edb07260e2848bae60 100644 (file)
@@ -82,14 +82,6 @@ sim_open (kind, callback, abfd, argv)
       return 0;
     }
 
-#if 0 /* FIXME: 'twould be nice if we could do this */
-  /* These options override any module options.
-     Obviously ambiguity should be avoided, however the caller may wish to
-     augment the meaning of an option.  */
-  if (extra_options != NULL)
-    sim_add_option_table (sd, extra_options);
-#endif
-
   /* getopt will print the error message so we just have to exit if this fails.
      FIXME: Hmmm...  in the case of gdb we need getopt to call
      print_filtered.  */
index eda8a23df1f27e681c16d5170fdb2a6bc38db5ec..5aaab314303f0bdf804796d6e28c4e9ec301205e 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-02  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-if.c (free_state, print_lm32_misc_cpu): Delete prototypes.
+       (lm32_option_handler, OPTION_ENDIAN, lm32_options): Delete.
+       (sim_open): Delete sim_add_option_table call.
+
 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-if.c (current_state): Delete.
index 3f65c93334f510ddc8eb205f6cca204f413dccb9..678602449a1a365cd6c7afa0f80382321bfd7d4e 100644 (file)
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
-
-static void free_state (SIM_DESC);
-static void print_lm32_misc_cpu (SIM_CPU * cpu, int verbose);
-static DECLARE_OPTION_HANDLER (lm32_option_handler);
-
-enum
-{
-  OPTION_ENDIAN = OPTION_START,
-};
-
-/* GDB passes -E, even though it's fixed, so we have to handle it here. common code only handles it if SIM_HAVE_BIENDIAN is defined, which it isn't for lm32.  */
-static const OPTION lm32_options[] = {
-  {{"endian", required_argument, NULL, OPTION_ENDIAN},
-   'E', "big", "Set endianness",
-   lm32_option_handler},
-  {{NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL}
-};
 \f
 /* Cover function of sim_state_free to free the cpu buffers as well.  */
 
@@ -111,19 +94,6 @@ find_limit (bfd *prog_bfd)
   return 0;
 }
 
-/* Handle lm32 specific options.  */
-
-static SIM_RC
-lm32_option_handler (sd, cpu, opt, arg, is_command)
-     SIM_DESC sd;
-     sim_cpu *cpu;
-     int opt;
-     char *arg;
-     int is_command;
-{
-  return SIM_RC_OK;
-}
-
 /* Create an instance of the simulator.  */
 
 SIM_DESC
@@ -150,7 +120,6 @@ sim_open (kind, callback, abfd, argv)
       free_state (sd);
       return 0;
     }
-  sim_add_option_table (sd, NULL, lm32_options);
 
   /* getopt will print the error message so we just have to exit if this fails.
      FIXME: Hmmm...  in the case of gdb we need getopt to call
index 5b3d70e6fe0893955557fcb141bbd23b28dc5056..8b65bb9ee0cdb56747431945580c87841abec1e8 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-02  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-if.c (current_state): Delete.
index 2ed6934cf5d8c76ee54c6fd7624b8173e5f44b4a..2777f6192f74d59e652cf08b51e11bb01e38acfb 100644 (file)
@@ -84,14 +84,6 @@ sim_open (kind, callback, abfd, argv)
       return 0;
     }
 
-#if 0 /* FIXME: 'twould be nice if we could do this */
-  /* These options override any module options.
-     Obviously ambiguity should be avoided, however the caller may wish to
-     augment the meaning of an option.  */
-  if (extra_options != NULL)
-    sim_add_option_table (sd, extra_options);
-#endif
-
   /* getopt will print the error message so we just have to exit if this fails.
      FIXME: Hmmm...  in the case of gdb we need getopt to call
      print_filtered.  */
index 06ce139842fbb29c9485b76fe06ea2bca880c8d6..74f89bc9a6bfc2c2553a7b10fa685eec773952cc 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-02  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-if.c (current_state): Delete.
index a74f1e58b4e161c1c1d62dfa1b64d87dfcb4d308..ba8feb81237de7a2a4144bffaf5f2736a72bd6f5 100644 (file)
@@ -79,14 +79,6 @@ sim_open (kind, callback, abfd, argv)
       return 0;
     }
 
-#if 0 /* FIXME: 'twould be nice if we could do this */
-  /* These options override any module options.
-     Obviously ambiguity should be avoided, however the caller may wish to
-     augment the meaning of an option.  */
-  if (extra_options != NULL)
-    sim_add_option_table (sd, extra_options);
-#endif
-
   /* getopt will print the error message so we just have to exit if this fails.
      FIXME: Hmmm...  in the case of gdb we need getopt to call
      print_filtered.  */