From 4588b60480b8f66f78a56cb43d6813af76f9a29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Schl=C3=BCter?= Date: Thu, 12 May 2005 20:19:37 +0200 Subject: [PATCH] * trans-types.c (gfc_is_nodesc_array): Remove redundant check. From-SVN: r99621 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/trans-types.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 98d9bb328b9..57fac5661ac 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2005-05-12 Tobias Schl"uter + + * trans-types.c (gfc_is_nodesc_array): Remove redundant check. + 2005-05-11 Tobias Schl"uter PR fortran/21260 diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index b2c5169c91d..44f19f486cc 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -785,9 +785,6 @@ gfc_is_nodesc_array (gfc_symbol * sym) if (sym->attr.result || sym->attr.function) return 0; - if (sym->attr.pointer || sym->attr.allocatable) - return 0; - gcc_assert (sym->as->type == AS_EXPLICIT); return 1;