This is the mail archive of the gcc-patches@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]

Re: [PATCH] Avoid recursive use of hash tables in varasm.c


On Mon, May 16, 2005 at 10:05:37AM -0400, Jakub Jelinek wrote:
> 	* varasm.c (struct constant_descriptor_tree): Add hash field.
> 	(const_desc_hash): Just return hash field.
> 	(const_desc_eq): If hash values are different, return 0 immediately.
> 	(output_constant_def): Compute hash field of temporary key, use
> 	htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
> 	newly built constant descriptor.
> 	(lookup_constant_def): Compute hash field of temporary key, use
> 	htab_find_with_hash instead of htab_find.

Ok everywhere.  I believe you need an ack from Mark for 3.4 branch.


r~


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