aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2020-10-11 17:30:41 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2020-10-11 17:32:42 +0200
commitb96fdc7b84eb288dea0c3e99a212e6483007a35a (patch)
tree3ccc07997be433d51bca3fee729a8226a8bd6ef5
parent4ee45ae944966c64280094f354aa4b2843092503 (diff)
downloadgcc-b96fdc7b84eb288dea0c3e99a212e6483007a35a.zip
gcc-b96fdc7b84eb288dea0c3e99a212e6483007a35a.tar.gz
gcc-b96fdc7b84eb288dea0c3e99a212e6483007a35a.tar.bz2
Add initialization to orig_desc in gfc_deallocate_with_status.
gcc/fortran/ChangeLog: * trans.c (gfc_deallocate_with_status): Add initialization to orig_desc.
-rw-r--r--gcc/fortran/trans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c
index 1bd9801..7d9cd32 100644
--- a/gcc/fortran/trans.c
+++ b/gcc/fortran/trans.c
@@ -1352,7 +1352,7 @@ gfc_deallocate_with_status (tree pointer, tree status, tree errmsg,
tree cond, tmp, error;
tree status_type = NULL_TREE;
tree token = NULL_TREE;
- tree orig_desc;
+ tree orig_desc = NULL_TREE;
gfc_coarray_deregtype caf_dereg_type = GFC_CAF_COARRAY_DEREGISTER;
if (coarray_dealloc_mode >= GFC_CAF_COARRAY_ANALYZE )