From: Zack Weinberg Date: Sun, 19 Aug 2001 00:09:46 +0000 (+0000) Subject: unwind-dw2.c (execute_stack_op): Add default aborts to the inner switches to prevent... X-Git-Tag: prereleases/libstdc++-3.0.95~2568 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ed3149cb0ad923cf2dd9e593ebd3b68970927e0;p=thirdparty%2Fgcc.git unwind-dw2.c (execute_stack_op): Add default aborts to the inner switches to prevent warnings. * unwind-dw2.c (execute_stack_op): Add default aborts to the inner switches to prevent warnings. From-SVN: r45014 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 390955df9436..61ff995418a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-18 Zack Weinberg + + * unwind-dw2.c (execute_stack_op): Add default aborts to + the inner switches to prevent warnings. + 2001-08-18 Richard Henderson * timevar.h (struct timevar_time_def): Change element type to float. diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 16f6bceb5c93..c56116b62c48 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -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;