tinycc-devel
[Top][All Lists]
Advanced

[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: UnknownGamer40464 .
Subject: Re: [Tinycc-devel] C11 __STD_NO_THREADS__ and __STD_NO_ATOMICS__ are not defined
Date: Fri, 10 Jan 2020 12:37:29 -0500

Oh whoops.

You're right, sorry for wasting time.

Thanks for responding.

On Fri, Jan 10, 2020 at 12:12 AM Christian Jullien <address@hidden> wrote:

Hi,

 

C11 defines thoses macros (section 6.10.8.3) 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)

 

C.

 

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.

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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