[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-12-02 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added CC|

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-12-02 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added CC|

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-02-27 Thread nakacristo at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 --- Comment #5 from Cristóbal Camarero nakacristo at hotmail dot com 2013-02-27 08:19:04 UTC --- Dominique, I think the test I found is more problematic than yours. Since in mine, the huge value is completely independent of the ending condition.

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-02-26 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-02-26 Thread nakacristo at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 --- Comment #2 from Cristóbal Camarero nakacristo at hotmail dot com 2013-02-26 17:39:31 UTC --- I think that at least -Wall -Wextra -Wstrict-overflow=5 should give a giving notice of the extremely odd behaviour. However, I am not following

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-02-26 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 --- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org 2013-02-26 17:53:43 UTC --- The compiler may assume that undefined behavior doesn't happen in the program. It is fine to have undefined behavior in code that will be never executed,

[Bug c/56463] infinite loop when having integer overflow in a simple accumulator

2013-02-26 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463 --- Comment #4 from Dominique d'Humieres dominiq at lps dot ens.fr 2013-02-26 18:41:56 UTC --- The compiler may assume that undefined behavior doesn't happen in the program. It is fine to have undefined behavior in code that will be never