This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Use --enable-libstdcxx-time=yes on DragonFly BSD
- From: Jeff Law <law at redhat dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Cc: John Marino <gnugcc at marino dot st>
- Date: Tue, 10 Mar 2015 13:55:08 -0600
- Subject: Re: [patch] Use --enable-libstdcxx-time=yes on DragonFly BSD
- Authentication-results: sourceware.org; auth=none
- References: <20150310192320 dot GF13455 at redhat dot com>
On 03/10/15 13:23, Jonathan Wakely wrote:
It has just occurred to me we might want to make this change for GCC5:
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index 1727140..0b8c0f0 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -1219,11 +1219,11 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
ac_has_clock_realtime=yes
fi
ac_has_nanosleep=yes
ac_has_sched_yield=yes
;;
- freebsd*|netbsd*)
+ freebsd*|netbsd*|dragonfly*)
ac_has_clock_monotonic=yes
ac_has_clock_realtime=yes
ac_has_nanosleep=yes
ac_has_sched_yield=yes
;;
We could make this change post-GCC5 but as the dragonfly target is new
for GCC5 it would be a shame to release it with a sub-optimal
resolution for clocks and thread sleeping.
John, assuming I'm right that dragonfly supports all these features,
could you test this change? (You'll need the same change on line
19555 of the libstdc++-v3/configure script.)
Given the narrow scope for potential breakage, it seems fine to me.
jeff