public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Benjamin Sean Scarlet <scarlet@mit.edu>
To: gnu-win32 Mailing List <gnu-win32@cygnus.com>
Subject: exception handling bug
Date: Thu, 31 Jul 1997 21:14:00 -0000	[thread overview]
Message-ID: <33E161EC.AB9A1F24@mit.edu> (raw)

I'm running g++ from gnuwin32/b18, and wrote to this list a few days ago
noting that code in an exception handler is clobbering the this pointer
in the following test code:

void X::foo()
{
  cout << this << endl;
  try { throw 1; } catch(int) { cout << this << endl; }
  cout << this << endl;
}

After looking at the assember and the high level RTL, it looks like two
soft registers, one in the outer scope and one in the catch block, are
both getting mapped to the same hard register.  I'm not sufficiently
initiated into the inner mysteries of the exception handling mechanism
to be sure what the best way to handle this is.  I have ideas, but I'm
not sure what I'd muck up if I tried a fix.  Is there anyone out there
who both is knowledgable about stuff and has the time to answer a few
questions?  I'd like to hammer out a patch for this thing.

	Benjamin Scarlet
	MIT Center for Theoretical Physics
	scarlet@mit.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

             reply	other threads:[~1997-07-31 21:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-31 21:14 Benjamin Sean Scarlet [this message]
1997-09-19  4:21 Vladimir belkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=33E161EC.AB9A1F24@mit.edu \
    --to=scarlet@mit.edu \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).