[power-gnu-discuss] On Power : GCC2 optimises better than GCC4??

Mark Mitchell mark at codesourcery.com
Wed Dec 30 15:59:03 UTC 2009


Mark Colby wrote:

> Thanks. Given how simple an example this is, that's genuinely
> worrying for someone concerned about getting well optimised code (I
> am).

Most defects in compilers have simple examples.  So, your reaction is
typical, but it doesn't reflect that somehow the compiler as a whole has
gotten incredibly stupid.  In fact, all of our benchmarking shows
improvement in GCC 4.4 relative to 4.3 -- let alone 3.4 or 2.95.

> If I can't get to the
> bottom of this I guess I'll need to consider going back to 2.9.5 or
> perhaps a 3.x build. Grrr :-(

Another option is to buy a Sourcery G++ Professional Edition
subscription and ask us to fix the problem. :-)

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the power-gnu-discuss mailing list