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 124dca320c891182e6b1091a5e5e90a45865013e..e863cdfbdf450931dabc4cbde1d1b0fda336f3f1 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 89567f72b711685c52a7e59962943dde2ace6811..e5044ba5a9f680bd4814787037918e64ca4ad214 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