This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-06-12 18:16 -------
The patch which fixes the problem:
Index: ipa-reference.c
===================================================================
--- ipa-reference.c     (revision 125637)
+++ ipa-reference.c     (working copy)
@@ -269,6 +269,10 @@
   if (DECL_EXTERNAL (t) || TREE_PUBLIC (t))
     return false;

+  /* We cannot touch decl's whos types need constructing. */
+  if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (t)))
+    return false;
+
   /* This is a variable we care about.  Check if we have seen it
      before, and if not add it the set of variables we care about.  */
   if (!bitmap_bit_p (all_module_statics, DECL_UID (t)))


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]