This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __builtin_return_address (0) and inlining


On Wed, 2002-06-05 at 14:46, Alexandre Oliva wrote:
> On Jun  5, 2002, DJ Delorie <dj@redhat.com> wrote:
> 
> > When converted, __builtin_return_address(0) will properly return the
> > RA for the function it gets inlined into, rather than an unpredictable
> > value.
> 
> That's still probably not what the person who wrote
> __builtin_return_address(0) wanted.
> 

I'd agree with this. I think that this behavior would be unexpected.

-eric

-- 
I will not carve gods


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]