]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
unwind-dw2.c (execute_stack_op): Add default aborts to the inner switches to prevent...
authorZack Weinberg <zackw@panix.com>
Sun, 19 Aug 2001 00:09:46 +0000 (00:09 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 19 Aug 2001 00:09:46 +0000 (00:09 +0000)
* unwind-dw2.c (execute_stack_op): Add default aborts to
the inner switches to prevent warnings.

From-SVN: r45014

gcc/ChangeLog
gcc/unwind-dw2.c

index 390955df9436e7a6dfd96ea7b50d9160fd19f890..61ff995418a14b233a17c38555741c6978f42e9b 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-18  Zack Weinberg  <zackw@panix.com>
+
+       * unwind-dw2.c (execute_stack_op): Add default aborts to
+       the inner switches to prevent warnings.
+
 2001-08-18  Richard Henderson  <rth@redhat.com>
 
        * timevar.h (struct timevar_time_def): Change element type to float.
index 16f6bceb5c936e3d039a5e065192a0f5f43e3ff2..c56116b62c48583984e5318c1d6e1c3f750faef2 100644 (file)
@@ -563,6 +563,9 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
              op_ptr = read_uleb128 (op_ptr, &ptrtmp); reg = ptrtmp;
              result += reg;
              break;
+
+           default:
+             abort ();
            }
          break;
 
@@ -640,6 +643,9 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
            case DW_OP_ne:
              result = (_Unwind_Sword)first != (_Unwind_Sword)second;
              break;
+
+           default:
+             abort ();
            }
          }
          break;