This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR 52243 - avoid reallocation checks on assignment when possible


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]