c-common.h (enum cxx_dialect): Add cxx_unset.
commit129211bc889a6ea7109b4391a3640f42b7c050c6
authorJason Merrill <jason@redhat.com>
Sun, 10 May 2015 00:47:12 +0000 (9 20:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 10 May 2015 00:47:12 +0000 (9 20:47 -0400)
treeabc6b9a35cdb67ca394fce8184e12cc975701e3b
parent381bf11ee990736088f97d64e10ed1a406b4e28a
c-common.h (enum cxx_dialect): Add cxx_unset.

gcc/c-family/
* c-common.h (enum cxx_dialect): Add cxx_unset.
* c-common.c (cxx_dialect): Initialize to cxx_unset.
* c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
gcc/testsuite/
* lib/target-supports.exp (cxx_default): New global.
(check_effective_target_c++11_only)
(check_effective_target_c++14_only)
(check_effective_target_c++98_only)
(check_effective_target_c++1z_only): Check it.

From-SVN: r222977
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c-family/c-opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp