Mark fallthrough cases with gcc_fallthrough.
authorFritz Reese <fritzoreese@gmail.com>
Tue, 1 Nov 2016 15:29:51 +0000 (15:29 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Tue, 1 Nov 2016 15:29:51 +0000 (15:29 +0000)
* gcc/combine.c (simplify_compare_const): Add gcc_fallthrough.

From-SVN: r241744

gcc/ChangeLog
gcc/combine.c

index 8c6331e13b96df1cf5ae4d371a98e3bf9d3eb7c2..46aeac1c2c9dc30ee60f554c5b6b0b902781f1c5 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
+
+       * gcc/combine.c (simplify_compare_const): Add gcc_fallthrough.
+
 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
            Tamar Christina <tamar.christina@arm.com>
 
index 60a127f2e53dbfb32ac32c5c0962539fbf880480..6cbb8cfb23ec3e18a9868e4a5f2f6784a0d75d7c 100644 (file)
@@ -11414,6 +11414,7 @@ simplify_compare_const (enum rtx_code code, machine_mode mode,
          const_op -= 1;
          code = LE;
          /* ... fall through to LE case below.  */
+         gcc_fallthrough ();
        }
       else
        break;
@@ -11443,6 +11444,7 @@ simplify_compare_const (enum rtx_code code, machine_mode mode,
          const_op -= 1;
          code = GT;
          /* ... fall through to GT below.  */
+         gcc_fallthrough ();
        }
       else
        break;