From: Hans-Peter Nilsson Date: Sat, 18 Jan 2020 15:31:38 +0000 (+0100) Subject: libgcc: cris: config/cris/arit.c (DS): Apply attribute __fallthrough__. X-Git-Tag: upstream/12.2.0~18962 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=463f649944708eb2db148a9ca51ec86ea4c64fa8;p=platform%2Fupstream%2Fgcc.git libgcc: cris: config/cris/arit.c (DS): Apply attribute __fallthrough__. * config/cris/arit.c (DS): Apply attribute fallthrough. Without this, there are, for each compilation of arit.c, 30ish occurrences of "this statement may fall through [-Wimplicit-fallthrough=]", for lines that look like case 32: DS; case 31: DS; case 30: DS; case 29: DS; --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index a0c1e30..5e8b506 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-18 Hans-Peter Nilsson + + * config/cris/arit.c (DS): Apply attribute __fallthrough__. + 2020-01-18 John David Anglin PR libgcc/92988 diff --git a/libgcc/config/cris/arit.c b/libgcc/config/cris/arit.c index ba1c1e7..3369559 100644 --- a/libgcc/config/cris/arit.c +++ b/libgcc/config/cris/arit.c @@ -128,7 +128,8 @@ do_31div (unsigned long a, unsigned long b) i.e. "a - (b - 1) == (a - b) + 1". */ b--; -#define DS __asm__ ("dstep %2,%0" : "=r" (a) : "0" (a), "r" (b)) +#define DS __asm__ ("dstep %2,%0" : "=r" (a) : "0" (a), "r" (b)); \ + __attribute__ ((__fallthrough__)) switch (quot_digits) {