Bug#906708: Bug#906753: Acknowledgement (GCC's -O2 optimization breaks floating point precision or something else)

2018-08-21 Thread Matthias Klose
Control: tags -1 important Control: forwarded -1 https://gcc.gnu.org/PR87036 On 20.08.2018 21:53, Lumin wrote: > This is the minimal code for repro #906753: > > OK with -O0, FAIL with -O2 on i386, ppc64el, ... that always failed on i386 and ppc64el with -O2, so not a regression. You talked

Bug#906708: Bug#906753: Acknowledgement (GCC's -O2 optimization breaks floating point precision or something else)

2018-08-20 Thread Lumin
This is the minimal code for repro #906753: OK with -O0, FAIL with -O2 on i386, ppc64el, ... masssq1 and masssq2 are computed from the same vector [1.1, 2.2, 3.3, 4.4], but the results are different! == #include #include // for swap