Project

General

Profile

Actions

Feature #14282

closed

Warn when an inline function isn't

Added by Andy Fiddaman 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

While comparing the generated code from a gcc7 primary compiler to that from gcc10, it became apparent that several functions marked explicitly with inline were not being inlined at all, and that gcc10 inlined even fewer due to changes in the threshold for considering a function too large to inline.

I've gone through and cleaned up the few functions that can never be inlined for various reasons, enabled the compiler's warning option that will report when a function is not inlined, and explicitly specified the function size limit to get more consistent behaviour between the gcc versions.


Related issues

Related to illumos gate - Feature #14421: use GCC 10 as default primary compilerIn Progress

Actions
Actions

Also available in: Atom PDF