From owner-svn-src-head@FreeBSD.ORG Tue Jul 23 10:23:43 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E875D6CF; Tue, 23 Jul 2013 10:23:43 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D9E9C2561; Tue, 23 Jul 2013 10:23:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NANhIF065714; Tue, 23 Jul 2013 10:23:43 GMT (envelope-from theraven@svn.freebsd.org) Received: (from theraven@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6NANhGf065713; Tue, 23 Jul 2013 10:23:43 GMT (envelope-from theraven@svn.freebsd.org) Message-Id: <201307231023.r6NANhGf065713@svn.freebsd.org> From: David Chisnall Date: Tue, 23 Jul 2013 10:23:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253563 - head/contrib/libstdc++/include/c_std X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Tue, 23 Jul 2013 10:23:44 -0000 Author: theraven Date: Tue Jul 23 10:23:43 2013 New Revision: 253563 URL: http://svnweb.freebsd.org/changeset/base/253563 Log: Add isnan() and isinf() to the global namespace in libstdc++'s . The standard (n3242, section 17.6.1.1, paragraph 4) says that, because these are declared as macros in the C specification (even though they are implemented as functions in the C++ library) they should be in the global namespace. A surprising number of configure checks rely on this. It was broken by recent cleanups to math.h. Modified: head/contrib/libstdc++/include/c_std/std_cmath.h Modified: head/contrib/libstdc++/include/c_std/std_cmath.h ============================================================================== --- head/contrib/libstdc++/include/c_std/std_cmath.h Tue Jul 23 05:11:22 2013 (r253562) +++ head/contrib/libstdc++/include/c_std/std_cmath.h Tue Jul 23 10:23:43 2013 (r253563) @@ -589,6 +589,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) { return ::__gnu_cxx::__capture_isunordered(__f1, __f2); } _GLIBCXX_END_NAMESPACE +using std::isnan; +using std::isinf; #endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */ #endif