From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: Re: [PATCH v2] add __builtin functions for isinf_sign, isfinite and isnan Date: Fri, 17 Nov 2017 09:13:49 +0100 Message-ID: <20171117081348.5cdzuctwi6i3ltu6@ltop.local> References: <20171116230817.10011-1-logang@deltatee.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:46637 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965253AbdKQINt (ORCPT ); Fri, 17 Nov 2017 03:13:49 -0500 Received: by mail-wm0-f66.google.com with SMTP id z3so4681031wme.5 for ; Fri, 17 Nov 2017 00:13:49 -0800 (PST) Content-Disposition: inline In-Reply-To: <20171116230817.10011-1-logang@deltatee.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Logan Gunthorpe Cc: linux-sparse@vger.kernel.org, Christopher Li On Thu, Nov 16, 2017 at 04:08:17PM -0700, Logan Gunthorpe wrote: > These bultins are defined by in gcc since 4.4. They are also now > used by the isinf, isfinite and isnan macros. So using them with a > newer gcc causes 'undefined identifier' errors. > > Add the builtin definitions and some validation checks for these > functions. > > Signed-off-by: Logan Gunthorpe Acked-by: Luc Van Oostenryck > --- > > Changes since v1: > * Remove math.h dependancy from validation tests. As a consequnce > we don't test that the math functions work. (Per a request from > Christopher.) It would only have tested if your doesn't have errors. -- Luc