[PATCH][BZ #14188] Allow pthread_cleanup_push to build with compilers other than gcc
Siddhesh Poyarekar
siddhesh@redhat.com
Fri Jun 1 13:00:00 GMT 2012
Hi,
As reported in bz #14188, programs using pthread_cleanup_push do not
compile cleanly with compilers that do not implement __builtin_*
functions. Attached trivial patch eliminates the __builtin_expect inside
pthread_cleanup_push macro definition in pthread.h if the compiler is
not gcc.
OK to commit?
Regards,
Siddhesh
nptl/ChangeLog:
2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
[BZ #14188]
* sysdeps/pthread/pthread.h [!__GNUC__]: Define __builtin_expect
when compiler is not gcc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread-nongcc.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120601/9892d65b/attachment.bin>
More information about the Libc-alpha
mailing list