PR c++/81852 define feature-test macro for -fthreadsafe-statics
authorJonathan Wakely <jwakely@redhat.com>
Sat, 9 Sep 2017 14:32:25 +0000 (15:32 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 9 Sep 2017 14:32:25 +0000 (15:32 +0100)
commit019bf9ada3c2e58041e50d087ae564fbb812f096
treebce5f25cfe28ea2d0cbb5aeaecdc66cbd8e6ddf1
parentb40e004839cdec5991295561829bb41747e98d32
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.

From-SVN: r251939
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
gcc/testsuite/g++.dg/cpp1y/feat-neg.C
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C