[Bug tree-optimization/50574] gcc.c-torture/execute/vector-compare-1.c FAILs on SPARC

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 30 13:34:00 GMT 2011


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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-30 12:47:32 UTC ---
FYI

Index: tree-cfg.c
===================================================================
--- tree-cfg.c  (revision 179378)
+++ tree-cfg.c  (working copy)
@@ -3229,8 +3302,8 @@ verify_gimple_comparison (tree type, tre
         }

       if (TYPE_VECTOR_SUBPARTS (type) != TYPE_VECTOR_SUBPARTS (op0_type)
-         || (GET_MODE_SIZE (TYPE_MODE (type))
-             != GET_MODE_SIZE (TYPE_MODE (op0_type))))
+         || (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (type)))
+             != GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (op0_type)))))
         {
           error ("invalid vector comparison resulting type");
           debug_generic_expr (type);



More information about the Gcc-bugs mailing list