this is expectedon x86; please see the documentation for -ffloat-store in the
gcc man page.
why don't use use EPS for comparisions of floating point variables?
** Changed in: gcc-4.1 (Ubuntu)
Importance: High = Undecided
Status: Confirmed = Invalid
--
Seem optimization -O2 don't
** Changed in: gcc-4.1 (Ubuntu)
Importance: Undecided = High
--
Seem optimization -O2 don't work g++
https://launchpad.net/bugs/82190
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
** Description changed:
If I compile the code using g++ and -O2 optimization and try the algorithm
with this input 1 100 10 I get a wrong answer.
I can get the correct solution if I compile the same code don't using any
optimization.
#include algorithm
#include cstdlib
Trying to confirm: Feisty x86
g++ (GCC) 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7)
$ g++ -O2 lp82190.cpp
$ ./a.out opt2.out
1 100 10
$ g++ lp82190.cpp
$ ./a.out noopt.out
1 100 10
$ diff noopt.out opt2.out diff
** Attachment added: differences in the outputs
Feisty x86, confirmed.
** Changed in: Ubuntu
Status: Unconfirmed = Confirmed
--
Seem optimization -O2 don't work g++
https://launchpad.net/bugs/82190
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
** Changed in: Ubuntu
Sourcepackagename: None = gcc-4.1
--
Seem optimization -O2 don't work g++
https://launchpad.net/bugs/82190
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs