This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] Fix libjava builds on ppc64
- From: "Diego Novillo" <dnovillo at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Jul 2008 10:41:56 -0400
- Subject: [tuples] Fix libjava builds on ppc64
This fixes the libjava failure I was having on ppc64. Thanks Richard
for the quick analysis and fix suggestion.
Bootstrapped on ppc64. The build is still not finished, but I'm past
the previous build failure.
Diego.
2008-07-22 Diego Novillo <dnovillo@google.com>
Richard Guenther <rguenther@suse.de>
* tree-ssa-dom.c (hashable_expr_equal_p): Do nothing if
either TYPE0 or TYPE1 is NULL.
Index: tree-ssa-dom.c
===================================================================
--- tree-ssa-dom.c (revision 138057)
+++ tree-ssa-dom.c (working copy)
@@ -354,6 +354,10 @@ hashable_expr_equal_p (const struct hash
tree type0 = expr0->type;
tree type1 = expr1->type;
+ /* If either type is NULL, there is nothing to check. */
+ if ((type0 == NULL_TREE) ^ (type1 == NULL_TREE))
+ return false;
+
/* If both types don't have the same signedness, precision, and mode,
then we can't consider them equal. */
if (type0 != type1