[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/24479] GCC donot promote single precision correctly with optimization flag on




------- Comment #2 from dyang at mathworks dot com  2005-10-21 21:51 -------
I am quite surprised when i saw this bug report was marked as duplicate with
#323. I have to reopen the bug and here is the reason.

With bug 323, it is caused by hardware using excessive precision so that it
leads to different answers depending on if the excessive precision value gets
to be stored in a 64bit memory or not. 

The bug I reported is that the double value out of a double precision addition
(a + 0.5) is stored into a 64 bits memory (as double value), but when
optimization (-O3) is used, the double value is actually stored in a 32 bits
memory (a single precision value). This is clearly a violation of ISO C++
standard. It has nothing to do with bug 323. Plesae reconsider your decision on
this one.

Dongzhe


-- 

dyang at mathworks dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24479

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Reply to: