If gcc
get called with link time optimization (-flto
) enabled and I am using one of the following keyword/attribute:
__attribute__((always_inline)) void foo(int i);
inline void bar(int i);
Does this keyword/attribute affect the behavior of the link-time optimization (If the compiler is not able to do the inline
ing)?
Does the link-time optimization prefer inline
ing of these function over functions without this keyword/attribute.
The question is if it makes a difference for the linker-phase processing not the compiler.