__builtin_return_address (0) and inlining

Eric Christopher echristo@redhat.com
Wed Jun 5 16:40:00 GMT 2002


> 
> 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



More information about the Gcc mailing list