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

Mark Colby markc at liferacing.com
Mon Jan 4 11:58:09 UTC 2010


It turns out that this is a known bug : http://gcc.gnu.org/PR22141

The GCC team hope it will be fixed in 4.5.x.

> > 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. :-)


*****************************************************************
This email has been checked by the altohiway Mailcontroller Service
*****************************************************************



More information about the power-gnu-discuss mailing list