Define all function calls nested by g ++

I am trying to diagnose a strange performance problem that seems to me to be related to GCC's failure to embed some function calls in C ++, although I'm not sure what function calls are. Is there a flag for GCC to list all line numbers in which the inline line was drawn?

+6
source share
1 answer

The answer to your question is here:

C ++: How do I know if a built-in function is really replaced? .

The question was slightly different from yours, but the answers were stumbling and definitely enlightened. I urge you to read them.

However, in response to your question: -Winline generates a warning if the compiler does not select a line:

https://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Warning-Options.html

0
source

Source: https://habr.com/ru/post/973579/


All Articles