[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-17 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 Thomas Koenig tkoenig at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-17 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 Mikael Morin mikael at gcc dot gnu.org changed: What|Removed |Added CC||mikael at

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-17 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #12 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-17 15:35:10 UTC --- For those using valgrind on gentoo for the first time (like me) you need to add to FEATURES in make.conf, splitdebug and re-emerge glibc. I've

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-17 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #13 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-17 16:40:22 UTC --- As perhaps you have already guessed, this is just me being confused. After removing a lot of stuff from the code, I inserted a print statement

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-17 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 Thomas Koenig tkoenig at gcc dot gnu.org changed: What|Removed |Added Status|WAITING

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #1 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-16 18:02:49 UTC --- I realize this is not much help for a bug report. I can't get a small test case to fail, and if I change the optimization level it works. Also,

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #2 from Dominique d'Humieres dominiq at lps dot ens.fr 2013-03-16 18:16:10 UTC --- What happens if you don't use the graphite options '-floop-strip-mine -floop-block'? How big is your small test case and on which libraries does

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #3 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-16 18:46:06 UTC --- First some confusion. If I single step over the first statement it works properly. Once past that confusion, deleting both -floop-block and

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 Thomas Koenig tkoenig at gcc dot gnu.org changed: What|Removed |Added CC||tkoenig

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #5 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-16 21:25:46 UTC --- I don't mean to be argumentative, but I would like to ask: Would an index out of bounds explain why single stepping over the statement make it

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #6 from Dominique d'Humieres dominiq at lps dot ens.fr 2013-03-16 21:36:54 UTC --- I don't mean to be argumentative, but I would like to ask: Would an index out of bounds explain why single stepping over the statement make

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #7 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-16 21:44:46 UTC --- As mentioned in my first post, I am compiling with -fcheck-bounds. The errors are occurring in a subroutine inside what at the moment is a main

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #8 from Thomas Koenig tkoenig at gcc dot gnu.org 2013-03-16 23:03:06 UTC --- I was posting in the hope that I might help someone in finding a compiler bug. And we do appreciate that very much. The problem is that

[Bug fortran/56637] Bad result on max(1,shiftr(j,1))

2013-03-16 Thread fkrogh#gcc at mathalacarte dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56637 --- Comment #9 from Fred Krogh fkrogh#gcc at mathalacarte dot com 2013-03-17 04:42:39 UTC --- I have tried, but the small examples I've tried all work. And the code uses a library that I am not free to pass on. Probably you just have to