This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR 52243 - avoid reallocation checks on assignment when possible
- From: Tobias Burnus <burnus at net-b dot de>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 29 Aug 2013 00:53:32 +0200
- Subject: Re: [Patch, fortran] PR 52243 - avoid reallocation checks on assignment when possible
- Authentication-results: sourceware.org; auth=none
- References: <521E748A dot 2050809 at netcologne dot de>
Dear Thomas, dear all,
Thomas Koenig wrote:
the attached patch avoids checks for reallocation on assignment when
the same variable is on both sides of the assignment.
Regression-tested. OK for trunk?
OK and thanks for the patch. (Can you remove the trailing spaces in the
line the first "return false;" before committal?)
Tobias
PS: I should have (again) more time for gfortran in the near future.
2013-08-29 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52243
* trans-expr.c (is_runtime_conformable): New function.
* gfc_trans_assignment_1: Use it.
2013-08-29 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52243
* gfortran.dg/realloc_on_assign_14.f90: Remove warning made
obsolete by patch.
* gfortran.dg/realloc_on_assign_19.f90: New test.