public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Andreas.Krakowczyk@fujitsu-siemens.com To: gcc-gnats@gcc.gnu.org Cc: Erwin.Unruh@fujitsu-siemens.com, Jochen.Canisius@fujitsu-siemens.com Subject: c++/3257: throw / try and optimization wrong with option '-O2' Date: Tue, 19 Jun 2001 06:36:00 -0000 [thread overview] Message-ID: <20010619133342.9643.qmail@sourceware.cygnus.com> (raw) >Number: 3257 >Category: c++ >Synopsis: throw / try and optimization wrong with option '-O2' >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jun 19 06:36:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Andreas Krakowczyk >Release: gcc-3.0 >Organization: >Environment: sparc-sun-solaris2.8 >Description: Test program fails with option '-O2' (self-checking), runs o.k. with '-O' or no optimization. >How-To-Repeat: g++ -O2 test_45.c && ./a.out >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-unknown-content-type-c_auto_file; name="test_45.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test_45.c" I2luY2x1ZGUgPHN0ZGlvLmg+Cgpib29sIG9rOwppbnQgY291bnQ7CmludCBlOwpzaG9ydCBzYSBb MTAwXSwgc2IgWzEwMF07Cgp2b2lkIGNvdW50X3Rocm93ICh2b2lkKTsKYm9vbCB0ZXN0X2Nhc2U0 NSAoaW50IHplcm8gPSAwLCBpbnQgb25lID0gMSk7CgppbnQgbWFpbiAoaW50IGFyZ2MsIGNoYXIg KmFyZ3YgW10pCnsKICAgaWYgKCEgdGVzdF9jYXNlNDUgKCkpIHsgcHJpbnRmICgiY2FzZSIgIjQ1 IiAiIGZhaWxlZFxuIik7IHJldHVybiAxOyB9CiAgIGVsc2UgICAgICAgICAgICAgICAgICB7IHBy aW50ZiAoImNhc2UiICI0NSIgIiBwYXNzZWRcbiIpOyByZXR1cm4gMDsgfQogICByZXR1cm4gMjsK fQoKYm9vbCB0ZXN0X2Nhc2U0NSAoaW50IHplcm8sIGludCBvbmUpCnsKICAgaW50IGFhYSwgYmJi LCBpOwoKICAgb2sgPSAwOwogICBjb3VudCA9IDA7CgogICBmb3IgKGk9MDsgaTwxMDA7IGkrKykK ICAgICAgc2EgW2ldID0gc2IgW2ldID0gemVybzsKICAgc2EgWzddID0gc2EgWzI0XSA9IHNhIFs1 N10gPSBvbmU7CgogICB0cnkKICAgewogICAgICBmb3IgKGk9MDsgaTwxMDA7IGkrKykKICAgICAg ewogICAgICAgICBhYWEgPSBzYSBbaV07CiAgICAgICAgIGJiYiA9IHNiIFtpXTsKICAgICAgICAg aWYgKGFhYSA9PSBiYmIpCiAgICAgICAgICAgIGdvdG8gbTsKICAgICAgICAgaWYgKGFhYSA9PSBi YmIgKyBvbmUpCiAgICAgICAgICAgIGNvdW50X3Rocm93ICgpOwogICAgICAgICBtOiA7CiAgICAg IH0KICAgfQoKICAgY2F0Y2ggKC4uLikgeyBvayA9IChpID09IDU3KTsgfQogICByZXR1cm4gKG9r KTsKfQoKdm9pZCBjb3VudF90aHJvdyAoKSB7IGlmICgrK2NvdW50ID09IDMpIHsgdGhyb3cgImV4 Y2VwdGlvbiI7IGUgPSAxOyB9IH0KCg==
next reply other threads:[~2001-06-19 6:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-19 6:36 Andreas.Krakowczyk [this message] 2001-08-17 21:27 rodrigc 2001-08-31 10:56 c++/3257 throw / try and optimization wrong with option '-O2 ' Craig Rodrigues 2001-08-31 10:57 c++/3257: throw / try and optimization wrong with option '-O2' rodrigc
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=20010619133342.9643.qmail@sourceware.cygnus.com \ --to=andreas.krakowczyk@fujitsu-siemens.com \ --cc=Erwin.Unruh@fujitsu-siemens.com \ --cc=Jochen.Canisius@fujitsu-siemens.com \ --cc=gcc-gnats@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: linkBe 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).