A function defined in another translation unit

square is a non-inline function defined in math.cpp and declared in math.h; caller.cpp calls it in a hot loop. Compare an ordinary build (each .cpp compiled separately, then linked) with a -flto build. Can square be inlined into that loop?

math.cpp
// math.h: int square(int x);
int square(int x) { return x * x; }

17 of 44 in Compilers