This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/21809] Floating Optimization Bug


------- Additional Comments From themis_hv at yahoo dot co dot uk  2005-05-29 19:28 -------
Read the code carefully:

test-case.c:
#include <assert,h>
volatile float x = 3;
int main()
{
float a = 1 / x;
x = a;
assert(a == x);
}


Notice x = a before assertion, both of these variables are of the same data type.

This is *not* related to precission.

This is behaviour, you would expect from a compiler.

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]