From: "Jan Beulich" Subject: Re: [PATCH] misc/coverity: Model __builtin_unreachable() Date: Wed, 24 Sep 2014 15:50:46 +0100 Message-ID: <5422F66602000078000385F7@mail.emea.novell.com> References: <1411566794-11652-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411566794-11652-1-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: KeirFraser , Ian Campbell , Ian Jackson , Tim Deegan , coverity@xenproject.org, Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 24.09.14 at 15:53, wrote: > /* > + * Coverity doesn't understand __builtin_unreachable(), which causes it to > + * incorrectly find issues based on continuing execution along the false > + * branch of an ASSERT(). > + */ > +void __builtin_unreachable(void) > +{ > + __coverity_panic__(); > +} And (for those of us without intimate knowledge of Coverity) __coverity_panic__() does what? By its name I would conclude it terminates the current scan altogether... Jan