[Bug target/55339] C++ code compiled with -O2 on Linux ppc hangs in runtime

2012-11-16 Thread anton.katilin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55339 --- Comment #4 from anton.katilin at gmail dot com 2012-11-16 17:44:16 UTC --- Why did you do that? We copied the configuration of gcc 4.1.2 available on the system (Yellow Dog Linux) out of the box. It had been configured

[Bug c++/55339] New: Generated code hangs with -O2 on Linux ppc

2012-11-15 Thread anton.katilin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55339 Bug #: 55339 Summary: Generated code hangs with -O2 on Linux ppc Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: critical

[Bug c++/55339] Generated code hangs with -O2 on Linux ppc

2012-11-15 Thread anton.katilin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55339 --- Comment #1 from anton.katilin at gmail dot com 2012-11-15 11:28:32 UTC --- Compile with: - export PATH=/opt/gcc-4.7.2/bin:$PATH g++ -m32 -fPIC -O2 *.cpp -o test-O2.bin g++ -m32 -fPIC -O1 *.cpp

[Bug c++/55339] C++ code compiled with -O2 on Linux ppc hangs in runtime

2012-11-15 Thread anton.katilin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55339 --- Comment #2 from anton.katilin at gmail dot com 2012-11-15 14:35:12 UTC --- An update: There is no problem when linking statically, i.e. if we do g++ -m32 -fPIC -O2 *.cpp -static-libstdc++ -static-libgcc -o test-O2.bin instead