This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __builtin_return_address (0) and inlining
>
> But, truth be said, for someone who just wants to walk the stack, it
> *would* be the right answer, and one that really cares about not
> having the function inlined could mark the function with the noinline
> attribute so as to get the expected answer. Which is why I was
> undecided back when I wrote that code, and why I clearly still haven't
> made my mind up :-)
>
I think at this point it's "pick one and document it" :)
-eric
--
I will not carve gods