This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/14188] New: pthread_cleanup_push uses __builtin_expect when !defined(__GNUC__)
- From: "robotux at celest dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 31 May 2012 16:15:25 +0000
- Subject: [Bug nptl/14188] New: pthread_cleanup_push uses __builtin_expect when !defined(__GNUC__)
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14188
Bug #: 14188
Summary: pthread_cleanup_push uses __builtin_expect when
!defined(__GNUC__)
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: nptl
AssignedTo: unassigned@sourceware.org
ReportedBy: robotux@celest.fr
CC: drepper.fsp@gmail.com
Classification: Unclassified
Greetings glibc maintainers,
in pthread.h, when __GNUC__ is not defined, pthread_cleanup_push is defined
(line 648 in 2.15) in a way that uses __builtin_expect. I think this can't
reasonnably be expected to be supported by all compilers. As a matter of fact,
tinycc doesn't support this extension and thus every program using
pthread_cleanup_push fails to compile with it.
Best regards,
Thomas Preud'homme
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.