This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]
On Sat, Jun 28, 2003 at 02:30:06PM +0200, Jan Hubicka wrote:
> * Makefile.in (GTFILES): Add cgraph.h.
> * cgraph.c (known_decls): Remove.
> (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
> cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
> (cgraph_node): Do not allocate known_decls; use polutate hashtable.
> (cgraph_varpool_node): Likewise; add next pointer.
> (cgraph_varpool_nodes): New static variable.
> * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
> cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
> cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
> * gengtype.c (open_base_files): Include cgraph.h
Ok.
> slot =
> (struct cgraph_node **) htab_find_slot_with_hash (cgraph_hash,
> DECL_ASSEMBLER_NAME (decl),
> ! IDENTIFIER_HASH_VALUE
> (DECL_ASSEMBLER_NAME
> (decl)), 1);
Better wrapped as
slot = (struct cgraph_node **)
htab_find_slot_with_hash (cgraph_hash, DECL_ASSEMBLER_NAME (decl),
IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME (decl)),
1);
r~
- References:
- [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]
- Re: [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]
- Re: [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]
- Re: [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]
- Re: [jh@suse.cz: Re: 6 GCC regressions, 2 new, with your patch on 2003-06-24T13:15:02Z.]