expr.c (build_instanceof): Check for arrays when trying fold to false.

2001-02-15  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* expr.c (build_instanceof): Check for arrays when trying fold to
	false.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00993.html)

From-SVN: r39778
parent 2c1be322
2001-02-15 Alexandre Petit-Bianco <apbianco@redhat.com>
* expr.c (build_instanceof): Check for arrays when trying fold to
false.
2001-02-15 Jim Meyering <meyering@lucent.com> 2001-02-15 Jim Meyering <meyering@lucent.com>
* Make-lang.in (java.install-common): Depend on `installdirs'. * Make-lang.in (java.install-common): Depend on `installdirs'.
......
...@@ -1157,7 +1157,9 @@ build_instanceof (value, type) ...@@ -1157,7 +1157,9 @@ build_instanceof (value, type)
value, value,
boolean_true_node, boolean_false_node); boolean_true_node, boolean_false_node);
} }
else if (DECL_P (klass) && DECL_P (valclass) else if (! TYPE_ARRAY_P (type)
&& ! TYPE_ARRAY_P (valtype)
&& DECL_P (klass) && DECL_P (valclass)
&& ! CLASS_INTERFACE (valclass) && ! CLASS_INTERFACE (valclass)
&& ! CLASS_INTERFACE (klass) && ! CLASS_INTERFACE (klass)
&& ! inherits_from_p (type, valtype) && ! inherits_from_p (type, valtype)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment