[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] C11 __STD_NO_THREADS__ and __STD_NO_ATOMICS__ are not

From: Christian Jullien
Subject: Re: [Tinycc-devel] C11 __STD_NO_THREADS__ and __STD_NO_ATOMICS__ are not defined
Date: Fri, 10 Jan 2020 06:12:26 +0100



C11 defines thoses macros (section with __STDC_ prefix (not __STD_) and they exist with tcc when you pass –std=c11 flag. They are undefined with default flags.


See libtcc.c(1842)




From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=address@hidden] On Behalf Of UnknownGamer40464 .
Sent: Friday, January 10, 2020 05:44
To: address@hidden
Subject: [Tinycc-devel] C11 __STD_NO_THREADS__ and __STD_NO_ATOMICS__ are not defined


These macros do not appear to be defined by the compiler, resulting in code that selects for custom implementations instead using the nonexistent standard versions anyways, despite the compiler not supporting either one.


Without these definitions, I can't have TCC select for a custom implementation of the C11 threading or atomics API.


Would it be possible to have the compiler define them?


Also thanks for all your work so far keeping TCC alive.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]