gcc 3.4.6 on PPC why doing function inline with -O2?

Andrew Haley aph@redhat.com
Sat Feb 17 11:43:00 GMT 2007


Ming Lei writes:

 > I came across a problem while using gcc3.4.6 on PPC440. It turns out
 > with -O2 flag the compiler does inline function expanding. I tested with
 > 3.2 version it doesn't do it in O2. The 3.4.6 manual says that only with
 > -O3 the compiler can do this inline function optimization. Even I used
 > -fno-inline-functions it doesn't work, but used -fno-inline does prevent
 > inline functions.
 > 
 > Is it a bug in 3.4.6?

I don't think so.  Do you have a test case that shows this problem?

Andrew.



More information about the Gcc-help mailing list