Handle AR_FULL vs. AR_FULL in dependency checking.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 23 Jun 2020 06:14:51 +0000 (08:14 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 23 Jun 2020 06:14:51 +0000 (08:14 +0200)
commitabcde0a658e17dbbabcb396eaae5a3612e07d401
tree4019dff4c6c8d2fd1db057987848b4bb69ea816e
parent384aa890255dc01ba6d6529b127975c2c9a49a3c
Handle AR_FULL vs. AR_FULL in dependency checking.

Previously, handling of full vs. full references failed to take
AR_FULL vs. AR_FULL into account.  A change in dependency
checking in gcc 10 created a code path that could lead there;
with this patch, this is now correctly handled.

gcc/fortran/ChangeLog:

2020-06-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/95812
* dependency.c (ref_same_as_full_array): Handle case of AR_FULL
vs. AR_FULL.

gcc/testsuite/ChangeLog:

2020-06-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/95812
* gfortran.dg/dependency_59.f90: New test.
gcc/fortran/dependency.c
gcc/testsuite/gfortran.dg/dependency_59.f90 [new file with mode: 0644]