middle-end/6205: -O -fpmath=sse breaks visibility of register accumulated sum
tprince@computer.org
tprince@computer.org
Sat Apr 6 07:58:00 GMT 2002
>Number: 6205
>Category: middle-end
>Synopsis: -O -fpmath=sse breaks visibility of register accumulated sum
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 06 07:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Tim Prince
>Release: 3.1
>Organization:
>Environment:
linux-SuSE 7.3 or cygwin/2K
>Description:
result of a float sum in SSE register is seen as NaN in certain contexts, when built with -O -mfpmath=sse
Problem originally seen in larger examples in g77; case available on request.
>How-To-Repeat:
gcc -O -march=pentium3 -mfpmath=sse badsum.c
./a.out
result seen as nan in printf(), but is OK if -O or -mfpmath options are removed
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="badsum.c"; name="badsum.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="badsum.c"
I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KaW50IG1haW4oKXsKaW50IGks
bj03OwkvL2Nob29zZSBhbnkgbiA8IHNxcnQoMS9GTFRfRVBTSUxPTikKICAgIGZsb2F0IGNvbXAs
c3VtPTA7CiAgICBmb3IoaT0xO2k8PW47KytpKQoJc3VtICs9IGk7CiAgICBwcmludGYoInN1bSBv
ZiAlZCBpbnRzOiAlZ1xuIixuLHN1bSk7CiAgICBjb21wID0gbioobiouNWYrLjVmKTsKICAgIGlm
KHN1bSAhPSBjb21wKXsKCXByaW50ZigiQmFkIHN1bSAoc2VlbiB3aXRoIGdjYyAtTyAtbWFyY2g9
cGVudGl1bXBybyAtbXNzZSlcbiIpOwoJYWJvcnQ7Cgl9CiAgICByZXR1cm4gMDsKfQo=
More information about the Gcc-bugs
mailing list