[Bug nptl/14188] New: pthread_cleanup_push uses __builtin_expect when !defined(__GNUC__)

robotux at celest dot fr sourceware-bugzilla@sourceware.org
Thu May 31 16:15:00 GMT 2012


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.



More information about the Glibc-bugs mailing list