[Bug c/33809] Rounding off error in GCC 4.1.2

2007-10-18 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-10-18 16:27 --- (In reply to comment #3) > Your code is undefined. You have multiple assignments to pow_tmp without > intervening sequence points. > Do you think it could be interesting to collect these kind of reports as potential

[Bug c/33809] Rounding off error in GCC 4.1.2

2007-10-18 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-10-18 14:46 --- Your code is undefined. You have multiple assignments to pow_tmp without intervening sequence points. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/33809] Rounding off error in GCC 4.1.2

2007-10-18 Thread satyaakam at yahoo dot co dot in
--- Comment #2 from satyaakam at yahoo dot co dot in 2007-10-18 14:00 --- $gcc -ffloat-store round.c $ ./a.out -0.724062 $gcc -O3 -ffloat-store round.c $ ./a.out -0.541341 $gcc -O0 -ffloat-store round.c ./a.out -0.724062 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33809

[Bug c/33809] Rounding off error in GCC 4.1.2

2007-10-18 Thread ubizjak at gmail dot com
--- Comment #1 from ubizjak at gmail dot com 2007-10-18 12:18 --- What about -ffloat-store? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33809