This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]