* parse.y (build_string_concatenation): Return just op1 only when op2
is null and op1 is a STRING_CST, otherwise always construct a
StringBuffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53158
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-05-04 Mark Wielaard <mark@klomp.org>
+
+ For PR java/6519:
+ * parse.y (build_string_concatenation): Return just op1 only when op2
+ is null and op1 is a STRING_CST, otherwise always construct a
+ StringBuffer.
+
2002-04-27 Tom Tromey <tromey@redhat.com>
For PR java/6382:
op2 = patch_string_cst (op2);
/* If either one of the constant is null and the other non null
- operand is a String object, return it. */
- if (JSTRING_TYPE_P (TREE_TYPE (op1)) && !op2)
+ operand is a String constant, return it. */
+ if ((TREE_CODE (op1) == STRING_CST) && !op2)
return op1;
/* If OP1 isn't already a StringBuffer, create and