c++ - How do I tell which version of g++ is the earliest version that uses `atomic` instead of `cstdatomic`? -
i have 1 system runs g++ 4.4.7
, supports #include <cstdatomic>
. have system runs g++ 4.9.1
, supports #include <atomic>
.
how can discover earliest version of g++
supports <atomic>
, or conversely latest version of g++
supports <cstdatomic>
, without building compilers , doing manual search?
more broadly, how can answer question arbitrary system header x?
there gcc git mirror these things. <cstdatomic>
first appears in april 2008 this commit , disappears in december 2009 this one. far can tell, <atomic>
appears in same commit. looking @ tags, latter round time when gcc 4.5 released, , sure enough, browsing through source trees, <cstdatomic>
disappears 4.5 (but kept in later 4.4 releases) , <atomic>
appears in place.
addendum: place in source tree libstdc++v3/include/
. <cstdatomic>
in c_global
, <atomic>
in std
.
Comments
Post a Comment