GCC 3 inlining problem (no warning, too) [my comment]

Wirawan Purwanto wirawan0@hotmail.com
Mon Apr 8 16:11:00 GMT 2002


Please see my own posting here for reference:

http://gcc.gnu.org/ml/gcc-bugs/2002-04/msg00542.html

I think I have already figured out why g++ won't inline so many functions.
The default inline limit (the "N" in -finline-limit-N) is decreased from
10000 (2.95.3) to 600 !!! This may be the answer why. Why this is decreased
so drastically? It would be nice if g++ (or cc1plus) diagnostic tool
includes a dump reporting which functions have been inlined, which have not
(but declared as inline). Or at least report it in -Winline.

No wonder why my program is somewhat slower in g++ 3 compared to g++ 2.95...

Wirawan



More information about the Gcc-bugs mailing list