[Bug nptl/13344] New: Marking all functions which don't have callbacks with the leaf attribute breaks pthread applications.
cryptooctoploid at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Oct 25 18:20:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=13344
Bug #: 13344
Summary: Marking all functions which don't have callbacks with
the leaf attribute breaks pthread applications.
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: nptl
AssignedTo: drepper.fsp@gmail.com
ReportedBy: cryptooctoploid@gmail.com
Classification: Unclassified
Commit aa78043a4aafe5 marks all functions, which don't have callbacks, with
the leaf attribute. This may break pthreaded apps (for example "git grep"),
because pthread_mutex_{lock,unlock,trylock,timedlock} and
pthread_cond_{wait,timedwait} , etc. are also marked and therefore gcc
happily optimizes them.
See: https://bugzilla.redhat.com/show_bug.cgi?id=747377
or: http://thread.gmane.org/gmane.comp.version-control.git/184184
There are two possibilties to solve this issue; either don't mark the pthread
related functions in glibc or teach gcc to unmark those functions.
--
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