public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* why does gccgit require pthread?
@ 2022-11-07  3:58 LIU Hao
  2022-11-07  4:37 ` Andrew Pinski
  0 siblings, 1 reply; 14+ messages in thread
From: LIU Hao @ 2022-11-07  3:58 UTC (permalink / raw)
  To: gcc


[-- Attachment #1.1: Type: text/plain, Size: 673 bytes --]

Greetings,

At the moment, there are references to pthread mutexes in 'gcc/jit/libgccjit.cc' and 
'gcc/git/jit-playback.cc'. The former was introduced by 63b2923dc6f57e74d964a9cf14f4ba595ab14ed9 in 
2020, while the latter was introduced by 38771e4e1fdacfbdac5a14e50fcc0538577b1bdb in 2014.

Does this mean, GCC can't be built with JIT enabled, for some thread model other than `posix` (e.g. 
`win32`), where pthread isn't available?

Can those references to mutexes be replaced with `__gthread_mutex_*` instead? However I see no other 
references to <gthr.h> inside the 'gcc' subdirectory, so I suspect it isn't an option there?


-- 
Best regards,
LIU Hao

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-11-19 12:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07  3:58 why does gccgit require pthread? LIU Hao
2022-11-07  4:37 ` Andrew Pinski
2022-11-07  6:50   ` LIU Hao
2022-11-07  7:03     ` Andrew Pinski
2022-11-07  7:10       ` LIU Hao
2022-11-07 12:57     ` Jonathan Wakely
2022-11-07 13:33       ` LIU Hao
2022-11-07 13:51         ` Jonathan Wakely
2022-11-11 17:16           ` Jonathan Wakely
2022-11-11 18:27             ` Jonathan Wakely
2022-11-15 18:50             ` why does gcc jit " David Malcolm
2022-11-15 19:01               ` Jonathan Wakely
2022-11-19 11:27                 ` Jonathan Wakely
2022-11-19 12:51                   ` LIU Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).