[Bug c/64442] New: -O1 modify output of a simple computation with rounding

2014-12-30 Thread colin.pitrat+gcc at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: colin.pitrat+gcc at gmail dot com When building the following program with -O1, it outputs 85 whereas without -O1 it outputs 84: #include #include int main() { double max = 8.03; double a

[Bug c/64442] -O1 modify output of a simple computation with rounding

2014-12-30 Thread colin.pitrat+gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64442 --- Comment #2 from Colin Pitrat --- Yes I'm building on i686. But I thought -O1 and -O2 were safe optimization that weren't supposed to change the behaviour. Moreover, I'm surprised that providing the list of -f flags -O1 is supposed to enable

[Bug c/64442] -O1 modify output of a simple computation with rounding

2014-12-30 Thread colin.pitrat+gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64442 Colin Pitrat changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---