From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aRT1OO+X/2iasgsAWB0awg (envelope-from ) for ; Mon, 27 Oct 2025 12:03:59 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=R3uO62XA; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D0E721E0BC; Mon, 27 Oct 2025 12:03:59 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 E9E5B1E04C for ; Mon, 27 Oct 2025 12:03:58 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 747C23858CDB for ; Mon, 27 Oct 2025 16:03:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 747C23858CDB Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=R3uO62XA Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id C86853858D20 for ; Mon, 27 Oct 2025 16:03:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C86853858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C86853858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761581004; cv=none; b=GLvmLuf/TwR4ikijBv84PfNycY/gugod9/Ff2PIon/IinM6WC0/XwTpMzxzfRqpHnV5pAkYMkL7KOzumSdSjf0KXf/P33aEhRbqvpsBaemQQqZYxEZ+uG6nuznlK3wypTXHfa3FvbSTAXYgUBGeNsRwmRFqAtUqx4QswDUk8lV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761581004; c=relaxed/simple; bh=Sji5vp/OFpBkhR7vPqydGYkbnMtbfFrR0lbzS2frIRc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=gA+LH9Psl/qljl9zDXpPUH+csZ+f2sSP3FLXRJ+5FDMOsDkbr3dv1w6WAkwVt9lUWRhhSIZQUKCBtA000EObpjVjH1aywKtYU6LNzby2hSsep2stYstaxsZq2X6tuH7xVC1jA8yt3Yw9CEB7uVgv+R24996sZUPf20tstOF1NBc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C86853858D20 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 59RG3C2Q143504 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Oct 2025 12:03:17 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 59RG3C2Q143504 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1761580997; bh=xXgGnmVPPg2nyz46v1w0qy5BGfZNwnJlw0qZ7EUQgPg=; h=Date:Subject:To:From:In-Reply-To:From; b=R3uO62XA9NT2vDd3FPgL5rlI8WD0/1+WBrqaur7nJvaLEQVBotanngDgqPyC/cXK7 f7BQpO9FMVm9GnqE2RG0hpJWtZsAFql4+JUNgbZGamkiD1i5n66n4WrBVRCoj0As1j CJvbvK9my4C2XXH0d8WL6Gw6P7sJfGTHAO0GDQAUSRX9YLJDElmyXIwrCVX+mm8TA6 Ki93IFqazSW27/1su1LUZqAFZKkG4PFxBptGXEz6nnCj0dwzzN1hwXd3FSo28ccZaA 2PWEAa1cUSVqRWELpxvJmSZA/qHZmGhJYkOXSKAcLuyQDaONDT3Rj65tvY8okvqJMA LhwBUHYZ+J4hA== Received: by simark.ca (Postfix) id E9D631E04C; Mon, 27 Oct 2025 12:03:11 -0400 (EDT) Message-ID: <208b4287-6668-407f-a9b0-a84aa18e12d6@polymtl.ca> Date: Mon, 27 Oct 2025 12:03:11 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdbsupport: bump unordered_dense library to 4.6.0 To: Pedro Alves , Hannes Domani , "gdb-patches@sourceware.org" References: <20251008161047.1381033-1-simon.marchi@polymtl.ca> <1362579628.1523332.1759945710904@mail.yahoo.com> Content-Language: fr From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 27 Oct 2025 16:03:12 +0000 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 On 10/8/25 3:19 PM, Pedro Alves wrote: > Hi! > > On 2025-10-08 18:48, Hannes Domani wrote: > >>> +// includes , which fails to compile if >>> +// targeting GCC >= 13 with the (rewritten) win32 thread model, and >>> +// targeting Windows earlier than Vista (0x600). GCC predefines >>> +// _REENTRANT when using the 'posix' model, and doesn't when using the >>> +// 'win32' model. >>> +# if defined __MINGW64__ && defined __GNUC__ && __GNUC__ >= 13 && !defined _REENTRANT >>> +// _WIN32_WINNT is guaranteed to be defined here because of the >>> +// inclusion above. >>> +# ifndef _WIN32_WINNT >>> +# error "_WIN32_WINNT not defined" >>> +# endif >>> +# if _WIN32_WINNT < 0x600 >>> +# define ANKERL_MEMORY_RESOURCE_IS_BAD() 1 // NOLINT(cppcoreguidelines-macro-usage) >>> +# endif >>> +# endif >>> +# ifndef ANKERL_MEMORY_RESOURCE_IS_BAD >>> +# define ANKERL_MEMORY_RESOURCE_IS_BAD() 0 // NOLINT(cppcoreguidelines-macro-usage) >>> +# endif >> >> This mentions '(rewritten) win32' and 'posix' thread models. > > The win32 thread model was completely rewritten in GCC 13, that's what I meant > by '(rewritten) win32'. It seems like this isn't very common knowledge, which IMHO leads > to people still using other models when they probably don't need to. > > See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115105 > >> What about the 'mcf' thread model, > > No sure. I've never used it. Did that ever make it to GCC upstream? I'm under the impression it did not. > > I don't really know if there is still a point in using that model vs stock win32 since GCC 13. > >> or is that meant with 'rewritten win32'? > > No. > > Pedro Alves > I just remembered about this patch. I was not sure if this discussion was going to go further, so I didn't push the patch right away at the time, but I just pushed it now. In the mean time, there were some 4.7.0 and 4.8.0 releases, but I didn't see anything we needed in there. Simon