This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] fix cgraph_mark_inline_edge
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Feb 2004 13:42:05 +0100
- Subject: [tree-ssa] fix cgraph_mark_inline_edge
Hi,
while trying to merge new cgraph code to mainline, the new dwarf2out
sanity code noticed that I don't mark inline functions correctly.
There are more bugs in a way, I will send few extra patches.
Honza
2004-02-01 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_mark_inline_edge): Fix insertion to
cgraph_inline_hash.
Index: cgraphunit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cgraphunit.c,v
retrieving revision 1.1.4.32
diff -c -3 -p -r1.1.4.32 cgraphunit.c
*** cgraphunit.c 30 Jan 2004 13:13:38 -0000 1.1.4.32
--- cgraphunit.c 1 Feb 2004 10:32:19 -0000
*************** cgraph_mark_inline_edge (struct cgraph_e
*** 905,915 ****
if (!e->callee->global.inlined && flag_unit_at_a_time)
{
if (!cgraph_inline_hash)
cgraph_inline_hash = htab_create_ggc (42, htab_hash_pointer,
htab_eq_pointer, NULL);
! htab_find_slot (cgraph_inline_hash,
! DECL_ASSEMBLER_NAME (e->callee->decl), INSERT);
}
e->callee->global.inlined = true;
--- 905,917 ----
if (!e->callee->global.inlined && flag_unit_at_a_time)
{
+ 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);
}
e->callee->global.inlined = true;