* sky-gdb.c (vu_option_handler): Delete unused local unit.
authorAndrew Cagney <cagney@redhat.com>
Wed, 11 Mar 1998 11:57:55 +0000 (11:57 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 11 Mar 1998 11:57:55 +0000 (11:57 +0000)
(log_option_handler): Delete extra arg from printf, twice.
* sky-pke.c (config.h): Include.
(string.h, strings.h): Include.
(pke_issue): Delete unused locals imm, num
* sky-libvpe.c: Pacify GCC.
* sky-gpuif.c (gif_io_write_buffer): Pacify GCC.
* sky-dma.c (config.h): Include.
(string.h, strings.h): Include.
(dma_io_read_buffer): Pacify GCC.
(dma_io_write_buffer): Pacify GCC.  Initialize pmem before first use.
(do_dma_transfer): Delete unused local variables qwbuf and local.

sim/mips/sky-pke.c

index 011db64c15c619bf18599322d278c8a2a8329b24..f0e46407830516e866e3b3d720898b511c542506 100644 (file)
@@ -5,6 +5,8 @@
 #define PKE_DEBUG 
 
 
+#include "config.h"
+
 #include <stdlib.h>
 #include "sky-pke.h"
 #include "sky-dma.h"
 #include "sky-gpuif.h"
 #include "sky-device.h"
 
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
 
 /* Internal function declarations */
 
@@ -519,8 +529,7 @@ pke_issue(SIM_DESC sd, struct pke_device* me)
 {
   struct fifo_quadword* fqw;
   unsigned_4 fw;
-  unsigned_4 cmd, intr, num;
-  unsigned_4 imm;
+  unsigned_4 cmd, intr;
 
   /* 1 -- fetch PKE instruction */