public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/13344] New: Marking all functions which don't have callbacks with the leaf attribute breaks pthread applications.
@ 2011-10-25 18:20 cryptooctoploid at gmail dot com
  2011-10-25 20:32 ` [Bug nptl/13344] " jakub at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: cryptooctoploid at gmail dot com @ 2011-10-25 18:20 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-27 11:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 18:20 [Bug nptl/13344] New: Marking all functions which don't have callbacks with the leaf attribute breaks pthread applications cryptooctoploid at gmail dot com
2011-10-25 20:32 ` [Bug nptl/13344] " jakub at redhat dot com
2011-10-25 20:39 ` jakub at redhat dot com
2011-10-25 20:52 ` jakub at redhat dot com
2011-10-26  6:55 ` jim at meyering dot net
2011-10-27 16:41 ` cryptooctoploid at gmail dot com
2014-06-27 11:44 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).