This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Linux/PPC gcc 2.95.2 - bad access generated when using inline func
- To: rearnsha at arm dot com
- Subject: Re: Linux/PPC gcc 2.95.2 - bad access generated when using inline func
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Fri, 30 Jun 2000 14:30:03 +0200
- Cc: Geoff Keating <geoffk at cygnus dot com>,cort at fsmlabs dot com,gcc-bugs at gcc dot gnu dot org
- References: <Your message of "Wed, 28 Jun 2000 12:06:56 PDT." <200006281906.MAA02398@localhost.cygnus.com>
At 14:20 30.06.00, Richard Earnshaw wrote:
> >
> > Actually, __builtin_return_address (0) should not give the link
> > register, because sometimes the link register holds something else,
> > like the return address of something called by this function.
> >
> > My suspicion is that the right thing to do is force all functions that
> > call __builtin_return_address to have a stack frame... I will think
> > about it.
>
>The alpha and ARM ports (and I think one other, though I forget which)
>have exactly the same issue. Take a look at how they handle this.
I'm currently testing a patch for the mainline doing exactly this :-). It
works quite well, I just have to find out why it breaks the C++ EH stuff now.
Franz.