From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4CA353858D39; Sat, 7 Jan 2023 22:00:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CA353858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673128819; bh=0vM6csO0/nZkHQ6z1wMBeWLHbYAl5AwwrjbTWkLkG+s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dLn+NEk0SOJIHpc6svsqwHM+/1IiGTAAp91b2t9jfsKZ2ikv9gyo1LRa+yZWyBVts ZMalYwCdi6Lt7eQcb5aN8a9Y1t8cB5KO7EDjZ3bExiq8v9wRIm2N6+PLQqo4hNY765 a97/q+jJwj50Gk+w5BMUgGdoQR0yOR/ivGUpjYmo= From: "euloanty at live dot com" To: gdb-prs@sourceware.org Subject: [Bug build/29966] Cannot build anymore for win32 thread model of gdb Date: Sat, 07 Jan 2023 22:00:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: euloanty at live dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29966 --- Comment #13 from cqwrteur --- (In reply to Jonathan Wakely from comment #12) > For libstdc++ I have no interest whatsoever in supporting Windows 98 and > other dinosaurs. The win32 thread model that was previously completely > non-functional now supports C++11 std::mutex etc. but only for "Windows > Vista and Server 2008 or later" (to quote the comment in gthr-win32.h). If > you define _WIN32_WINNT to an older value, you can't use std::mutex etc. > That's not "something also wrong with gcc and libstdc++ too", it's just > reality. >=20 > So if GDB wants to use threads for a mingw target that uses > --enable-threads=3Dwin32 (rather than --enable-thread=3Dposix via > libwinpthreads) then it needs to target Vista or Server 2008 or later. > Otherwise, if it wants to target older versions of Windows, then it needs= to > not use std::mutex etc. but you can make std::conditional_variable a nop if __GTHR_COND is not defi= ned to prevent silent breakage right? --=20 You are receiving this mail because: You are on the CC list for the bug.=