From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GeRxEwZh/2pzNyEAWB0awg (envelope-from ) for ; Thu, 19 Nov 2026 15:50:14 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=bJ/DxYgs; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3BB291E0BC; Thu, 19 Nov 2026 15:50:14 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 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 BE8D51E023 for ; Thu, 19 Nov 2026 15:50:12 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F20D14BA23C8 for ; Thu, 19 Nov 2026 20:50:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F20D14BA23C8 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=bJ/DxYgs Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id C2FB24BA2E22 for ; Thu, 19 Nov 2026 20:49:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C2FB24BA2E22 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C2FB24BA2E22 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::22d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795121386; cv=none; b=aAf3UvfsAE4J3p6lplKBfh9XmoxRf0uPO8T9HKTisD7jGQIDJdINGW9LJa7CG/5Fg+/+wUm4QWMT4FlRbXjORC0znbnHNm6LL3f4QL+UOGeOKz5tlbHgWi2y25MzeBuSJYpcYzrW6DwPMq0hrfOboTI/JGf2CMUuC5gqaoCPBQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795121386; c=relaxed/simple; bh=1FHKl6TATHRverNHmxaWENs8pVtKInuikxbh+L3Hw5Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=H2t1sFpco4Bn7U73KXTxe+owhvg885/JVYYZ+ezjA7q4o5hWK+Iqoqhp+70B6o0uM6X4zS3qsQltJh6TZ7jzX28mk86gPc+mkoz0oSux/QH4DrVxqxYX73OXCryRVh/2cP/hHhTFGFvjFDTH9wvubkyinOt2sxlAsclyVaxi248= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=bJ/DxYgs DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2FB24BA2E22 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-55e0090c580so117958b6e.3 for ; Thu, 19 Nov 2026 12:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1795121386; x=1795726186; darn=sourceware.org; h=content-type:mime-version:user-agent:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=StCKX5kfIpSPGnKkMjALlOogGYQ8E7fgptfxfIRNCP4=; b=bJ/DxYgsoXEKQfcuwG54dNVHYH5SrJ14F1/Hqf64xTpM3v10CAuiveyykliBrU0SL+ p8tTMrVFB1La5h8RdtoXYNopj05M7Dh4sPBTA0uVwIBP6K0pQMloNFsi7/UcGsrFw+sB E1zyG+nvz1WSjCMsuJFFhi9PykGfRmWq/cICANSeZHDUiUISSndFrLWZ5uWdUoFgAG27 P5p5pHyhUczMHLY8x6qBl9YUX+teg8BRYmYSa1DkI8sTNkyDn5SoqiBZiFhH0WonbJFx H+2ETSgLT6rPet1HCFHDFBExZI/DmY6Dn97qCiPbPYljC2vjtAEw4R4AZBpTY0vEH53l Um7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795121386; x=1795726186; h=content-type:mime-version:user-agent:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=StCKX5kfIpSPGnKkMjALlOogGYQ8E7fgptfxfIRNCP4=; b=hGj0arSHf35HiNwuPeS3px0EcOIzo9HrUsx51M5c2Bjt943SCMS+79X1UXVgDOI93O LF+0RfFL5u4TGfN/W4vZNeq04hpnTcYDuBggPx16u6u0Jr59YklAlmvZRhQhkcoG+Uej lRxtHo8Mo8TK6Y8gdZX3kNyNB51bWOFWPSaobYCDGfrLIt9IcO2Dwn6YVZE1bte/zZT0 HOwfvlHB7Xo5aMWZ/4B6+lYFo6I+wyUrYtOs/0x2+xpkP38GRP40rZQpWwE+ui8kq55r PkbMsAE5BhFn8EvL8fk+9Mbm10h9xlS597Jec03t0VVtm5uNuf5JMlI07fmdqCX3YQUf ZMEg== X-Gm-Message-State: APuU4Z/SVzNTqUkE7CmnKZNrCVeHWW4vZq8n9esJB//wzAG9cnJkmrxU PLLzqHmVgEatrhNgTWfd6enT5JCE2AhfrOx5g0jkPhUz3v7VQcwIOYCghEMi6TIlQ4F4n9Ev/+r DzWBGzQ== X-Gm-Gg: AYBFou1/Tfpt1xWvUGVtRh/Mc9iLFvFCsSMCcMbpvsfLcz4uIk7JZARbTI5rjTP8A3P mfM8sv6LUj3tyRxMUJP9SyNkcX+mQqzMdQqy4FJ0E0JGokWoVtUfJ39m8sxodjDFcX3BUz29xNs H4Fi7f+feoywxHlIOOZYy6XVL3xe8oUnjVqbgl+hSAILS/HqN1wogpQ8D0iY4gHZiusXAHZcASZ YNq7dne/HurUOe6xjbx1HE6CKfbWOkryMd1RJoFf8iPOzFkFVCAARLVyQsG4aead/39mbMXgQBB ZfmkvPXF2iM98xaQWwcoATUg9dKtOiN3PwXvFINPkZSExl+b/LjpTMJ7empu3HxQWzbsctgkHrf hZvMwlmHoYEgkC5yYaVsrmDkbPIZmoWke1b9NaoycKFLPV2ianbjUx5wdoCrA3xoUuLegdThtTU aN5D4l43jk9/eOqYJ3abaFqbRcR53wQaPL2ZQb2ES9ajFgPev36WWF3ZrszmYIenaBqnRrCqYfm 0dHI2QjxKcZy9RwuUoFf2e1Xm5X+KBszbwS03tz/6uOhMPpcQDH9Jv/1x1wxu5M2A0Fk9f6o1DI tFZpCcZU3iXvZDJ6jAlXIY8DyLhuYXsxnX2BmG2iQq1kxzYDzq8U X-Received: by 2002:a05:6808:1923:b0:55e:fa63:7001 with SMTP id 5614622812f47-57a0ac2f81dmr1822581b6e.36.1795121386053; Thu, 19 Nov 2026 12:49:46 -0800 (PST) Received: from bapiya (97-122-110-129.hlrn.qwest.net. [97.122.110.129]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57a34763004sm440820b6e.8.2026.11.19.12.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 12:49:45 -0800 (PST) From: Tom Tromey To: Nikita.Venkatesh@arm.com Cc: gdb-patches@sourceware.org, nd@arm.com Subject: Re: [PATCH] Default to Vista APIs (0x0600) when _WIN32_WINNT is undefined In-Reply-To: <20261119175605.3837218-1-Nikita.Venkatesh@arm.com> (Nikita Venkatesh's message of "Thu, 19 Nov 2026 17:56:05 +0000") References: <20261119175605.3837218-1-Nikita.Venkatesh@arm.com> X-Attribution: Tom Date: Thu, 19 Nov 2026 13:49:44 -0700 Message-ID: <87y0aoy2af.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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 >>>>> Nikita Venkatesh writes: > GCC13 added win32 C++11 threading support that requires > Windows Vista (0x0600) condition variable APIs. GDB's > XP default hides the required declarations, causing > GDB compilation to fail. > With --enable-threading, configure stops with an error. With automatic > detection, configure disables GDB threading, but compilation later > fails because other libstdc++ headers still require those declarations. > The following discussions were considered: > https://sourceware.org/pipermail/gdb/2022-November/050448.html > https://sourceware.org/pipermail/gdb-patches/2024-May/209176.html Please read: https://sourceware.org/pipermail/gdb-patches/2021-October/182443.html That note is the reason the code is this way. Locally at AdaCore we just patch this to use 0x0602, since we don't need XP support. So while I'm sympathetic to your patch, it's hard to see how we would ever land it. Supposedly you can get this same effect by configuring with CXXFLAGS='-D...' but I have not ever tried this. I feel like we discussed an idea of trying to include the relevant headers and, if this fails, disable threading. But TBH I don't know if that's even desirable. > Default to 0x0600 only when _WIN32_WINNT is undefined. Preserve the > existing XP minimum for already defined and higher values. This is a twist on the earlier approach but I'm not sure it's any more acceptable. Tom