From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 824 invoked by alias); 4 Feb 2003 20:56:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 810 invoked by uid 71); 4 Feb 2003 20:56:00 -0000 Date: Tue, 04 Feb 2003 20:56:00 -0000 Message-ID: <20030204205600.809.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Colin Burgess Subject: Re: c++/8047: [i386] Stack corruption with exceptions Reply-To: Colin Burgess X-SW-Source: 2003-02/txt/msg00215.txt.bz2 List-Id: The following reply was made to PR c++/8047; it has been noted by GNATS. From: Colin Burgess To: wagner@rtna.daimlerchrysler.com, king@rtna.daimlerchrysler.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, schroedl@rtna.daimlerchrysler.com, gcc-prs@gcc.gnu.org, kloeckner@rtna.daimlerchrysler.com Cc: Subject: Re: c++/8047: [i386] Stack corruption with exceptions Date: Tue, 04 Feb 2003 15:58:45 -0500 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