From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681AbdK1UML (ORCPT ); Tue, 28 Nov 2017 15:12:11 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35457 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753015AbdK1UMK (ORCPT ); Tue, 28 Nov 2017 15:12:10 -0500 Date: Tue, 28 Nov 2017 21:11:55 +0100 (CET) From: Thomas Gleixner To: Alan Cox cc: "Gustavo A. R. Silva" , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, LKML , Kees Cook Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs In-Reply-To: <20171128190032.2b1fa464@alans-desktop> Message-ID: References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128190032.2b1fa464@alans-desktop> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov 2017, Alan Cox wrote: > > I have no idea who came up with that brilliant idea of parsing comments in > > the code. It's so simple to make this parser completely fail that it's not > > Stephen Johnson (author of the V7 portable C compiler), which is where > it's from (the lint tool). He also wrote yacc so he does know a bit about > parsers 8). I don't doubt that. > > even funny anymore. > > The notation in question has been standard in tools like lint since the > end of the 1970s Fair enough. Still that does not make the GCC implementation which defaults to take 'any comment' as valid any better and does not solve other parsing issues which have been pointed out in various GCC bugs. Using the macro annotation is distinct and has no ifs and buts. Thanks, tglx