From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Triplett Subject: Re: buffer overflow check bug Date: Mon, 18 Jun 2012 13:04:07 -0700 Message-ID: <20120618200407.GA3231@leaf> References: <4FDEFCB1.7030800@gmail.com> <4FDF0AA5.6080905@gmail.com> <20120618113037.GI4400@mwanda> <4FDF1610.3000100@gmail.com> <20120618121726.GG13539@mwanda> <4FDF2036.4080908@gmail.com> <20120618134338.GJ4400@mwanda> <20120618181111.GH13539@mwanda> <20120618195344.GM4400@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from relay4-d.mail.gandi.net ([217.70.183.196]:37393 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802Ab2FRUEP (ORCPT ); Mon, 18 Jun 2012 16:04:15 -0400 Content-Disposition: inline In-Reply-To: <20120618195344.GM4400@mwanda> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Dan Carpenter Cc: KOSAKI Motohiro , smatch@vger.kernel.org, linux-sparse@vger.kernel.org On Mon, Jun 18, 2012 at 10:53:44PM +0300, Dan Carpenter wrote: > Gar... I have no idea. That seems like an issue in sparse. > > Does anyone know why MOD_NORETURN gets set for: > extern void my_exit(const char*, ...) __attribute__ ((__noreturn__)); > > but not for: > extern __attribute__ ((__noreturn__)) void my_exit(const char*, ...); > > GCC seems to accept both formats. I wonder if the latter gets incorrectly parsed as though the attribute attached to "void" rather than "my_exit"? - Josh Triplett