This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc 3.4.6 on PPC why doing function inline with -O2?
- From: "Ming Lei" <mlei at Brocade dot COM>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 16 Feb 2007 14:19:17 -0800
- Subject: gcc 3.4.6 on PPC why doing function inline with -O2?
Hi,
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?
BTW, what's the difference between -fno-inline and
-fno-inline-functions?
Thanks
Ming