[PATCH 1/7] Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning
Adhemerval Zanella
azanella@linux.vnet.ibm.com
Tue Mar 18 12:28:00 GMT 2014
On 17-03-2014 16:53, Roland McGrath wrote:
>> For 788bba368c2eaf8aa3fd2ca18d269395d6bc8afb I still think the ifdef for
>> __PTHREAD_MUTEX_HAVE_ELISION is the way to go, since it fallows the
>> __PTHREAD_MUTEX_HAVE_PREV logic already in place and avoid adds another
>> default header or add more arch specific logic for arch that do not
>> support it.
> Someone should audit all the related #if logic and describe what it's
> doing. Then we can consider how best to rework it to be typo-proof.
>
So your idea is also to refactor __PTHREAD_MUTEX_HAVE_PREV to use as #if ... along with
__PTHREAD_MUTEX_HAVE_ELISION then? Both defines are set by arch specific headers,
so would be the idea to just a generic pthread header (or use an existing one) to
define them to default values?
More information about the Libc-alpha
mailing list