delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2022/05/25/14:15:08

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 2002:a05:622a:87:b0:2fb:c893:2a35 with SMTP id o7-20020a05622a008700b002fbc8932a35mr1125460qtw.94.1653501190923;
Wed, 25 May 2022 10:53:10 -0700 (PDT)
X-Received: by 2002:a81:d0c:0:b0:2f1:49ec:3eac with SMTP id
12-20020a810d0c000000b002f149ec3eacmr33486337ywn.451.1653501190714; Wed, 25
May 2022 10:53:10 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 25 May 2022 10:53:10 -0700 (PDT)
In-Reply-To: <224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.254.94; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.254.94
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n AT googlegroups DOT com> <224eb9dc-337e-f78f-ea4e-58bb15eb580b AT gmail DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: "janezz55 (janezz55 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Wed, 25 May 2022 17:53:10 +0000
X-Received-Bytes: 1686
Bytes: 1974
Lines: 7
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Surprisingly, configuring gcc with --enable-threads is actually possible, but 
> it did require a small patch to Pth. The executables it produces however, will 
> not run. A thread-aware libgcc will try to lock a mutex in 
> __register_frame_info(), which is invoked from crt0 before __crt1_startup(). 
> But locking a mutex involves a whole series of libc functions that rely on 
> things like _dos_ds, which are only initialized from __crt1_startup(). 

patch libgcc? Why would it want to lock a mutex anyway?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019