[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1486752614.2192.11.camel@perches.com>
Date: Fri, 10 Feb 2017 10:50:14 -0800
From: Joe Perches <joe@...ches.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Christopher Li <sparse@...isli.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-sparse@...r.kernel.org
Subject: Re: [PATCH] compiler/compiler-gcc: Add __fallthrough
On Fri, 2017-02-10 at 14:18 -0300, Arnaldo Carvalho de Melo wrote:
> Em Fri, Feb 10, 2017 at 09:08:35AM -0800, Joe Perches escreveu:
> > gcc v7.0 can warn on missing break statements from case labels
> > using a special __attribute__((fallthrough))__ marker.
> >
> > Add a __fallthrough convenience macro for gcc versions >= 7 and
> > make the generic use of __fallthrough a no-op.
>
> Can you state in the log message were this idea came from? Say,
> something like:
>
> "This was introduced in the tools/include/linux/compiler.h, where it was
> first noticed while buildint tools/perf/ in a Fedora Rawhide
> environment."
The request is from at least 2002.
Maybe Andrew could add a link like:
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652
if he applies it.
Powered by blists - more mailing lists