* gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and
authorAndrew Cagney <cagney@redhat.com>
Mon, 17 Jun 2002 21:44:06 +0000 (21:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 17 Jun 2002 21:44:06 +0000 (21:44 +0000)
``t'' to NULL.
* igen.c (main): Add default case to switch.
* gen-icache.c (print_icache_extraction): Ditto.

sim/igen/ChangeLog
sim/igen/gen-icache.c
sim/igen/gen.c
sim/igen/igen.c

index b693544775b5e3edd8f13bb98c8688539b9b7c56..8ef6284daa7866b9bc02870b4d1290923f2cd9f7 100644 (file)
@@ -1,3 +1,10 @@
+2002-06-17  Andrew Cagney  <cagney@redhat.com>
+
+       * gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and
+       ``t'' to NULL.
+       * igen.c (main): Add default case to switch.
+       * gen-icache.c (print_icache_extraction): Ditto.
+
 2002-06-17  Andrew Cagney  <cagney@redhat.com>
 
        * Makefile.in (BUILD_CFLAGS): Remove -O0.
index 88d5d412288d071820c238259a3e0f81343ff318..5ec1e73bad730d2734f36eabf625bbb4dbb083b7 100644 (file)
@@ -132,6 +132,8 @@ print_icache_extraction (lf *file,
       else
        return;
       break;
+    default:
+      abort (); /* Bad switch.  */
     }
   
   /* For the type, default to a simple unsigned */
index 7c24b46813f690691c8ca262e528bec15b9acda6..156c929a0521edda68cfe1bc57a7be4f08cdb80d 100644 (file)
@@ -1025,9 +1025,9 @@ gen_entry_expand_opcode (gen_entry *table,
                            }
                          case insn_field_cond_field:
                            {
-                             int value;
+                             int value = -1;
                              opcode_bits *bit;
-                             gen_entry *t;
+                             gen_entry *t = NULL;
                              /* Try to find a value for the
                                  conditional by looking back through
                                  the previously defined bits for one
index 1399d30a30612487297072ca20c0bd5b9d1968db..717c0c6a75e33f392870631dd488cbb952f13ff0 100644 (file)
@@ -1277,6 +1277,8 @@ main (int argc,
              case 'S':
                name = &names->suffix;
                break;
+             default:
+               abort (); /* Bad switch.  */
              }
            name->u = strdup (chp);
            name->l = strdup (chp);