[Bug fortran/38135] RESHAPE gives wrong result

2008-11-23 Thread tkoenig at gcc dot gnu dot org
--- Comment #18 from tkoenig at gcc dot gnu dot org 2008-11-23 15:17 --- ... and now really closing. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-23 Thread tkoenig at gcc dot gnu dot org
--- Comment #17 from tkoenig at gcc dot gnu dot org 2008-11-23 15:10 --- Fixed on 4.3. Closing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-23 Thread tkoenig at gcc dot gnu dot org
--- Comment #16 from tkoenig at gcc dot gnu dot org 2008-11-23 15:10 --- Subject: Bug 38135 Author: tkoenig Date: Sun Nov 23 15:08:32 2008 New Revision: 142134 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142134 Log: 2008-11-23 Thomas Koenig <[EMAIL PROTECTED]> PR

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-19 Thread mikael at gcc dot gnu dot org
--- Comment #15 from mikael at gcc dot gnu dot org 2008-11-19 20:56 --- (In reply to comment #14) > Mikael, if you think the problem you mentioned in comment #4 warrants > its own PR, maybe you could open it. > PR 38184 opened for that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-19 Thread tkoenig at gcc dot gnu dot org
--- Comment #14 from tkoenig at gcc dot gnu dot org 2008-11-19 19:33 --- The problem is fixed on trunk, I think we can close this after backporting. Mikael, if you think the problem you mentioned in comment #4 warrants its own PR, maybe you could open it. -- http://gcc.gnu.org/bu

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-18 Thread tkoenig at gcc dot gnu dot org
--- Comment #13 from tkoenig at gcc dot gnu dot org 2008-11-18 22:44 --- Subject: Bug 38135 Author: tkoenig Date: Tue Nov 18 22:43:05 2008 New Revision: 141982 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141982 Log: 2008-11-18 Thomas Koenig <[EMAIL PROTECTED]> PR

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread pault at gcc dot gnu dot org
--- Comment #12 from pault at gcc dot gnu dot org 2008-11-16 22:25 --- Thomas, Since you are there, bar the shouting, I thought that I would assign you:-) Cheers and thanks Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread tkoenig at gcc dot gnu dot org
--- Comment #11 from tkoenig at gcc dot gnu dot org 2008-11-16 20:38 --- Regression-test and full patch, including test cases, tomorrow. RL keeps interfering :-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread mikael at gcc dot gnu dot org
--- Comment #10 from mikael at gcc dot gnu dot org 2008-11-16 19:44 --- (In reply to comment #9) Those are only details, it works nicely :-). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread mikael at gcc dot gnu dot org
--- Comment #9 from mikael at gcc dot gnu dot org 2008-11-16 18:46 --- (In reply to comment #8) Are you sure this is needed ? if (sempty) { - /* Switch immediately to the pad array. */ + /* Pretend we are using the pad array the first time around, too. */ src

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread tkoenig at gcc dot gnu dot org
--- Comment #8 from tkoenig at gcc dot gnu dot org 2008-11-16 16:03 --- Created an attachment (id=16700) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16700&action=view) Patch for the library part Well, here's a patch for the library part. Apparently, nobody ever paid much attent

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread mikael at gcc dot gnu dot org
--- Comment #7 from mikael at gcc dot gnu dot org 2008-11-16 15:22 --- (In reply to comment #6) > I'm onto it; the problems are in reshape.m4 / reshape_generic.c . > Ok, leaving it to you. According to my tests, sstride0 has suspicious values. -- http://gcc.gnu.org/bugzilla/show

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2008-11-16 13:58 --- (In reply to comment #5) > > for (2), I'm puzzled. :( I'm onto it; the problems are in reshape.m4 / reshape_generic.c . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread mikael at gcc dot gnu dot org
--- Comment #5 from mikael at gcc dot gnu dot org 2008-11-16 13:45 --- Index: simplify.c === --- simplify.c (révision 141833) +++ simplify.c (copie de travail) @@ -3410,9 +3410,6 @@ is_constant_array_expr (gfc_expr *e)

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread mikael at gcc dot gnu dot org
--- Comment #4 from mikael at gcc dot gnu dot org 2008-11-16 11:38 --- (In reply to comment #3) > The problem appears to be the empty SOURCE with the presence of PAD. I agree. There are two bugs actually: (1) the front-end doesn't expand the reshape. (at least in this case: reshape

[Bug fortran/38135] RESHAPE gives wrong result

2008-11-16 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2008-11-16 09:04 --- Simplified test case (without the second reshape): The problem appears to be the empty SOURCE with the presence of PAD. $ cat bar.f90 program main integer, parameter :: N = 3 integer :: A(N,N) integer :: b(n+