public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3257: throw / try and optimization wrong with option '-O2'
@ 2001-06-19  6:36 Andreas.Krakowczyk
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas.Krakowczyk @ 2001-06-19  6:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Erwin.Unruh, Jochen.Canisius

>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==


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3257: throw / try and optimization wrong with option '-O2'
@ 2001-08-31 10:57 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2001-08-31 10:57 UTC (permalink / raw)
  To: Andreas.Krakowczyk, Erwin.Unruh, Jochen.Canisius, rodrigc,
	gcc-bugs, gcc-prs, nobody

Synopsis: throw / try and optimization wrong with option '-O2'

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Aug 31 10:57:43 2001
State-Changed-Why:
    Fixed in gcc 3.0.1

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3257&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3257 throw / try and optimization wrong with option '-O2 '
@ 2001-08-31 10:56 Craig Rodrigues
  0 siblings, 0 replies; 4+ messages in thread
From: Craig Rodrigues @ 2001-08-31 10:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]

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

From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org
Subject: Re: c++/3257 throw / try and optimization wrong with option '-O2 '
Date: Fri, 31 Aug 2001 13:54:58 -0400

 ----- Forwarded message from "Krakowczyk, Andreas" <Andreas.Krakowczyk@fujitsu-siemens.com> -----
 
 Delivered-To: rodrigc@gcc.gnu.org
 From: "Krakowczyk, Andreas" <Andreas.Krakowczyk@fujitsu-siemens.com>
 To: "'rodrigc@gcc.gnu.org'" <rodrigc@gcc.gnu.org>
 Subject: AW: c++/3257: throw / try and optimization wrong with option '-O2
 	'
 Date: Fri, 31 Aug 2001 16:12:26 +0200
 X-Mailer: Internet Mail Service (5.5.2653.19)
 X-MIME-Autoconverted: from quoted-printable to 8bit by dibbler.ne.mediaone.net id f7VHhvr00872
 
 Hi there,
 with gcc-3.0.1 this test passes under sparc-sun-solaris-2.8, too.
 Thanks a lot for getting a fix that quick!
 Andreas Krakowczyk.
 
 -----Ursprüngliche Nachricht-----
 Von: rodrigc@gcc.gnu.org [ mailto:rodrigc@gcc.gnu.org ]
 Gesendet: Samstag, 18. August 2001 06:27
 An: Krakowczyk, Andreas; Unruh, Erwin;
 Jochen.Canisius@fujitsu-siemens.com; gcc-bugs@gcc.gnu.org;
 gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org
 Betreff: Re: c++/3257: throw / try and optimization wrong with option
 '-O2'
 
 
 Synopsis: throw / try and optimization wrong with option '-O2'
 
 State-Changed-From-To: open->feedback
 State-Changed-By: rodrigc
 State-Changed-When: Fri Aug 17 21:27:07 2001
 State-Changed-Why:
     Could not reproduce your failure with gcc 3.0.1 under Linux/x86
     
     Can you try a gcc 3.0.1 snapshot and see if your
     problem still occurs?
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3257&database=gcc
 
 ----- End forwarded message -----


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3257: throw / try and optimization wrong with option '-O2'
@ 2001-08-17 21:27 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2001-08-17 21:27 UTC (permalink / raw)
  To: Andreas.Krakowczyk, Erwin.Unruh, Jochen.Canisius, gcc-bugs,
	gcc-prs, nobody

Synopsis: throw / try and optimization wrong with option '-O2'

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Fri Aug 17 21:27:07 2001
State-Changed-Why:
    Could not reproduce your failure with gcc 3.0.1 under Linux/x86
    
    Can you try a gcc 3.0.1 snapshot and see if your
    problem still occurs?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3257&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-31 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-19  6:36 c++/3257: throw / try and optimization wrong with option '-O2' Andreas.Krakowczyk
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

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).