On Fri, Feb 22, 2008 at 22:42, Maurizio Vitale
<maurizio.vitale@polymath-solutions.com> wrote:
Is it safe to assume that GCC saves "callee-owned" registers
around a
function call that gets inlined?
Or does GCC look inside the expansion and determines what needs
to be
saved?
No. Once a function is inlined, the register allocator does not
really know that the inlined body comes from a different function.
For all it knows, the code comes from the same parent function. It's
the same effect as if you had inlined the function in a text editor
and compiled the result (well, except that the inliner keeps enough
debugging information around to inform the debugger about it).