C++ PATCH for c++/56346 (thread_local3.C link error on targets without __dso_handle)

2013-03-13 Thread Jason Merrill
We can't pass the address of __dso_handle to __cxa_thread_atexit if the target doesn't provide that symbol in the crt files. Fixed by passing NULL if the target doesn't use __cxa_atexit. Tested x86_64-pc-linux-gnu and hppa2.0w-hp-hpux11.11. This fixes broken new functionality on a secondary

Re: C++ PATCH for c++/56346 (thread_local3.C link error on targets without __dso_handle)

2013-03-13 Thread Jakub Jelinek
On Wed, Mar 13, 2013 at 03:32:24PM -0400, Jason Merrill wrote: We can't pass the address of __dso_handle to __cxa_thread_atexit if the target doesn't provide that symbol in the crt files. Fixed by passing NULL if the target doesn't use __cxa_atexit. Tested x86_64-pc-linux-gnu and