[Bug tree-optimization/88214] ICE in bitmap_intersect_p() on 32-bit BE platforms

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 6 18:11:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88214

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I'm going to test the following fix:

diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 7405235..4dbe268 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -1569,7 +1569,8 @@ determine_locally_known_aggregate_parts (gcall *call,
tree arg,
       if (TREE_CODE (arg) == SSA_NAME)
        {
          tree type_size;
-          if (!tree_fits_uhwi_p (TYPE_SIZE (TREE_TYPE (arg_type))))
+          if (!tree_fits_uhwi_p (TYPE_SIZE (TREE_TYPE (arg_type)))
+             || !POINTER_TYPE_P (TREE_TYPE (arg)))
             return;
          check_ref = true;
          arg_base = arg;


More information about the Gcc-bugs mailing list