[PATCH] posix gthreads additions for c++0x thread library

Paolo Carlini paolo.carlini@oracle.com
Mon Aug 18 21:59:00 GMT 2008


Paolo Carlini wrote:
> I see. Given the current plan of minimizing the configury divergences 
> between native and crosses, It seems to me that we should do our best 
> to avoid completely AC_TRY_LINK tests, or  use 
> GCC_TRY_COMPILE_OR_LINK. This is a bit tricky, it seems, better figure 
> out the gthread bits first and then move from there. By the way, isn't 
> there something to be learned from the existing 
> [GLIBCXX_ENABLE_THREADS] test acinclude.m4? It appears to exactly look 
> up gthr-default.h and when it runs, normally (I mean, for example, 
> x86_64-linux native) gthr-default.h *is* set up, and HAVE_GTHR_DEFAULT 
> is defined.
In other terms: wouldn't it be possible to prepare an autoconf test 
completely similar to [GLIBCXX_ENABLE_THREADS], thus looking inside 
$gthread_file with grep. To make things easier could be defined a new 
__GTHREADS_CXX0X or something like that?

That type of test would be automatically OK to run unconditionally, not 
just when native.

Paolo.



More information about the Gcc-patches mailing list