summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-21 19:18:52 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-21 19:18:52 +0000
commitbca2d9f753036424abf330f8837f2e0c8f56d87b (patch)
tree0dfde0176cfef4e0c3e293ad70883b0599ecb578
parentf330c0dc50e7872a1d2f4faba2435f36755e887f (diff)
downloadppe42-gcc-bca2d9f753036424abf330f8837f2e0c8f56d87b.tar.gz
ppe42-gcc-bca2d9f753036424abf330f8837f2e0c8f56d87b.zip
reverted erroneous checking -- sorry about that
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48250 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/java/parse.y15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index b3f383c01f0..7c50c971a34 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -5232,23 +5232,14 @@ check_inner_circular_reference (source, target)
if (!basetype_vec)
return NULL_TREE;
-
+
for (i = 0; i < TREE_VEC_LENGTH (basetype_vec); i++)
{
- tree su;
-
- /* We can end up with a NULL_TREE or an incomplete type here if
- we are compiling multiple files at once. It's safe to simply
- ignore these cases. */
- if (TREE_VEC_ELT (basetype_vec, i) == NULL_TREE)
- continue;
- su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
- if (INCOMPLETE_TYPE_P (su))
- continue;
+ tree su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
if (inherits_from_p (su, target))
return lookup_cl (TYPE_NAME (su));
-
+
for (ctx = DECL_CONTEXT (TYPE_NAME (su)); ctx; ctx = DECL_CONTEXT (ctx))
{
/* An enclosing context shouldn't be TARGET */
OpenPOWER on IntegriCloud