[Bug c/55544] invalid optimisation long long->double->long long (with -m32)

2012-11-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/55544] invalid optimisation long long->double->long long (with -m32)

2012-11-30 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544 --- Comment #1 from Mikael Pettersson 2012-11-30 12:37:49 UTC --- (In reply to comment #0) > double d = (double)v1; Doesn't this overflow and provoke undefined behaviour when v1 is 9223372036854774781LL (0x7bfd)?