------- Comment #5 from jacob at math dot jussieu dot fr 2008-02-27 16:22 ------- Oh sure, I hadn't thought about that, but it makes perfect sense to not "flatten" callees whose body source code is not available.
I tried g++-4.3 and confirm that it is much faster and doesn't suffer from that bug. I tried what you last suggested regarding 4.2: $ g++ -O3 -DDEPTH18 --param sra-field-structure-ratio=0 test.cpp -o test $ time ./test real 0m2.634s This is much better, but still 50% slower than -DDEPTH17. Anyway, since it is more than resolved in 4.3.0 I won't waste more of your time with that :) Thanks -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35393