[Bug c/42076] regression on float representation

2009-11-22 Thread jsm28 at gcc dot gnu dot org


--- Comment #3 from jsm28 at gcc dot gnu dot org  2009-11-22 20:16 ---
I cannot reproduce this with any FSF GCC version; please report bugs in
Ubuntu compilers to Ubuntu.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WORKSFORME


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



[Bug c/42076] regression on float representation

2009-11-18 Thread vaillant dot etienne at gmail dot com


--- Comment #2 from vaillant dot etienne at gmail dot com  2009-11-18 11:17 
---
(In reply to comment #1)
 You are likely running into excess precision issues of i?86.  Try using
 -mpc64 or -mfpmath=sse.
 

I try :
$ gcc-4.4 -msse2 y.c -o y-4.4
$ ./y-4.4
ration=0.21 ratio*1000=209

same problem :(

I watch asm code and :

c code :
double ratio = 0.21;

asm code on 4.3 :
fldl   0x8048580
fstpl  -0x10(%ebp)

asm code en 4.4 :
fldl   0x8048590
fstpl  0x38(%esp)

I think the is on 0x8048580 and 0x8048590


-- 


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



[Bug c/42076] regression on float representation

2009-11-17 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2009-11-17 16:17 ---
You are likely running into excess precision issues of i?86.  Try using
-mpc64 or -mfpmath=sse.


-- 


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