Avoid DIE freeing overhead

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Tue Apr 18 08:20:00 GMT 2006


> @@ -13802,9 +13777,8 @@
>         s->refcount++;
>         /* Avoid unnecessarily putting strings that are used less than
>            twice in the hash table.  */
> -       if (s->refcount == 2
> -           || (s->refcount == 1
> -               && (DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) != 0))
> +       if (s->refcount
> +           == ((DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) ? 1 : 2))
>           {
>             void ** slot;
>             slot = htab_find_slot_with_hash (debug_str_hash, s->str,

This is also fixing a bootstrap failure on i686-pc-linux-gnu (on the 
fwprop tree).

Paolo



More information about the Gcc-patches mailing list