]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 17:49:40 +0000 (17:49 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 17:49:40 +0000 (17:49 +0000)
        attribute rather than comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246101 138bc75d-0d04-0410-961f-82ee72b054a4

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