This is the mail archive of the gcc@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: bootstrap failure on i686-pc-linux-gnu


> Does this help?
> 
> @@ -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,
> 

Your patch fixes this bootstrap problem (unfortunately there are currently 
others) for s390 and s390x.

Here in a different patch format:

Index: gcc/dwarf2out.c
===================================================================
*** gcc/dwarf2out.c.orig        2006-04-18 14:18:27.000000000 +0200
--- gcc/dwarf2out.c     2006-04-18 14:20:36.000000000 +0200
*************** prune_unused_types_update_strings (dw_di
*** 13998,14006 ****
        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->common.flags & SECTION_MERGE) != 0))
          {
            void ** slot;
            slot = htab_find_slot_with_hash (debug_str_hash, s->str,
--- 13998,14005 ----
        s->refcount++;
        /* Avoid unnecessarily putting strings that are used less than
           twice in the hash table.  */
!       if (s->refcount
!           == ((DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) ? 1 : 2))
          {
            void ** slot;
            slot = htab_find_slot_with_hash (debug_str_hash, s->str,


Bye,

-Andreas-


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