[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-toolchain
Subject:    Re: gcc-4.8/c++ threads, please
From:       Thomas Klausner <wiz () NetBSD ! org>
Date:       2014-04-27 12:19:02
Message-ID: 20140427121901.GP10359 () danbala ! tuwien ! ac ! at
[Download RAW message or body]

On Sun, Apr 27, 2014 at 11:25:38AM +0200, Martin Husemann wrote:
> On Sun, Apr 27, 2014 at 10:57:26AM +0200, Thomas Klausner wrote:
> > Looking at /usr/include/g++/bits/x86_64/c++config.h, lots of threading
> > stuff is disabled:
> 
> Does the pkgsrc/lang/gcc48-cc++ configure gthreads support?

Looking at work/build/prev-x86_64--netbsd/libstdc++-v3/config.h it
only looks slightly better.

/* Define to 1 if the target assembler supports thread-local storage. */
/* #undef HAVE_CC_TLS */
/* Define to 1 if the target supports thread-local storage. */
#define HAVE_TLS 1
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
/* #undef HAVE___CXA_THREAD_ATEXIT_IMPL */
/* Define if gthreads library is available. */
#define _GLIBCXX_HAS_GTHREADS 1
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
/* #undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP */
/* Define to 1 if mutex_timedlock is available. */
#define _GTHREAD_USE_MUTEX_TIMEDLOCK 0

For comparison, here's /usr/include/g++/bits/x86_64/c++config.h again:

/* Define to 1 if the target assembler supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_CC_TLS */
/* Define to 1 if the target supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_TLS */
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
/* #undef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL */
/* Define if gthreads library is available. */
/* #undef _GLIBCXX_HAS_GTHREADS */
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
/* #undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP */
/* Define to 1 if mutex_timedlock is available. */
#define _GTHREAD_USE_MUTEX_TIMEDLOCK 0

 Thomas
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic