This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/13344] New: Marking all functions which don't have callbacks with the leaf attribute breaks pthread applications.
- From: "cryptooctoploid at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 25 Oct 2011 18:19:51 +0000
- Subject: [Bug nptl/13344] New: Marking all functions which don't have callbacks with the leaf attribute breaks pthread applications.
- Auto-submitted: auto-generated
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.