public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
Date: Tue, 12 Feb 2002 05:56:00 -0000	[thread overview]
Message-ID: <20020212135604.26618.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, eru@netti.fi,
        gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc: gdr@codesourcery.com
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
Date: Tue, 12 Feb 2002 16:24:36 +0100

 Hi Gaby,
 
 The following should fit the new-style dejagnu framework. Note: though 
 this happens to be fixed for 3.1, the problem remains for gcc-3.0.X, 
 even with X=4 as of 06-Feb-2002.
 
 2002-02-12  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>
 
     PR c++/5246, PR c++/2447
     * g++.dg/eh/unwind1.C: New test.
 
 --- gcc/testsuite/g++.dg/eh/unwind1.C.eh-failure    Tue Feb 12 11:57:44 2002
 +++ gcc/testsuite/g++.dg/eh/unwind1.C    Tue Feb 12 11:57:44 2002
 @@ -0,0 +1,34 @@
 +// Reduced from PR c++/5246, PR c++/2447
 +// { dg-do run }
 +// { dg-options "-O -fomit-frame-pointer" }
 +
 +void step (int)
 +{
 +  void *sp = __builtin_alloca (0);
 +}
 +
 +void f2 (void)
 +{
 +  step (2);
 +  throw int();
 +}
 +
 +void f1 (void)
 +{
 +  try
 +    {
 +      step (1);
 +      f2 ();
 +      step (-1);
 +    }
 +  catch (int)
 +    {
 +      step (3);
 +    }
 +}
 +
 +int main ()
 +{
 +  f1 ();
 +  return 0;
 +}
 
 Bye,
 Gwenole.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5246 
 
 


             reply	other threads:[~2002-02-12 13:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-12  5:56 Gwenole Beauchesne [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-03 11:31 rodrigc
2002-02-16  4:56 Gwenole Beauchesne
2002-02-14 20:16 Gabriel Dos Reis
2002-01-04 21:26 Craig Rodrigues
2002-01-02 20:26 Craig Rodrigues
2002-01-02  7:36 eru

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=20020212135604.26618.qmail@sources.redhat.com \
    --to=gbeauchesne@mandrakesoft.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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).