[Bug c++/81852] Feature request: __cpp_threadsafe_static_init
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 11 10:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81852
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Sep 11 10:44:11 2017
New Revision: 251975
URL: https://gcc.gnu.org/viewcvs?rev=251975&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.
Modified:
branches/gcc-5-branch/gcc/c-family/ChangeLog
branches/gcc-5-branch/gcc/c-family/c-cppbuiltin.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-cxx98.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/feat-neg.C
More information about the Gcc-bugs
mailing list