https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81852
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Sat Sep 9 14:32:25 2017 New Revision: 251939 URL: https://gcc.gnu.org/viewcvs?rev=251939&root=gcc&view=rev Log: PR c++/81852 define feature-test macro for -fthreadsafe-statics gcc/c-family: PR c++/81852 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. gcc/testsuite: PR c++/81852 * g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init. * g++.dg/cpp1y/feat-cxx14.C: Likewise. * g++.dg/cpp1y/feat-cxx98.C: Likewise. * g++.dg/cpp1y/feat-neg.C: Likewise. * g++.dg/cpp1z/feat-cxx1z.C: Likewise. Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-cppbuiltin.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C trunk/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C trunk/gcc/testsuite/g++.dg/cpp1y/feat-neg.C trunk/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C