From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GYT1BKlVkGqBugYAWB0awg (envelope-from ) for ; Thu, 27 Aug 2026 11:20:09 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZTWJ3cS3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0F98F1E166; Thu, 27 Aug 2026 11:20:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 176AF1E033 for ; Thu, 27 Aug 2026 11:20:08 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4DB954B9DB49 for ; Thu, 27 Aug 2026 15:20:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DB954B9DB49 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZTWJ3cS3 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 491834BA9035 for ; Thu, 27 Aug 2026 15:19:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 491834BA9035 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 491834BA9035 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787843970; cv=none; b=L3TQ/bxNVHyM0LXX+3n/dl8lFl4y+LYQS0bHF/SqFuFpuXMbl9sPc5LSOAuaa04bNjvSYOQJjHrE5LltMstsa7nigrVHOJuVcrc60W+yP6AZ6jPxRabOM5Gd6t7nkIu1yYMZZnR8zFejQoCej+LxN4m5wIprrRg1Z0ZAZhY92ww= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787843970; c=relaxed/simple; bh=8tvH5GkXzvwt/KCeayVejtoEESb+CyaFwDkC/ZzpO74=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RwRz6IzsDiCR5nSh3fYXsULOj7UBE5X3YTFx6hkp6Hh5hM4+Ar/BflpbVmVP+0VaqKqj+wfbLsytHXlAG1/v4zishFqjl3CX4uRn/vwDVqjk8TxD0gHLoP0BaWnVTYV8+TIZV8/PKifAVgYrmg7X1Pxdc+fT/TJtHKrMZqSqiOM= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZTWJ3cS3 reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 491834BA9035 Received: from eig-obgw-5003b.ext.cloudfilter.net ([10.0.29.155]) by cmsmtp with ESMTPS id zU5jwiwZnusRSzbt2w4bnN; Thu, 27 Aug 2026 15:19:29 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id zbt1w7HLiMSoYzbt2wA9pC; Thu, 27 Aug 2026 15:19:28 +0000 X-Authority-Analysis: v=2.4 cv=E9TNpbdl c=1 sm=1 tr=0 ts=6a905580 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Sv0fKeRqtYgA:10 a=ItBw4LHWJt0A:10 a=Ep2RuCC1g5aWyQxo9qkA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8tvH5GkXzvwt/KCeayVejtoEESb+CyaFwDkC/ZzpO74=; b=ZTWJ3cS3NsTrD2j7HREh6ld4JO LZLdeg+pA6P8N3EK6ACKdrhysiXJ3x5LwXlqD+9pTFItStZtjX5yxCFmA1E+BIt2ynff2vtu9cKZX lg3QS9P54puY+ajhYgck2+D3H; Received: from 97-122-117-2.hlrn.qwest.net ([97.122.117.2]:43774 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from ) id 1wzbt1-00000002ti0-1WYe; Thu, 27 Aug 2026 09:19:27 -0600 From: Tom Tromey To: Jan Dubiec Cc: gdb-patches@sourceware.org, Jeffrey Law Subject: Re: [PATCH] H8/300: sim: Fix simulator hang caused by qsort on Windows/MinGW. In-Reply-To: (Jan Dubiec's message of "Sun, 23 Aug 2026 22:50:38 +0200") References: <20260822110423.1569154-1-jdx@o2.pl> X-Attribution: Tom Date: Thu, 27 Aug 2026 09:19:26 -0600 Message-ID: <878q5rbngh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.117.2 X-Source-L: No X-Exim-ID: 1wzbt1-00000002ti0-1WYe X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-117-2.hlrn.qwest.net (bapiya) [97.122.117.2]:43774 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKdxrP+fZFK4q6acrV6PragmarB5IVZyFP0zezTWjlPONhuIFPAuU3o8bGmyysyC3jw4NpjwsI+tU5pAR4XfRjDeqC4fIl6gLvG2IBt/8ZzdXRUnzzcM jeCj+Y7VZAdEu9tJ4SsnoC5knK9fCV/dxJ5nRrFPEIBxlMaUbz2gs0p/SxJnf4k+JPMVMs3kwX1ha194rqonYjgnbFZjW4mWGkQ= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Jan" == Jan Dubiec writes: Jan> So I think the best solution is to use a sorting algorithm known to be Jan> stable on every host, e.g. the insertion sort implementation from my Jan> previous message. Would it be possible to change the comparison function to be stable? I think it would be somewhat nicer not to have a separate sort implementation. If that's too hard, though, I think your approach is fine. Tom