[PATCH 28/34] Linux: Move timer helper routines from librt to libc

Florian Weimer fweimer@redhat.com
Fri Jun 25 11:38:50 GMT 2021


* Adhemerval Zanella:

>> +/* Lock for _timer_active_sigev_thread.  */
>> +pthread_mutex_t __timer_active_sigev_thread_lock __attribute__ ((nocommon))
>> +  = PTHREAD_MUTEX_INITIALIZER;
>> +libc_hidden_data_def (__timer_active_sigev_thread_lock)
>>  
>>  struct thread_start_data
>>  {
>
> Ok.  I think we should either use a macro initializer for global without
> an initialization or add a attribute macro on cdef.h for 
> __attribute__ ((nocommon).

My plan is to submit a patch to build with -fno-common by default, then
all this won't be necessary.  -fno-common has been supported by GCC for
a long time, it just hasn't been the default.  But all of glibc can now
build with -fcommon.

Thanks,
Florian



More information about the Libc-alpha mailing list