NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sh3/59466 (new gmake crashes when trying to build libxml2)



The following reply was made to PR port-sh3/59466; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sh3/59466 (new gmake crashes when trying to build libxml2)
Date: Sat, 14 Jun 2025 13:34:31 +0200

 I hacked around it (as I urgently needed a new libxml2) by the patch 
 below - of course that is incorrect and disables the optimization this
 thing is all about, so not commitable.
 
 Martin
 
 --- hash.c.orig	2022-11-13 16:38:50.000000000 +0100
 +++ hash.c	2025-06-14 12:46:56.273417363 +0200
 @@ -106,6 +106,13 @@ hash_find_slot (struct hash_table *ht, c
          {
            if (key == *slot)
              return slot;
 +
 +	  /* hack around port-sh3/59466 */
 +	  const char *k = (const char *)key;
 +	  const char *s = (const char *)*slot;
 +	  if (k[0] == s[0] && k[1] == 0 && s[1] == 0)
 +	    return slot;
 +
            if ((*ht->ht_compare) (key, *slot) == 0)
              return slot;
            ht->ht_collisions++;
 


Home | Main Index | Thread Index | Old Index