C11 in GCC?

前端 未结 4 1817
情书的邮戳
情书的邮戳 2020-12-03 04:36

I’m trying to compile some C11 code using thread.h, but I can’t. I\'ve recompiled GCC (running 4.6.2 now), and I’m trying to compile with gcc -std=c1x fil

4条回答
  •  臣服心动
    2020-12-03 05:34

    Further information about this can be found here.

    ... (Atomics - stdatomic.h - are optional, and will probably need to wait for associated language features to be implemented in GCC 4.8. I'd guess that the optional threading interfaces in threads.h and bounds-checking interfaces in Annex K aren't wanted for glibc for now, although they could potentially go in separate libraries.

    My guess is that we won't see this implemented for quite some time, at least not in standard glibc and gcc (sourced post provides some insight). My personal guess is something like one year, it will take probably something like 2 years until it will be stable enough for production use. Thats 2k14 (assert(survival_2012)) :P

提交回复
热议问题