public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: g++ Bug? use of alloca in a function prevents exception handler walkback on ppc linux
@ 2000-12-14  9:22 Mike Stump
  0 siblings, 0 replies; 8+ messages in thread
From: Mike Stump @ 2000-12-14  9:22 UTC (permalink / raw)
  To: gcc, khendricks; +Cc: Franz.Sirl-kernel, dje, geoffk

> From: "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca>
> Date: Thu, 14 Dec 2000 11:40:27 -0500
> To: gcc@gcc.gnu.org
> Cc: dje@watson.ibm.com, geoffk@geoffk.org, Franz.Sirl-kernel@lauterbach.com

> With a lot of help from Philipp Lohmann from Sun Germany, we have
> tracked the problem on ppc linux exception handling to the use of
> alloca in any function in the path back to the exception handler.

Ok.

> Is this a g++ bug?

Yes, I suspect so.  Or, more properly, this seems to be a bug in the
DWARF2 EH bits for the PowerPC.  I tried this on x86 linux, using a
top of tree compiler, and it worked fine, so I believe that the
machine independent code might be fine.

> Should dynamic allocation of stack space prevent the search back
> through the function by throw_helper?

Nope.

> Any guidance about how to deal with this would be greatly appreciated.

If you want to fix it, check out the DWARF2 bits in the rs6000 port.
Jason might be able to give better advice in this area, as he is more
familiar with these bits.  Compile up the libgcc2 bits with debugging
turned on, and then step though it and watch how the EH runtime walks
the frame.  Understand every addition and every fetch it does.  Watch
the registers being restored, and from where they come from, and
ensure that is where the generated code put them.

Oh, I assume that you've already tried the top of the tree.  If not,
please give it a try and see if it works.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-12-18  6:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200012132027.eBDKR6e12042@ashley.ivey.uwo.ca>
     [not found] ` <00121408084001.16178@localhost>
     [not found]   ` <20001214.15501400@eham02-sunray.federation.Germany.Sun.COM>
2000-12-14  8:40     ` g++ Bug? use of alloca in a function prevents exception handler walkback on ppc linux Kevin B. Hendricks
2000-12-14 10:12       ` Geoff Keating
2000-12-14 14:30         ` Franz Sirl
2000-12-14 16:21           ` Geoff Keating
2000-12-18  6:13             ` Franz Sirl
2000-12-18  6:30               ` Kevin B. Hendricks
2000-12-15  5:45         ` Jason Merrill
2000-12-14  9:22 Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).