aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/cr16
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2016-10-26 10:27:44 -0600
committerJeff Law <law@gcc.gnu.org>2016-10-26 10:27:44 -0600
commitf2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30 (patch)
treee572a2305121e8eaa2d54cd7a6d277daf03ba1ad /gcc/config/cr16
parent790207d6459bcb18ba3fe6a84d591e48ce30dc0f (diff)
downloadgcc-f2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30.zip
gcc-f2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30.tar.gz
gcc-f2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30.tar.bz2
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
Diffstat (limited to 'gcc/config/cr16')
-rw-r--r--gcc/config/cr16/cr16.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c
index 530ccba..cc24fa5 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");
}