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/17126] [3.5 Regression] ICE in GC with non-unit-at-a-time


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2004-08-23 11:49 -------
Subject: Re:  [3.5 Regression] ICE in GC with non-unit-at-a-time

On Mon, Aug 23, 2004 at 10:08:38AM -0000, reichelt at gcc dot gnu dot org wrote:
> 
> ------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-23 10:08 -------
> Anrew's guess was right. The bug appears with Jan's patch
> http://gcc.gnu.org/ml/gcc-cvs/2004-04/msg00137.html

Maybe I'm missing something but this patch seems to make the assumption
that DECL_ASSEMBLER_NAME is a tree_node. However, it is simply a char *:

>From the patch: 

cgraphunit.c:

+      void **slot;
+      if (!cgraph_inline_hash)
+        cgraph_inline_hash = htab_create_ggc (42, htab_hash_pointer,
+                                             htab_eq_pointer, NULL);
+      slot = htab_find_slot (cgraph_inline_hash,
+                            DECL_ASSEMBLER_NAME (e->callee->decl), INSERT);
+      *slot = DECL_ASSEMBLER_NAME (e->callee->decl);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

but in cgraph.h we have:

+extern GTY((param_is (union tree_node))) htab_t cgraph_inline_hash;
             ^^^^^^^^^^^^^^^^^^^^^^^^^^

    regards  Christian



-- 


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


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