[Bug libfortran/22144] [4.0 only] eoshift1, eoshift3, cshift1 lack memory allocation

2005-07-14 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-14 
21:17 ---
Subject: Bug 22144

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-07-14 21:17:44

Modified files:
libgfortran: ChangeLog 
libgfortran/generated: cshift1_4.c cshift1_8.c eoshift1_4.c 
   eoshift1_8.c eoshift3_4.c eoshift3_8.c 
libgfortran/intrinsics: eoshift0.c eoshift2.c 
libgfortran/m4 : cshift1.m4 eoshift1.m4 eoshift3.m4 
gcc/testsuite  : ChangeLog 
gcc/testsuite/gfortran.fortran-torture/execute: 
intrinsic_eoshift.f90 
Added files:
gcc/testsuite/gfortran.dg: shift-alloc.f90 

Log message:
2005-07-14  Thomas Koenig  [EMAIL PROTECTED]

Backport from mainline.
PR libfortran/21594
PR libfortran/22142
PR libfortran/22144
* intrinsics/eoshift0.c:  If abs(shift)  len, fill the
the whole array with the boundary value, but don't overrun it.
* intrinsics/eoshift2.c:  Likewise.
* m4/eoshift1.m4:  Likewise.
* m4/eoshift3.m4:  Likewise.
* m4/eoshift1.m4:  Correct bstride (it needs to be multiplied
by size since it's a char pointer).
* m4/eoshift3.m4:  Likewise.
* m4/cshift1.m4: Remove const from argument ret.
Populate return array descriptor if ret-data is NULL.
* m4/eoshift1.m4: Likewise.
* generated/eoshift1_4.c:  Regenerated.
* generated/eoshift1_8.c:  Regenerated.
* generated/eoshift3_4.c:  Regenerated.
* generated/eoshift3_8.c:  Regenerated.

2005-07-14  Thomas Koenig  [EMAIL PROTECTED]

Backport from mainline:
PR libfortran/21594
PR libfortran/22144
PR libfortran/22142
* gfortran.fortran-torture/execute/intrinsic_eoshift.f90:
Add test cases where the shift length is greater than the
array length.
Add test cases for PR 22142 for eoshift1 and eoshift3.
* gfortran.dg/shift-alloc.f90:  New testcase.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.163.2.61r2=1.163.2.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/cshift1_4.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/cshift1_8.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/eoshift1_4.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/eoshift1_8.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/eoshift3_4.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/eoshift3_8.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5.12.1r2=1.5.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/intrinsics/eoshift0.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.9.12.1r2=1.9.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/intrinsics/eoshift2.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.9.12.1r2=1.9.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/m4/cshift1.m4.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.6.12.1r2=1.6.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/m4/eoshift1.m4.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.6.12.1r2=1.6.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/m4/eoshift3.m4.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.6.12.1r2=1.6.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5084.2.276r2=1.5084.2.277
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.2r2=1.2.46.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/shift-alloc.f90.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.8.1



-- 


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


[Bug libfortran/22144] [4.0 only] eoshift1, eoshift3, cshift1 lack memory allocation

2005-07-14 Thread tkoenig at gcc dot gnu dot org

--- Additional Comments From tkoenig at gcc dot gnu dot org  2005-07-14 
21:21 ---
Fixed in 4.0.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug libfortran/22144] [4.0 only] eoshift1, eoshift3, cshift1 lack memory allocation

2005-06-25 Thread tkoenig at gcc dot gnu dot org

--- Additional Comments From tkoenig at gcc dot gnu dot org  2005-06-25 
09:59 ---
Fixed on mainline, waiting for 4.0 to reopen.

-- 
   What|Removed |Added

   Keywords||patch, wrong-code
  Known to fail||4.0.1
  Known to work||4.1.0
Summary|eoshift1, eoshift3, cshift1 |[4.0 only] eoshift1,
   |lack memory allocation  |eoshift3, cshift1 lack
   ||memory allocation
   Target Milestone|--- |4.0.2


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