------- Additional Comments From dank at kegel dot com 2005-06-18 17:46 ------- The above tests did not use -mcpu on gcc-2.95.3, so they were comparing apples to oranges, kind of.
I reran them on a PIII with gcc-2.95.3 -mcpu=$tune -O3 and gcc-[34] -mtune=$tune -O3. The problem persists even when using the most appropriate tuning option for the CPU in question. cpu family 6,model 8, Pentium III (Coppermine): -fPIC -mcpu=pentium -O3 gcc-2.95.3: 7.61 gcc-3.4.3: 27.43 gcc-4.0.0: 17.57 cpu family 6,model 8, Pentium III (Coppermine): -fPIC -mcpu=pentiumpro -O3 gcc-2.95.3: 9.27 gcc-3.4.3: 10.09 gcc-4.0.0: 13.96 cpu family 15, model 2, Intel(R) Xeon(TM) CPU 2.60GHz: -fPIC -mtune=pentium4 -O3 gcc-2.95.3: 1.91 seconds gcc-3.4.3: 3.89 gcc-4.0.0: 3.27 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19923