From owner-svn-src-head@FreeBSD.ORG Sun Oct 27 00:18:38 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 83D0699D; Sun, 27 Oct 2013 00:18:38 +0000 (UTC) (envelope-from kubito@gmail.com) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 79CD22B46; Sun, 27 Oct 2013 00:18:37 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id eh20so4128543lab.39 for ; Sat, 26 Oct 2013 17:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=tVVCAVvKK360SiFydl//j7SKqe7CS7/i0lj9kHiAyvI=; b=mPQ5afvs2YK7pPKFhmW/iFVEp9DrPcl0VxcZCBgZ12cKsBHvolYsNePbPixFijUXwz tgH5l2MNSjqbVmVfcmhTXW6uo/He4k24zODnPqK8WLtpglkv/QB1rEri8p2dbTR+YTYJ +B81HCpx+/2geHYZHwuvmcbG5ebM+9xYXLDShDqbC/BOIl1pN0RU0dH+UvI3RA+pnaq6 gkqAHEN9HRHlhjxNHj3MTmZPjqKZN7Tp5qZ6x7L/NQavcO2FEEBJlhg2fv77diqqdqd1 y+oGY6T88G6ZrFojEKlS+pia3ZN5pOQu7Sb5oiM5mQQg4Eai2b1hg8ab9bI8Eafgt1bV HcbA== X-Received: by 10.152.23.137 with SMTP id m9mr9628639laf.17.1382833115481; Sat, 26 Oct 2013 17:18:35 -0700 (PDT) Received: from orwell.Elisa.gmail.com (a91-154-115-217.elisa-laajakaista.fi. [91.154.115.217]) by mx.google.com with ESMTPSA id qj3sm3890151lbb.6.2013.10.26.17.18.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 26 Oct 2013 17:18:34 -0700 (PDT) Sender: Raphael Kubo da Costa From: Raphael Kubo da Costa To: David Chisnall Subject: Re: svn commit: r253260 - head/lib/msun/src References: <201307121103.r6CB3qrh068782@svn.freebsd.org> <86d2mrd10h.fsf__46266.7496213273$1382832829$gmane$org@orwell.Elisa> Date: Sun, 27 Oct 2013 03:18:30 +0300 In-Reply-To: <86d2mrd10h.fsf__46266.7496213273$1382832829$gmane$org@orwell.Elisa> (Raphael Kubo da Costa's message of "Sun, 27 Oct 2013 03:13:18 +0300") Message-ID: <868uxfd0rt.fsf@orwell.Elisa> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2013 00:18:38 -0000 Raphael Kubo da Costa writes: > David Chisnall writes: > >> Author: theraven >> Date: Fri Jul 12 11:03:51 2013 >> New Revision: 253260 >> URL: http://svnweb.freebsd.org/changeset/base/253260 >> >> Log: >> Fix the build with C++ where __builtin_types_compatible_p is not allowed. >> >> Modified: >> head/lib/msun/src/math.h >> >> Modified: head/lib/msun/src/math.h >> ============================================================================== >> --- head/lib/msun/src/math.h Fri Jul 12 10:07:48 2013 (r253259) >> +++ head/lib/msun/src/math.h Fri Jul 12 11:03:51 2013 (r253260) >> @@ -81,12 +81,13 @@ extern const union __nan_un { >> #define FP_SUBNORMAL 0x08 >> #define FP_ZERO 0x10 >> >> -#if __STDC_VERSION__ >= 201112L && defined(__clang__) >> +#if (__STDC_VERSION__ >= 201112L && defined(__clang__)) || \ >> + __has_extension(c_generic_selections) >> #define __fp_type_select(x, f, d, ld) _Generic((x), \ >> float: f(x), \ >> double: d(x), \ >> long double: ld(x)) > > One of the things that's making cad/brlcad fail with clang is some C > code that calls isnan() and isinf() with -std=gnu89, -Werror and > -Wc11-extensions: (To be fair, it's -pedantic that brings in -Wc11-extensions)