------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-13 
22:38 -------
This patch fixes the problem but I don't know if it is the correct fix:
Index: tree-ssa-dom.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 2.80
diff -u -p -r2.80 tree-ssa-dom.c
--- tree-ssa-dom.c      13 Dec 2004 20:12:33 -0000      2.80
+++ tree-ssa-dom.c      13 Dec 2004 22:35:50 -0000
@@ -3265,6 +3265,9 @@ record_range (tree cond, basic_block bb)
       struct vrp_element *element;
       varray_type *vrp_records_p;
       void **slot;
+      
+      if (TREE_CODE (TREE_OPERAND (cond, 0)) != SSA_NAME)
+        return;
 
 
       vrp_hash_elt = xmalloc (sizeof (struct vrp_hash_elt));


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18968

Reply via email to