c++/8047: [i386] Stack corruption with exceptions
Colin Burgess
cburgess@qnx.com
Tue Feb 4 20:55:00 GMT 2003
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
More information about the Gcc-bugs
mailing list