riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments.
authorJeff Law <law@redhat.com>
Mon, 13 Mar 2017 17:49:40 +0000 (11:49 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 13 Mar 2017 17:49:40 +0000 (11:49 -0600)
        * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
        attribute rather than comments.

From-SVN: r246101

gcc/ChangeLog
gcc/config/riscv/riscv.c

index 124dca3..e863cdf 100644 (file)
@@ -1,5 +1,8 @@
 2017-03-13  Jeff Law  <law@redhat.com>
 
+       * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
+       attribute rather than comments.
+
        * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
        match_scratch operand is highest.
 
index 89567f7..e5044ba 100644 (file)
@@ -2089,13 +2089,13 @@ riscv_emit_float_compare (enum rtx_code *code, rtx *op0, rtx *op1)
 
     case UNLT:
       std::swap (cmp_op0, cmp_op1);
-      /* Fall through.  */
+      __attribute__((fallthrough));
 
     UNORDERED_COMPARISON(UNGT, le)
 
     case UNLE:
       std::swap (cmp_op0, cmp_op1);
-      /* Fall through.  */
+      __attribute__((fallthrough));
 
     UNORDERED_COMPARISON(UNGE, lt)
 #undef UNORDERED_COMPARISON