PATCH: use hashtab for pseudo op table

Zack Weinberg zack@codesourcery.com
Fri May 6 07:36:00 GMT 2005


Richard Henderson <rth@redhat.com> writes:

> On Thu, May 05, 2005 at 11:16:19PM -0700, Zack Weinberg wrote:
>> Won't horrible things happen when it tries to resize the table, if you
>> do that?
>
> No, there are two hash functions.  The one you give at hash table 
> creation knows about the object stored in.  That's why you have to
> call the "*_with_hash" function directly.

Oh, right.  That trick doesn't make me very happy, because someone's
bound to forget.  In the GAS context, though, it might be safe enough
if it were all hidden behind wrappers.

zw



More information about the Binutils mailing list