[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-21 Thread hjl at lucon dot org
--- Comment #10 from hjl at lucon dot org 2007-05-21 21:54 --- (In reply to comment #9) > (In reply to comment #6) > > This fix miscompiles tonto in SPEC CPU 2006 on Linux/x86-64. I am checking > > if Linux/ia32 is also miscompiled. > > Can you file a new bug rather than reopening this

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-21 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-05-21 21:41 --- (In reply to comment #6) > This fix miscompiles tonto in SPEC CPU 2006 on Linux/x86-64. I am checking > if Linux/ia32 is also miscompiled. Can you file a new bug rather than reopening this one (mark it as blocking t

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-21 Thread hjl at lucon dot org
--- Comment #8 from hjl at lucon dot org 2007-05-21 21:36 --- According to the comment, before the change, we performed [evaluate loop bounds and step] count = (to + step - from) / step; dovar = from; for (;;) { body; cycle_label: dovar += step coun

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-21 Thread hjl at lucon dot org
--- Comment #7 from hjl at lucon dot org 2007-05-21 21:19 --- (In reply to comment #6) > This fix miscompiles tonto in SPEC CPU 2006 on Linux/x86-64. I am checking > if Linux/ia32 is also miscompiled. > Tonto is also miscompiled on Linux/ia32. -- http://gcc.gnu.org/bugzilla/show_b

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-21 Thread hjl at lucon dot org
--- Comment #6 from hjl at lucon dot org 2007-05-21 21:10 --- This fix miscompiles tonto in SPEC CPU 2006 on Linux/x86-64. I am checking if Linux/ia32 is also miscompiled. -- hjl at lucon dot org changed: What|Removed |Added ---

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-06 Thread fxcoudert at gcc dot gnu dot org
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2007-05-07 06:54 --- Fixed on mainline. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-06 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-05-07 06:53 --- Subject: Bug 31399 Author: fxcoudert Date: Mon May 7 05:53:07 2007 New Revision: 124496 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124496 Log: PR fortran/31399 * trans-stmt.c (gfc_tr

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-05-03 Thread patchapp at dberlin dot org
--- Comment #3 from patchapp at dberlin dot org 2007-05-03 18:37 --- Subject: Bug number PR31399 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00121.html -- http://gcc.gnu.org/bugzilla/sh

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-04-07 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-04-07 14:15 --- Created an attachment (id=13337) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13337&action=view) Patch -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Adde

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-03-30 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-03-30 12:49 --- (In reply to comment #0) > the loop count should be > changed from > count = (to + step - from) / step > to something else that cannot overflow. I think it should be: unsigned count = (step>0 ? tofrom) ? 0 : 1

[Bug fortran/31399] Wrong code for do loop with large interation count

2007-03-30 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known t