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: [v3] c++0x <mutex> and <condition_variable>


Andreas Tobler wrote:
Paolo Carlini wrote:
Chris Fairles wrote:
Missed a few explicit bool casts.
Committed after a multilib build on x86_64-linux.
Breaks bootstrap on *-*-darwin*.
Sorry Andreas. I'm committing the below should be enough to restore bootstrap on darwin (actually, earlier today wanted to regtest on darwin too, but bootstrap was broken for other reasons ;)

Anyway, Chris, I confirm that we need something more fine-grained on the library side, disabling only the features relying on _POSIX_TIMERS. Better would be allowing also for the cases of _POSIX_TIMERS == 0 and then check at run-time if the feature is actually available, per the usual Posix rules.

Paolo.

//////////////////
2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>

	* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check _POSIX_TIMERS too.
	* configure: Regenerate.
Index: acinclude.m4
===================================================================
*** acinclude.m4	(revision 139944)
--- acinclude.m4	(working copy)
*************** AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
*** 2843,2849 ****
  
    AC_TRY_COMPILE([#include "gthr.h"],
      [
!      	#ifndef __GTHREADS_CXX0X
  	#error
  	#endif
      ], [ac_has_gthreads=yes], [ac_has_gthreads=no])
--- 2843,2849 ----
  
    AC_TRY_COMPILE([#include "gthr.h"],
      [
!      	#if (!defined(__GTHREADS_CXX0X) || _POSIX_TIMERS <= 0)
  	#error
  	#endif
      ], [ac_has_gthreads=yes], [ac_has_gthreads=no])

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