public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38135]  New: FORALL gives wrong result
@ 2008-11-15 15:57 burnus at gcc dot gnu dot org
  2008-11-15 16:12 ` [Bug fortran/38135] " burnus at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-11-15 15:57 UTC (permalink / raw)
  To: gcc-bugs

I expect that the following program prints:

    1    2    2
    2    1    2
    2    2    1
    1    0    0    0

which works with g95 and ifort, but with gfortran one gets:
    1    1*****
   72    1    1
*****   72    1
    1    0    0    0

The program is a minutely modified version of the program posted to c.l.f by
James Van Buskirk at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e7ec475ff7935804

integer, parameter :: N = 3
integer A(N,N)
A(1:N,1:N)=reshape([integer::],[N,N],reshape([1],[N+1],[2]))
write(*,'(3i5)') A
write(*,'(4i5)') reshape([1],[N+1],[0])
end


-- 
           Summary: FORALL gives wrong result
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] FORALL gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
@ 2008-11-15 16:12 ` burnus at gcc dot gnu dot org
  2008-11-15 17:20 ` tkoenig at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-11-15 16:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2008-11-15 16:10 -------
Using
  A(1:N,1:N)=reshape(A(1:0,1),(/N,N/),reshape((/1/),(/N+1/),(/2/)))
the program is a Fortran 95 program, which also works with NAG f95 and openf95.
-> Blocking 32834


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |32834
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] FORALL gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
  2008-11-15 16:12 ` [Bug fortran/38135] " burnus at gcc dot gnu dot org
@ 2008-11-15 17:20 ` tkoenig at gcc dot gnu dot org
  2008-11-16  9:05 ` [Bug fortran/38135] RESHAPE " tkoenig at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-15 17:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tkoenig at gcc dot gnu dot org  2008-11-15 17:19 -------
$ cat foo.f90
integer, parameter :: N = 3
integer A(N,N)
A(1:N,1:N)=reshape(A(1:0,1),(/N,N/),reshape((/1/),(/N+1/),(/2/)))
write(*,'(3i5)') A
write(*,'(4i5)') reshape([1],[N+1],[0])
end
$ gfortran -fbounds-check foo.f90
$ ./a.out
Fortran runtime error: Incorrect size in SOURCE argument to RESHAPE intrinsic:
is 0, should be 9

A false positive for bounds checking as well, it appears.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
  2008-11-15 16:12 ` [Bug fortran/38135] " burnus at gcc dot gnu dot org
  2008-11-15 17:20 ` tkoenig at gcc dot gnu dot org
@ 2008-11-16  9:05 ` tkoenig at gcc dot gnu dot org
  2008-11-16 11:39 ` mikael at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-16  9:05 UTC (permalink / raw)
  To: gcc-bugs



------- 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+1)

  b = (/ 1, 2, 2, 2 /)

  A(1:N,1:N)=reshape(A(1:0,1),(/N,N/),b)
  write(*,'(3i5)') A

end program main
$ gfortran bar.f90
$ ./a.out
    1*****    1
*****    1*****
    1*****    1


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-16 09:04:10
               date|                            |
            Summary|FORALL gives wrong result   |RESHAPE gives wrong result


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-11-16  9:05 ` [Bug fortran/38135] RESHAPE " tkoenig at gcc dot gnu dot org
@ 2008-11-16 11:39 ` mikael at gcc dot gnu dot org
  2008-11-16 13:47 ` mikael at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-16 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- 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([integer::],[N,N],[1,2,2,2]) )
(2) reshape gives wrong results. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-11-16 11:39 ` mikael at gcc dot gnu dot org
@ 2008-11-16 13:47 ` mikael at gcc dot gnu dot org
  2008-11-16 13:59 ` tkoenig at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-16 13:47 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]



------- 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)
   if (e->expr_type != EXPR_ARRAY || !gfc_is_constant_expr (e))
     return false;

-  if (e->value.constructor == NULL)
-    return false;
-  
   for (c = e->value.constructor; c; c = c->next)
     if (c->expr->expr_type != EXPR_CONSTANT)
       return false;

This solves (1) (the original testcase), but not (2).
I will regtest it. 

for (2), I'm puzzled. :(


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-11-16 13:47 ` mikael at gcc dot gnu dot org
@ 2008-11-16 13:59 ` tkoenig at gcc dot gnu dot org
  2008-11-16 15:23 ` mikael at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-16 13:59 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-11-16 13:59 ` tkoenig at gcc dot gnu dot org
@ 2008-11-16 15:23 ` mikael at gcc dot gnu dot org
  2008-11-16 16:05 ` tkoenig at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-16 15:23 UTC (permalink / raw)
  To: gcc-bugs



------- 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.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-11-16 15:23 ` mikael at gcc dot gnu dot org
@ 2008-11-16 16:05 ` tkoenig at gcc dot gnu dot org
  2008-11-16 18:48 ` mikael at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-16 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- 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
attention to the "pad" argument before (a few things were just plain wrong
there).

Mikael, you were right about sstride0, but that wasn't the only problem :-)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-11-16 16:05 ` tkoenig at gcc dot gnu dot org
@ 2008-11-16 18:48 ` mikael at gcc dot gnu dot org
  2008-11-16 19:46 ` mikael at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-16 18:48 UTC (permalink / raw)
  To: gcc-bugs



------- 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 = pptr;
-      sptr = NULL;
+      sptr = pptr;
       sdim = pdim;
       for (dim = 0; dim < pdim; dim++)

sptr is only used later to switch from source to pad, which is not needed here
as we start with pad directly. No?


> Mikael, you were right about sstride0, but that wasn't the only problem :-)
While we are at it, we could calculate sstride0 outside the loop, that would be
5ns faster ;-). 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2008-11-16 18:48 ` mikael at gcc dot gnu dot org
@ 2008-11-16 19:46 ` mikael at gcc dot gnu dot org
  2008-11-16 20:39 ` tkoenig at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-16 19:46 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-11-16 19:46 ` mikael at gcc dot gnu dot org
@ 2008-11-16 20:39 ` tkoenig at gcc dot gnu dot org
  2008-11-16 22:26 ` pault at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-16 20:39 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2008-11-16 20:39 ` tkoenig at gcc dot gnu dot org
@ 2008-11-16 22:26 ` pault at gcc dot gnu dot org
  2008-11-18 22:46 ` tkoenig at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-11-16 22:26 UTC (permalink / raw)
  To: gcc-bugs



------- 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
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tkoenig at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2008-11-16 22:26 ` pault at gcc dot gnu dot org
@ 2008-11-18 22:46 ` tkoenig at gcc dot gnu dot org
  2008-11-19 19:35 ` tkoenig at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-18 22:46 UTC (permalink / raw)
  To: gcc-bugs



------- 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  <tkoenig@gcc.gnu.org>

        PR libfortran/38135
        * m4/reshape.m4:  Correct bounds checking when PAD is present.
        Treat PAD as if it were SOURCE when SOURCE is empty.
        * intrinsics/reshape_generic.c:  Likewise.
        * generated/reshape_c10.c Regenerated.
        * generated/reshape_c16.c Regenerated.
        * generated/reshape_c4.c Regenerated.
        * generated/reshape_c8.c Regenerated.
        * generated/reshape_i16.c Regenerated.
        * generated/reshape_i4.c Regenerated.
        * generated/reshape_i8.c Regenerated.
        * generated/reshape_r10.c Regenerated.
        * generated/reshape_r16.c Regenerated.
        * generated/reshape_r4.c Regenerated.
        * generated/reshape_r8.c Regenerated.

2008-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR libfortran/38135
        * gfortran.dg/reshape_pad_1.f90:  New test case.


Added:
    trunk/gcc/testsuite/gfortran.dg/reshape_pad_1.f90
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/generated/reshape_c10.c
    trunk/libgfortran/generated/reshape_c16.c
    trunk/libgfortran/generated/reshape_c4.c
    trunk/libgfortran/generated/reshape_c8.c
    trunk/libgfortran/generated/reshape_i16.c
    trunk/libgfortran/generated/reshape_i4.c
    trunk/libgfortran/generated/reshape_i8.c
    trunk/libgfortran/generated/reshape_r10.c
    trunk/libgfortran/generated/reshape_r16.c
    trunk/libgfortran/generated/reshape_r4.c
    trunk/libgfortran/generated/reshape_r8.c
    trunk/libgfortran/intrinsics/reshape_generic.c
    trunk/libgfortran/m4/reshape.m4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2008-11-18 22:46 ` tkoenig at gcc dot gnu dot org
@ 2008-11-19 19:35 ` tkoenig at gcc dot gnu dot org
  2008-11-19 20:57 ` mikael at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-19 19:35 UTC (permalink / raw)
  To: gcc-bugs



------- 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/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2008-11-19 19:35 ` tkoenig at gcc dot gnu dot org
@ 2008-11-19 20:57 ` mikael at gcc dot gnu dot org
  2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-11-19 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- 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?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2008-11-19 20:57 ` mikael at gcc dot gnu dot org
@ 2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
  2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
  2008-11-23 15:18 ` tkoenig at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-23 15:11 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
@ 2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
  2008-11-23 15:18 ` tkoenig at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-23 15:11 UTC (permalink / raw)
  To: gcc-bugs



------- 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  <tkoenig@gcc.gnu.org>

        PR libfortran/38135
        Backport from trunk.
        * m4/reshape.m4:  Tread PAD as if it were SOURCE when SOURCE
        is empty.
        * intrinsics/reshape_generic.c:  Likewise.
        * generated/reshape_c10.c Regenerated.
        * generated/reshape_c16.c Regenerated.
        * generated/reshape_c4.c Regenerated.
        * generated/reshape_c8.c Regenerated.
        * generated/reshape_i16.c Regenerated.
        * generated/reshape_i4.c Regenerated.
        * generated/reshape_i8.c Regenerated.
        * generated/reshape_r10.c Regenerated.
        * generated/reshape_r16.c Regenerated.
        * generated/reshape_r4.c Regenerated.
        * generated/reshape_r8.c Regenerated.

2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR libfortran/38135
        Backport from trunk.
        * gfortran.dg/reshape_pad_1.f90:  New test case.



Added:
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/reshape_pad_1.f90
Modified:
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_3-branch/libgfortran/ChangeLog
    branches/gcc-4_3-branch/libgfortran/generated/reshape_c10.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_c16.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_c4.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_c8.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_i16.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_i4.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_i8.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_r10.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_r16.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_r4.c
    branches/gcc-4_3-branch/libgfortran/generated/reshape_r8.c
    branches/gcc-4_3-branch/libgfortran/intrinsics/reshape_generic.c
    branches/gcc-4_3-branch/libgfortran/m4/reshape.m4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/38135] RESHAPE gives wrong result
  2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
@ 2008-11-23 15:18 ` tkoenig at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-11-23 15:18 UTC (permalink / raw)
  To: gcc-bugs



------- 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
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-11-23 15:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-15 15:57 [Bug fortran/38135] New: FORALL gives wrong result burnus at gcc dot gnu dot org
2008-11-15 16:12 ` [Bug fortran/38135] " burnus at gcc dot gnu dot org
2008-11-15 17:20 ` tkoenig at gcc dot gnu dot org
2008-11-16  9:05 ` [Bug fortran/38135] RESHAPE " tkoenig at gcc dot gnu dot org
2008-11-16 11:39 ` mikael at gcc dot gnu dot org
2008-11-16 13:47 ` mikael at gcc dot gnu dot org
2008-11-16 13:59 ` tkoenig at gcc dot gnu dot org
2008-11-16 15:23 ` mikael at gcc dot gnu dot org
2008-11-16 16:05 ` tkoenig at gcc dot gnu dot org
2008-11-16 18:48 ` mikael at gcc dot gnu dot org
2008-11-16 19:46 ` mikael at gcc dot gnu dot org
2008-11-16 20:39 ` tkoenig at gcc dot gnu dot org
2008-11-16 22:26 ` pault at gcc dot gnu dot org
2008-11-18 22:46 ` tkoenig at gcc dot gnu dot org
2008-11-19 19:35 ` tkoenig at gcc dot gnu dot org
2008-11-19 20:57 ` mikael at gcc dot gnu dot org
2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
2008-11-23 15:11 ` tkoenig at gcc dot gnu dot org
2008-11-23 15:18 ` tkoenig at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).