This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] Java: fixing a recent regression.
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Subject: [PATCH] Java: fixing a recent regression.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Fri, 16 Feb 2001 12:52:20 -0800
- Reply-to: apbianco at cygnus dot com
This patch fixes at least one recent regression:
http://gcc.gnu.org/ml/java/2001-02/msg00243.html
I'm checking this in, both in the trunk and the 3.0 branch.
./A
2001-02-15 Alexandre Petit-Bianco <apbianco@redhat.com>
* expr.c (build_instanceof): Check for arrays when trying fold to
false.
Index: expr.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/expr.c,v
retrieving revision 1.102
diff -u -p -r1.102 expr.c
--- expr.c 2001/02/05 23:27:46 1.102
+++ expr.c 2001/02/16 20:31:56
@@ -1157,7 +1157,9 @@ build_instanceof (value, type)
value,
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 (klass)
&& ! inherits_from_p (type, valtype)