This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17126] [3.5 Regression] ICE in GC with non-unit-at-a-time
- From: "ehrhardt at mathematik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2004 11:49:26 -0000
- Subject: [Bug middle-end/17126] [3.5 Regression] ICE in GC with non-unit-at-a-time
- References: <20040820204405.17126.bommar33@msu.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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