public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: middle-end/2827: invalid narrowing during use of double type, arrithametic becomes non-comutative
@ 2001-08-18 8:42 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2001-08-18 8:42 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, rcr197, rodrigc
Synopsis: invalid narrowing during use of double type, arrithametic becomes non-comutative
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Aug 18 08:42:56 2001
State-Changed-Why:
gcc 3.0.1 produces the correct output:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2827&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* middle-end/2827: invalid narrowing during use of double type, arrithametic becomes non-comutative
@ 2001-05-15 9:26 rcr197
0 siblings, 0 replies; 2+ messages in thread
From: rcr197 @ 2001-05-15 9:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 2827
>Category: middle-end
>Synopsis: invalid narrowing during use of double type, arrithametic becomes non-comutative
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Tue May 15 09:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Rob Rescorla
>Release: gcc version egcs-2.91.66 19990314/Liunx (egcs-1.1.2 release)
>Organization:
>Environment:
Redhat Linux 6.2 PII and PIII Intel,
gcc2.8.1 on sparc-sun-solaris2.6 did not demonstrate this behaviour.
>Description:
GCC appears to narrow double to float precision, desptie all
variables involved in a calculation being cast as double.
(Found attempting numerical integration.)
Alternative front ends (CC and G++) also tried, same results.
>How-To-Repeat:
compile the attached program and run.
N.B. running with optomisation causes both subtractions to
produce bad results.
>Fix:
None, re-writing code to force correct compilation was unsuccessfull.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-PFE32; name="doublediv.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="doublediv.c"
Ly92ZXJ5IHNpbXBsZSBkZW1vbnN0cmF0aW9uIG9mIGJ1ZywKLy9maXJzdCB0d28gbGluZXMgc2hv
dWxkIGJlIGlkZW50aWNhbCwgc2Vjb25kIHR3byBsaW5lcyBzaG91bGQgYmUKLy96ZXJvIHdoZW4g
Y29kZSBpcyBidWcgZnJlZSBjb21waWxlZC4KCiNpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8
bWF0aC5oPgppbnQgbWFpbih2b2lkKQp7CmRvdWJsZSBmLHEsaTsKcT0wLjQ7aT1zcXJ0KDIqTV9Q
SSk7CnByaW50ZigiJTAuODBsZlxuJTAuODBsZlxuIixxL2kscS9zcXJ0KDIqTV9QSSkpOyAKICBw
cmludGYoIiUwLjgwbGZcbiIsKCgoZG91YmxlKShxL3NxcnQoMipNX1BJKSkpLSgoZG91YmxlKShx
L2kpKSkpOwogIHByaW50ZigiJTAuODBsZlxuIiwoKChkb3VibGUpKHEvaSkpLSgoZG91YmxlKShx
L3NxcnQoMipNX1BJKSkpKSk7CnJldHVybigwKTsKfQo=
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-18 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-18 8:42 middle-end/2827: invalid narrowing during use of double type, arrithametic becomes non-comutative rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-05-15 9:26 rcr197
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).