This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66362] New: Compiling and linking with option -static-libgcc breaks pthread library stack (funcs and macroses)
- From: "vvs at a dot legko.ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Jun 2015 14:32:25 +0000
- Subject: [Bug c++/66362] New: Compiling and linking with option -static-libgcc breaks pthread library stack (funcs and macroses)
- Auto-submitted: auto-generated
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.