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 w
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 of
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
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