From 368b626f2626a7752a18c7f9b817e49f3f587226 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 Oct 2017 13:23:50 +0200 Subject: [PATCH] Fix -Wimplicit-fallthrough in combine.c 2017-10-18 Martin Liska * combine.c (simplify_compare_const): Add gcc_fallthrough. From-SVN: r253853 --- gcc/ChangeLog | 4 ++++ gcc/combine.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4563c8e2ab..a5c3139dc4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-10-18 Martin Liska + + * combine.c (simplify_compare_const): Add gcc_fallthrough. + 2017-10-18 Robin Dapp * config/s390/s390.c (s390_bb_fallthru_entry_likely): New function. diff --git a/gcc/combine.c b/gcc/combine.c index 3b96d86bdb3..757ae6fc93e 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11791,6 +11791,7 @@ simplify_compare_const (enum rtx_code code, machine_mode mode, const_op -= 1; code = LEU; /* ... fall through ... */ + gcc_fallthrough (); } /* (unsigned) < 0x80000000 is equivalent to >= 0. */ else if (is_a (mode, &int_mode) @@ -11828,6 +11829,7 @@ simplify_compare_const (enum rtx_code code, machine_mode mode, const_op -= 1; code = GTU; /* ... fall through ... */ + gcc_fallthrough (); } /* (unsigned) >= 0x80000000 is equivalent to < 0. */ -- 2.30.2