[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug target/14384] Invalid use of extra precision floating-point with -O
anz at obs-nice dot fr
[Bug target/14384] Invalid use of extra precision floating-point with -O0 optimization
10 Mar 2004 18:23:42 -0000
------- Additional Comments From anz at obs-nice dot fr 2004-03-10 18:23
Created an attachment (id=5893)
An even simpler source file demonstrating the problem
This even simpler code shows that gcc doesn't round an expression to (float)
keeps the extra precision even when an explicit cast is present, where it
shouldn't be allowed to do so.
The same expression is computed twice, in (double) and in forced (float) with
explicit cast. They must differ, unless float and double are the same.