Messages in this thread | | | Subject | Re: [PATCH -next 006/491] ARM/RISCPC ARCHITECTURE: Use fallthrough; | From | Joe Perches <> | Date | Thu, 12 Mar 2020 03:19:57 -0700 |
| |
On Thu, 2020-03-12 at 10:11 +0000, Russell King - ARM Linux admin wrote: > On Tue, Mar 10, 2020 at 09:51:20PM -0700, Joe Perches wrote: > > Convert the various uses of fallthrough comments to fallthrough; > > And the point of what on the face of it seems to be useless churn is? > > What compilers support this?
gcc 7.1, clang 9
clang does not support the /* fallthrough */ comment styles.
clang does support the __attribute__((__fallthrough__)) and the c++17 [[fallthrough]] weirdness.
see:
commit 294f69e662d1 ("compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use")
| |