This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Use --enable-libstdcxx-time=yes on DragonFly BSD


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]