diff options
author | Jason Merrill <jason@redhat.com> | 2012-03-21 01:09:41 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-03-21 01:09:41 -0400 |
commit | 552b8185be26149ffcc8c879f4644d52aa1c85a8 (patch) | |
tree | 9106f53126560094c079914853af9d31398a04a7 /gcc/c-family/c-common.h | |
parent | c19267cbaf0188acd862e628b72fb32e68d08d48 (diff) | |
download | gcc-552b8185be26149ffcc8c879f4644d52aa1c85a8.tar.gz |
c-common.h (enum cxx_dialect): Add cxx1y.
* c-common.h (enum cxx_dialect): Add cxx1y.
* c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
test.
* c-cppbuiltin.c (c_cpp_builtins): Likewise.
* c-opts.c (c_common_post_options): Likewise.
(set_std_cxx1y): New.
(c_common_handle_option): Call it.
* c.opt (-std=c++1y, -std=gnu++1y): New flags.
cp/
* lex.c (init_reswords): Use >= for cxx_dialect test.
* parser.c (cp_parser_exception_specification_opt): Likewise.
testsuite/
* lib/target-supports.exp: Add { target c++1y }.
From-SVN: r185596
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r-- | gcc/c-family/c-common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index 835b13bbce8..8552f0c92e9 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -649,7 +649,9 @@ enum cxx_dialect { cxx03 = cxx98, /* C++11 */ cxx0x, - cxx11 = cxx0x + cxx11 = cxx0x, + /* C++1y (C++17?) */ + cxx1y }; /* The C++ dialect being used. C++98 is the default. */ |