• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1078
  • Last Modified:

Inlining failed, large function growth limit reached

Hey guys,

Our build is getting a warning about inlining failing due to a large function growth limit being reached (gcc compiler).  The code causing the warning is a auto generated framework for our industry (so it's probably not going to be changed).  Anyway, i was hoping that someone could provide insight on the implications of this warning even if we can't change the code...

(1) what specificly does the warning mean?
(2) can I assume that the result of the inlining failing is simply that the function is defined as a standard function rather than inlined (i.e. placed throughout the code in full code form)?

Thanks in advance,

-w00te
0
w00te
Asked:
w00te
  • 2
1 Solution
 
Infinity08Commented:
large-function-growth is used to limit the code increase due to inlining. When the limit is reached, the warning you get is emitted.

It's just a warning though, so you can ignore it. But maybe you should consider splitting the code up into smaller functions, and only inline small frequently used functions.
0
 
w00teAuthor Commented:
Thanks for the info :) Like I said, its an existing industry framework so I can't really touch it.  Its comforting to know nothing too bad is happening besides some lost efficiency though, haha.  It had me worried.

-w00te
0
 
Infinity08Commented:
Nothing bad is happening, no. But it does indicate an issue with the code - namely that functions are too big, which might degrade performance. But if that's something you cannot touch, then you'll have to live with the warnings I guess ;)

It's fun maintaining big old code bases isn't it ? Especially if they throw in a lot of generated code.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now