From: Jeff Law Date: Wed, 26 Oct 2016 16:27:44 +0000 (-0600) Subject: cr16.c (cr16_print_operand): Add missing fallthru comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30;p=gcc.git cr16.c (cr16_print_operand): Add missing fallthru comment. * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru comment. Add gcc_unreachable for path that should never happen. From-SVN: r241584 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf5080aeffc..ce2693b264a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2016-10-26 Jeff Law + * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru + comment. Add gcc_unreachable for path that should never happen. + * config/epiphany/epiphany.c (epiphany_print_operand): Adjust fallthru comment. diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c index 530ccba44da..cc24fa551a0 100644 --- a/gcc/config/cr16/cr16.c +++ b/gcc/config/cr16/cr16.c @@ -1476,6 +1476,7 @@ cr16_print_operand (FILE * file, rtx x, int code) case 'g': /* 'g' is used for implicit mem: dereference. */ ptr_dereference = 1; + /* FALLTHRU */ case 'f': case 0: /* default. */ @@ -1528,6 +1529,7 @@ cr16_print_operand (FILE * file, rtx x, int code) cr16_print_operand_address (file, VOIDmode, x); return; } + gcc_unreachable (); default: output_operand_lossage ("invalid %%xn code"); }