This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Inconsistent floating point result when using G++ 3.3.6 with option -O0 or -O1 separately
- From: "Deng Shi" <Deng dot Shi at synopsys dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 14 Jul 2006 14:12:20 +0900
- Subject: Inconsistent floating point result when using G++ 3.3.6 with option -O0 or -O1 separately
-----Original Message-----
From: Deng Shi
Sent: 2006年7月13日 10:37
To: 'gnu-help@gnu.org'
Subject: Inconsistent floating point result when using G++ 3.3.6 with option -O0 or -O1 separately
hi expert,
I found our application tool gave the inconsistent floating point result when using different optimization level -O0 or -O1.
Even if I used -O1 plus all the disabling options which includes in -O1, like -O1 -fno-merge-all-constants -fno-zero-initialized-in-bss -fno-function-cse -fno-keep-static-consts -fno-omit-frame-pointer -fno-merge-constants -fno-loop-optimize -fno-cprop-registers -fno-if-conversion -fno-if-conversion2 -fno-delayed-branch -fno-guess-branch-probability -fno-defer-pop -fno-crossjumping -fno-thread-jumps " which command line setting should be equal to -O0, but I still didn't get the consistent result.
I wonder whether there is any additional optimization enabled by -O1 for C++ language which is not documented in GCC manual?
Is there anybody helping me?
Best regards!
Deg