re PR fortran/47674 (gfortran.dg/realloc_on_assign_5.f03: Segfault at run time for...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 5 Jan 2015 17:15:17 +0000 (17:15 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 5 Jan 2015 17:15:17 +0000 (17:15 +0000)
commit8b7cec587aa4e4d38ef9a258dc39cef53f8c8482
tree8c4081077c27175971eec83c26efa6ad349c7dde
parent24fa8749bba103b9258434fc2e3f9a1d99b64385
re PR fortran/47674 (gfortran.dg/realloc_on_assign_5.f03: Segfault at run time for deferred (allocatable) string length)

2015-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/47674
* dependency.c:  Update copyright years.
(gfc_discard_nops):  Add prototype.
* dependency.c (discard_nops):  Rename to gfc_discard_nops,
make non-static.
(gfc_discard_nops):  Use gfc_discard_nops.
(gfc_dep_difference):  Likewise.
* frontend-passes.c  Update copyright years.
(realloc_strings):  New function.  Add prototype.
(gfc_run_passes):  Call realloc_strings.
(realloc_string_callback):  New function.
(create_var):  Add prototype.  Handle case of a
scalar character variable.
(optimize_trim):  Do not handle allocatable variables.

2015-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/47674
* gfortran.dg/realloc_on_assign_25.f90:  New test.

From-SVN: r219193
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_25.f90 [new file with mode: 0644]