Commit 028aee17 by Jason Merrill Committed by Jason Merrill

c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for -std=c++14 and -std=gnu++14...

	* c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
	-std=c++14 and -std=gnu++14, rather than the reverse.
	* c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
	OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
	* c-common.h (cxx_dialect): Remove cxx1y.

From-SVN: r214414
parent 3f0d5131
2014-08-25 Jason Merrill <jason@redhat.com>
* c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
-std=c++14 and -std=gnu++14, rather than the reverse.
* c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
* c-common.h (cxx_dialect): Remove cxx1y.
2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
* c-common.h (enum cxx_dialect): Add cxx14. * c-common.h (enum cxx_dialect): Add cxx14.
......
...@@ -640,9 +640,8 @@ enum cxx_dialect { ...@@ -640,9 +640,8 @@ enum cxx_dialect {
/* C++11 */ /* C++11 */
cxx0x, cxx0x,
cxx11 = cxx0x, cxx11 = cxx0x,
/* C++14 */ /* C++14 */
cxx1y, cxx14,
cxx14 = cxx1y,
/* C++1z (C++17?) */ /* C++1z (C++17?) */
cxx1z cxx1z
}; };
......
...@@ -698,12 +698,12 @@ c_common_handle_option (size_t scode, const char *arg, int value, ...@@ -698,12 +698,12 @@ c_common_handle_option (size_t scode, const char *arg, int value,
} }
break; break;
case OPT_std_c__1y: case OPT_std_c__14:
case OPT_std_gnu__1y: case OPT_std_gnu__14:
if (!preprocessing_asm_p) if (!preprocessing_asm_p)
{ {
set_std_cxx14 (code == OPT_std_c__1y /* ISO */); set_std_cxx14 (code == OPT_std_c__14 /* ISO */);
if (code == OPT_std_c__1y) if (code == OPT_std_c__14)
cpp_opts->ext_numeric_literals = 0; cpp_opts->ext_numeric_literals = 0;
} }
break; break;
...@@ -1587,7 +1587,7 @@ set_std_cxx11 (int iso) ...@@ -1587,7 +1587,7 @@ set_std_cxx11 (int iso)
cxx_dialect = cxx11; cxx_dialect = cxx11;
} }
/* Set the C++ 201y draft standard (without GNU extensions if ISO). */ /* Set the C++ 2014 draft standard (without GNU extensions if ISO). */
static void static void
set_std_cxx14 (int iso) set_std_cxx14 (int iso)
{ {
......
...@@ -1440,11 +1440,12 @@ C++ ObjC++ Alias(std=c++11) Undocumented ...@@ -1440,11 +1440,12 @@ C++ ObjC++ Alias(std=c++11) Undocumented
Deprecated in favor of -std=c++11 Deprecated in favor of -std=c++11
std=c++1y std=c++1y
C++ ObjC++ C++ ObjC++ Alias(std=c++14) Undocumented
Conform to the ISO 2014(?) C++ draft standard (experimental and incomplete support) Deprecated in favor of -std=c++14
std=c++14 std=c++14
C++ ObjC++ Alias(std=c++1y) Undocumented C++ ObjC++ Undocumented
Conform to the ISO 2014 C++ standard (experimental and incomplete support)
std=c++1z std=c++1z
C++ ObjC++ C++ ObjC++
...@@ -1496,11 +1497,11 @@ C++ ObjC++ Alias(std=gnu++11) ...@@ -1496,11 +1497,11 @@ C++ ObjC++ Alias(std=gnu++11)
Deprecated in favor of -std=gnu++11 Deprecated in favor of -std=gnu++11
std=gnu++1y std=gnu++1y
C++ ObjC++ C++ ObjC++ Alias(std=gnu++14) Undocumented
Conform to the ISO 201y(4?) C++ draft standard with GNU extensions (experimental and incomplete support)
std=gnu++14 std=gnu++14
C++ ObjC++ Alias(std=gnu++1y) Undocumented C++ ObjC++
Conform to the ISO 2014 C++ standard with GNU extensions (experimental and incomplete support)
std=gnu++1z std=gnu++1z
C++ ObjC++ C++ ObjC++
......
...@@ -248,10 +248,10 @@ static GTY(()) bool cold_text_section_used = false; ...@@ -248,10 +248,10 @@ static GTY(()) bool cold_text_section_used = false;
/* The default cold text section. */ /* The default cold text section. */
static GTY(()) section *cold_text_section; static GTY(()) section *cold_text_section;
/* The DIE for C++1y 'auto' in a function return type. */ /* The DIE for C++14 'auto' in a function return type. */
static GTY(()) dw_die_ref auto_die; static GTY(()) dw_die_ref auto_die;
/* The DIE for C++1y 'decltype(auto)' in a function return type. */ /* The DIE for C++14 'decltype(auto)' in a function return type. */
static GTY(()) dw_die_ref decltype_auto_die; static GTY(()) dw_die_ref decltype_auto_die;
/* Forward declarations for functions defined in this file. */ /* Forward declarations for functions defined in this file. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment