From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 5 00:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 79E86386 for ; Sat, 5 Oct 2013 00:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 59A0A2EBC for ; Sat, 5 Oct 2013 00:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r950A0aF044273 for ; Sat, 5 Oct 2013 00:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r950A0bo044272; Sat, 5 Oct 2013 00:10:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Oct 2013 00:10:00 GMT Resent-Message-Id: <201310050010.r950A0bo044272@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simon 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 49DF8382 for ; Sat, 5 Oct 2013 00:09:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F48C2EB8 for ; Sat, 5 Oct 2013 00:09:49 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9509mVn064550 for ; Sat, 5 Oct 2013 00:09:48 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9509mPW064394; Sat, 5 Oct 2013 00:09:48 GMT (envelope-from nobody) Message-Id: <201310050009.r9509mPW064394@oldred.freebsd.org> Date: Sat, 5 Oct 2013 00:09:48 GMT From: Simon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182657: [patch] lang/gcc48: expose c99 math in 'std' namespace X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2013 00:10:00 -0000 >Number: 182657 >Category: ports >Synopsis: [patch] lang/gcc48: expose c99 math in 'std' namespace >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 05 00:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Simon >Release: >Organization: >Environment: http://svnweb.freebsd.org/changeset/base/227472 http://svnweb.freebsd.org/changeset/base/255294 >Description: Just like libc++ (on freebsd) define _DECLARE_C99_LDBL_MATH to make C++11 math work. http://forums.freebsd.org/showthread.php?t=42279 >How-To-Repeat: >Fix: --- c99math.diff begins here --- diff --git libstdc++-v3/acinclude.m4 libstdc++-v3/acinclude.m4 index af0b23b..92f590c 100644 --- libstdc++-v3/acinclude.m4 +++ libstdc++-v3/acinclude.m4 @@ -1584,6 +1584,11 @@ AC_DEFUN([GLIBCXX_CHECK_C99_TR1], [ # Check for the existence of functions. AC_MSG_CHECKING([for ISO C99 support to TR1 in ]) + case ${target_os} in + freebsd*) + AC_DEFINE(_DECLARE_C99_LDBL_MATH, 1, + [Define if C99 math implementation is incomplete.]) + esac AC_CACHE_VAL(glibcxx_cv_c99_math_tr1, [ AC_TRY_COMPILE([#include ], [typedef double_t my_double_t; diff --git libstdc++-v3/config.h.in libstdc++-v3/config.h.in index 61ac3ab..6621fc2 100644 --- libstdc++-v3/config.h.in +++ libstdc++-v3/config.h.in @@ -713,6 +713,9 @@ /* Version number of package */ #undef VERSION +/* Define if C99 math implementation is incomplete. */ +#undef _DECLARE_C99_LDBL_MATH + /* Define if the compiler supports C++11 atomics. */ #undef _GLIBCXX_ATOMIC_BUILTINS diff --git libstdc++-v3/configure libstdc++-v3/configure index 57452f7..7dff6ae 100755 --- libstdc++-v3/configure +++ libstdc++-v3/configure @@ -18925,6 +18925,12 @@ $as_echo "#define _GLIBCXX_USE_C99_STDINT_TR1 1" >>confdefs.h # Check for the existence of functions. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in " >&5 $as_echo_n "checking for ISO C99 support to TR1 in ... " >&6; } + case ${target_os} in + freebsd*) + +$as_echo "#define _DECLARE_C99_LDBL_MATH 1" >>confdefs.h + + esac if test "${glibcxx_cv_c99_math_tr1+set}" = set; then : $as_echo_n "(cached) " >&6 else --- c99math.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: