From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from confino.investici.org (confino.investici.org [IPv6:2a11:7980:1::2:0]) by sourceware.org (Postfix) with ESMTPS id 600C13856DC0; Fri, 21 Oct 2022 12:34:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 600C13856DC0 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=autistici.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=autistici.org Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by confino.investici.org (Postfix) with ESMTP id 4Mv3n02nLBz1109; Fri, 21 Oct 2022 12:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1666355652; bh=cRGMijvtpmP0O43YIsWWAvFZs5UzfNn+YAa8lUEyAWk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dR7Q2vbtvboJJYbc2fYlrQLibHWtLi4xAQi1fFQRpFIEnqzAmZHxGXRlQKGguF693 xS99aqr/Og8rjRsr7lFQRpDc/XbtdK5eIX7m/91ZnBPKxo65O1EOQuhCwenLAnmJrU 3sootRjHOAxkS0uaBVSqBhrokBn7k5khFg1opjzM= Received: from 1.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: i.nixman@autistici.org) by 1.mail-backend.investici.org (Postfix) with ESMTPA id 4Mv3n013Ytz5sjW; Fri, 21 Oct 2022 12:34:12 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 21 Oct 2022 12:34:12 +0000 From: i.nixman@autistici.org To: LIU Hao Cc: Wakely , libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org, Eric Botcazou Subject: Re: Adding a new thread model to GCC In-Reply-To: <496a1d58-674a-cdb2-1e00-873bd5870ac3@126.com> References: <0f1f223a-3756-1da3-bd1d-b87edd34e1f9@126.com> <7277b1d9a835d8cc651ab112eac8c2e7@autistici.org> <3d80a59c-39f4-85e0-3558-062ddcd5ece7@126.com> <496a1d58-674a-cdb2-1e00-873bd5870ac3@126.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: i.nixman@autistici.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2022-10-21 12:19, LIU Hao wrote: > 在 2022/10/21 19:54, i.nixman@autistici.org 写道: > Jacek Caban, who is also a mingw-w64 developer, expressed the same > idea a few days ago. > > While integrating mcfgthread into gcc is practically possible, my > concerns are: > > * GCC never provides a threading library. It always depends on glibc, > musl, win32 APIs, winpthreads, etc. I think you didn't understand me. I mean not to integrate your library into GCC as real separate library. I mean to do changes on config/i386/gthr-win32.h+config/i386/gthr-win32.c+config/i386/gthr-win32-cond.c etc using your code to have an implementation of everything needed for C/C++ threads on Windows. > * Tampering with the win32 thread model in a dramatic way is not > acceptiable due to backwards compatibility. There are distributions > that have win32 as the default thread model, such as Debian. > > * I personally need more control for future development, for example, > re-implement pthread or adding libcxx support, which doesn't fit in > GCC. got it... anyway it seems logical to me the way I proposed :) best!