[Bug c++/66362] New: Compiling and linking with option -static-libgcc breaks pthread library stack (funcs and macroses)
vvs at a dot legko.ru
gcc-bugzilla@gcc.gnu.org
Mon Jun 1 14:32:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list