From: hjl@lucon.org (H.J. Lu)
To: egcs@cygnus.com
Subject: More info on exception bug
Date: Thu, 02 Oct 1997 12:51:00 -0000 [thread overview]
Message-ID: <m0xGrFm-0004eeC@ocean.lucon.org> (raw)
Hi,
It seems that expand_exception_blocks () in cp/except.c is kind of
screwed up. When entering expand_exception_blocks (),
pending_stack_adjust is 0. But in expand_leftover_cleanups (),
pending_stack_adjust is changed for the exception handler. As the
result, the stacks of the function and its exception handler are
all mixed up.
I am enclosing a kludge here. There must be a better fix than that.
Thanks.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Thu Oct 2 12:41:44 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* except.c (expand_exception_blocks): Inhibit deferred pop
in the exception handler.
Index: cp/except.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/cp/except.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 except.c
--- except.c 1997/09/17 20:10:28 1.1.1.3
+++ except.c 1997/10/02 19:48:28
@@ -1000,6 +1000,9 @@
void
expand_exception_blocks ()
{
+ /* No deferred pop in the exception handling. */
+ NO_DEFER_POP;
+
push_to_sequence (catch_clauses);
expand_leftover_cleanups ();
catch_clauses = get_insns ();
@@ -1017,6 +1020,8 @@
catch_clauses = get_insns ();
end_sequence ();
}
+
+ OK_DEFER_POP;
if (catch_clauses)
{
next reply other threads:[~1997-10-02 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-02 12:51 H.J. Lu [this message]
1997-11-01 19:59 ` Jeffrey A Law
1997-11-02 9:36 ` H.J. Lu
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=m0xGrFm-0004eeC@ocean.lucon.org \
--to=hjl@lucon.org \
--cc=egcs@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).