This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8047: [i386] Stack corruption with exceptions
- From: Colin Burgess <cburgess at qnx dot com>
- To: wagner at rtna dot daimlerchrysler dot com, king at rtna dot daimlerchrysler dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, schroedl at rtna dot daimlerchrysler dot com, gcc-prs at gcc dot gnu dot org, kloeckner at rtna dot daimlerchrysler dot com
- Date: Tue, 04 Feb 2003 15:58:45 -0500
- Subject: Re: c++/8047: [i386] Stack corruption with exceptions
Hey guys, I think I saw this already. See
http://gcc.gnu.org/ml/gcc-bugs/2001-12/msg00522.html
You can check it by seeing if -fno-defer-pop helps the problem. If so,
then here is a patch for 2.95.3
Index: except.c
===================================================================
RCS file: /product/tools/gcc/gcc/cp/except.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** except.c 28 Feb 2001 18:54:56 -0000 1.1
--- except.c 12 Dec 2001 18:03:07 -0000 1.2
***************
*** 1135,1140 ****
--- 1135,1143 ----
expand_expr (exp, const0_rtx, VOIDmode, EXPAND_NORMAL);
}
+ /* make sure we have cleaned up the stack */
+ do_pending_stack_adjust();
+
expand_internal_throw ();
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8047