Summary: | Incorrect optization with nan values | ||
---|---|---|---|
Product: | gcc | Reporter: | Scott Minster <scott> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, pinskia |
Priority: | P3 | Keywords: | wrong-code |
Version: | 3.4.6 | ||
Target Milestone: | 4.5.0 | ||
Host: | x86_64-redhat-linux | Target: | x86_64-redhat-linux |
Build: | x86_64-redhat-linux | Known to work: | |
Known to fail: | Last reconfirmed: | ||
Attachments: | preprocessed example |
Description
Scott Minster
2007-04-11 21:55:07 UTC
Created attachment 13353 [details]
preprocessed example
Are you sure you did not have -ffast-math on the command line? -ffast-math was not used. Adding that option actually makes the test work. I can't reproduce this in any recent versions of GCC. Even in GCC 4.7.3 and GCC 4.6.4 it works and we get no assert. Thanks for looking at this old bug. I had totally forgotten about it myself! I agree that it does not seem to affect any recent version of GCC. It was likely fixed in GCC 4, and doesn't seem to affect any later versions. There's no good reason to spend time fixing such an old version, so this bug can probably be closed as it is no longer relevant. Just closing as fixed. |