This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 c++/66362] New: Compiling and linking with option -static-libgcc breaks pthread library stack (funcs and macroses)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66362

            Bug ID: 66362
           Summary: Compiling and linking with option -static-libgcc
                    breaks pthread library stack (funcs and macroses)
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vvs at a dot legko.ru
  Target Milestone: ---

Created attachment 35664
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35664&action=edit
Use of pthread_cleanup_push() and -static-libgcc option breaks the prog

When compiling with g++, when the pthread_cleanup_push() is used to push the
handler,  the handler, when called, makes the prog to Abort.
Sample prog is in attachment.
Compiling options are:
g++ test_pc.cpp -lpthread -static-libgcc -static-libstdc++  -o test_pc
System - Linux.


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