[Bug fortran/49479] [4.6/4.7 Regression] reshape / optionals / zero sized arrays

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 6 18:51:00 GMT 2011


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



More information about the Gcc-bugs mailing list