This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]