public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/2560: Optimization cause wrong result
@ 2002-03-19 23:06 Congshi Huang
0 siblings, 0 replies; 4+ messages in thread
From: Congshi Huang @ 2002-03-19 23:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/2560; it has been noted by GNATS.
From: "Congshi Huang" <c_huang@21cn.com>
To: <rodrigc@gcc.gnu.org>,
<c_huang@21cn.com>,
<gcc-bugs@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: optimization/2560: Optimization cause wrong result
Date: Tue, 19 Mar 2002 22:59:03 -0800
Dear Sir,
I am sorry I cann't find that source code now because I have reinstalled the
system. It is almost a year ago.
Regards,
Congshi Huang
----- Original Message -----
From: <rodrigc@gcc.gnu.org>
To: <c_huang@21cn.com>; <gcc-bugs@gcc.gnu.org>; <gcc-prs@gcc.gnu.org>;
<nobody@gcc.gnu.org>
Sent: Sunday, March 17, 2002 6:38 PM
Subject: Re: optimization/2560: Optimization cause wrong result
> Synopsis: Optimization cause wrong result
>
> State-Changed-From-To: open->feedback
> State-Changed-By: rodrigc
> State-Changed-When: Sun Mar 17 18:38:36 2002
> State-Changed-Why:
> How can we verify your problem if you do not provide
> the testcase code?
>
> Can you provide the code which produces this problem?
>
>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=2560
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization/2560: Optimization cause wrong result
@ 2002-03-20 6:27 rodrigc
0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-03-20 6:27 UTC (permalink / raw)
To: c_huang, gcc-bugs, gcc-prs, nobody
Synopsis: Optimization cause wrong result
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Wed Mar 20 06:26:54 2002
State-Changed-Why:
No testcase.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2560
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization/2560: Optimization cause wrong result
@ 2002-03-17 18:38 rodrigc
0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-03-17 18:38 UTC (permalink / raw)
To: c_huang, gcc-bugs, gcc-prs, nobody
Synopsis: Optimization cause wrong result
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Sun Mar 17 18:38:36 2002
State-Changed-Why:
How can we verify your problem if you do not provide
the testcase code?
Can you provide the code which produces this problem?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2560
^ permalink raw reply [flat|nested] 4+ messages in thread
* optimization/2560: Optimization cause wrong result
@ 2001-04-16 9:16 c_huang
0 siblings, 0 replies; 4+ messages in thread
From: c_huang @ 2001-04-16 9:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 2560
>Category: optimization
>Synopsis: Optimization cause wrong result
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 16 09:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: c_huang@21cn.com
>Release: gcc 2.96
>Organization:
>Environment:
RedHat LINUX 7.0 on HP Vectra XU, Pro 200, 64M
>Description:
Optimization level 3 will cause to get wrong result. However, if you change to level 2 or modify the sentense, you will get right results
>How-To-Repeat:
------wrong result-----
$ gcc -O3 tt.cpp -o tt -D makeerr=1
$ ./tt
64 bits: 00005CBA9063FC00 101956356144128
32 bits low: 9063FC00 2422471680
32 bits high 00005CBA 23738
996 Days 21:3:10 <------wrong
clk=4000000 CPS=1000000
CPU clock = 199463975
-----right result-----
$ gcc -O3 tt.cpp -o tt -D makeerr=0
$ ./tt
64 bits: 00005CBB1F9C75AA 101958758987178
32 bits low: 1F9C75AA 530347434
32 bits high 00005CBB 23739
5 Days 21:51:10 <-----right
clk=4010000 CPS=1000000
CPU clock = 199656522
-----right result-----
$ gcc -O2 tt.cpp -o tt -D makeerr=1
$ ./tt
64 bits: 00005CEB7D3B0089 102166488088713
32 bits low: 7D3B0089 2101018761
32 bits high 00005CEB 23787
5 Days 22:12:4 <-----right
clk=4010000 CPS=1000000
CPU clock = 199573463
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-20 14:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 23:06 optimization/2560: Optimization cause wrong result Congshi Huang
-- strict thread matches above, loose matches on Subject: below --
2002-03-20 6:27 rodrigc
2002-03-17 18:38 rodrigc
2001-04-16 9:16 c_huang
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).