domi...@lps.ens.fr (Dominique Dhumieres) writes:

> On x86_64-apple-darwin10 The following tests:
>
> g++.dg/gomp/tls-5.C
> g++.dg/tls/thread_local-cse.C
> g++.dg/tls/thread_local-order*.C
> g++.dg/tls/thread_local*g.C
>
> fail with
>
> sorry, unimplemented: dynamic initialization of non-function-local 
> thread_local variables not supported on this target

On i386-pc-solaris2.10 (with native TLS), I see

FAIL: g++.dg/tls/thread_local-order1.C execution test
FAIL: g++.dg/tls/thread_local3g.C -std=gnu++11 execution test
FAIL: g++.dg/tls/thread_local4g.C -std=gnu++11 execution test
FAIL: g++.dg/tls/thread_local5g.C -std=gnu++11 execution test
FAIL: g++.dg/tls/thread_local6g.C execution test

thread_local-order1.exe aborts like this, with i = 0, c = 2:

Program received signal SIGABRT, Aborted.
[Switching to Thread 1 (LWP 1)]
0xfed5c5f5 in _lwp_kill () from /lib/libc.so.1
(gdb) where
#0  0xfed5c5f5 in _lwp_kill () from /lib/libc.so.1
#1  0xfed57485 in thr_kill () from /lib/libc.so.1
#2  0xfed0366f in raise () from /lib/libc.so.1
#3  0xfece2971 in abort () from /lib/libc.so.1
#4  0x08050f5d in A::~A (this=0x8061340 <a0>, __in_chrg=<optimized out>)
    at 
/vol/gcc/src/hg/trunk/solaris/gcc/testsuite/g++.dg/tls/thread_local-order1.C:14
#5  0x08050e6a in __static_initialization_and_destruction_0 (__initialize_p=0, 
    __priority=65535)
    at 
/vol/gcc/src/hg/trunk/solaris/gcc/testsuite/g++.dg/tls/thread_local-order1.C:17
#6  0x08050f01 in _GLOBAL__sub_D_c ()
    at 
/vol/gcc/src/hg/trunk/solaris/gcc/testsuite/g++.dg/tls/thread_local-order1.C:25
#7  0x08050d50 in __do_global_dtors_aux ()
#8  0x08050ff5 in _fini ()
#9  0xfece30bd in _exithandle () from /lib/libc.so.1
#10 0xfecd5662 in exit () from /lib/libc.so.1
#11 0x08050bda in _start ()

I cannot run the others under gdb 4.5, though:

Starting program: 
/var/gcc/gcc-4.8.0-20121010/10-gcc-gas/gcc/testsuite/g++/thread_local4g.exe 
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
[New LWP    2        ]
[LWP    2         exited]
[New Thread 2        ]
thread_to_lwp: td_ta_map_id2thr Debugger service failed

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to