This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49479] [4.6/4.7 Regression] reshape / optionals / zero sized arrays
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 6 Jul 2011 18:51:14 +0000
- Subject: [Bug fortran/49479] [4.6/4.7 Regression] reshape / optionals / zero sized arrays
- Auto-submitted: auto-generated
- References: <bug-49479-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49479
--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-07-06 18:50:50 UTC ---
Author: tkoenig
Date: Wed Jul 6 18:50:46 2011
New Revision: 175929
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175929
Log:
2011-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
Partial backport from trunk:
PR fortran/49479
* runtime/memory.c: If size is zero, allocate a single byte.
* m4/eoshift1.m4: Remove double allocation.
* m4/eoshift3.m4: Likewise.
* generated/eoshift1_4.c: Regenerated.
* generated/eoshift1_8.c: Regenerated.
* generated/eoshift1_16.c: Regenerated.
* generated/eoshift3_4.c: Regenerated.
* generated/eoshift3_8.c: Regenerated.
* generated/eoshift3_16.c: Regenerated.
2011-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/49479
* gfortran.dg/reshape_zerosize_3.f90: New test case.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/reshape_zerosize_3.f90
Modified:
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/libgfortran/ChangeLog
branches/gcc-4_6-branch/libgfortran/generated/eoshift1_16.c
branches/gcc-4_6-branch/libgfortran/generated/eoshift1_4.c
branches/gcc-4_6-branch/libgfortran/generated/eoshift1_8.c
branches/gcc-4_6-branch/libgfortran/generated/eoshift3_16.c
branches/gcc-4_6-branch/libgfortran/generated/eoshift3_4.c
branches/gcc-4_6-branch/libgfortran/generated/eoshift3_8.c
branches/gcc-4_6-branch/libgfortran/m4/eoshift1.m4
branches/gcc-4_6-branch/libgfortran/m4/eoshift3.m4
branches/gcc-4_6-branch/libgfortran/runtime/memory.c