mailing list of musl libc
 help / color / mirror / code / Atom feed
* __STDC_NO_THREADS__
@ 2013-12-15 23:36 Shawn Landden
  2013-12-16  0:46 ` __STDC_NO_THREADS__ Shawn Landden
  2013-12-16  0:58 ` __STDC_NO_THREADS__ Rich Felker
  0 siblings, 2 replies; 3+ messages in thread
From: Shawn Landden @ 2013-12-15 23:36 UTC (permalink / raw)
  To: musl

we need to define __STDC_NO_THREADS__ like glibc for C11 compat.

-Shawn

see page 376 of c11 standard


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

* Re: __STDC_NO_THREADS__
  2013-12-15 23:36 __STDC_NO_THREADS__ Shawn Landden
@ 2013-12-16  0:46 ` Shawn Landden
  2013-12-16  0:58 ` __STDC_NO_THREADS__ Rich Felker
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Landden @ 2013-12-16  0:46 UTC (permalink / raw)
  To: musl

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769

On Sun, Dec 15, 2013 at 3:36 PM, Shawn Landden <shawn@churchofgit.com> wrote:
> we need to define __STDC_NO_THREADS__ like glibc for C11 compat.
>
> -Shawn
>
> see page 376 of c11 standard


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

* Re: __STDC_NO_THREADS__
  2013-12-15 23:36 __STDC_NO_THREADS__ Shawn Landden
  2013-12-16  0:46 ` __STDC_NO_THREADS__ Shawn Landden
@ 2013-12-16  0:58 ` Rich Felker
  1 sibling, 0 replies; 3+ messages in thread
From: Rich Felker @ 2013-12-16  0:58 UTC (permalink / raw)
  To: musl

On Sun, Dec 15, 2013 at 03:36:39PM -0800, Shawn Landden wrote:
> we need to define __STDC_NO_THREADS__ like glibc for C11 compat.
> 
> -Shawn
> 
> see page 376 of c11 standard

This requires support from the compiler (in the form of pre-including
stdc-predef.h) which is only available in gcc 4.8 and later. Adding it
is on the agenda (not sure if this is documented anywhere) for
predefined macros other than __STDC_NO_THREADS__.

As for __STDC_NO_THREADS__, the intent is to implement the
functionality rather than documenting it as unsupported, but if it
remains missing when we add stdc-predef.h, we could define it there.

Rich


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

end of thread, other threads:[~2013-12-16  0:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-15 23:36 __STDC_NO_THREADS__ Shawn Landden
2013-12-16  0:46 ` __STDC_NO_THREADS__ Shawn Landden
2013-12-16  0:58 ` __STDC_NO_THREADS__ Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).