* parse.y (merge_string_cste): Handle case where we have a
pointer that happens to be zero, not null_pointer_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73461
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-11-11 Tom Tromey <tromey@redhat.com>
+
+ PR java/12915:
+ * parse.y (merge_string_cste): Handle case where we have a
+ pointer that happens to be zero, not null_pointer_node.
+
2003-11-10 Tom Tromey <tromey@redhat.com>
* jcf-parse.c (classify_zip_file): Correctly compare
string = boolean_true;
else if (op2 == boolean_false_node)
string = boolean_false;
- else if (op2 == null_pointer_node)
+ else if (op2 == null_pointer_node
+ || (integer_zerop (op2)
+ && TREE_CODE (TREE_TYPE (op2)) == POINTER_TYPE))
/* FIXME: null is not a compile-time constant, so it is only safe to
merge if the overall expression is non-constant. However, this
code always merges without checking the overall expression. */