Commit 0dadf728 by Jason Merrill Committed by Jason Merrill

g++-dg.exp (g++-dg-runtest): Change -std=c++1y to -std=c++14.

	* lib/g++-dg.exp (g++-dg-runtest): Change -std=c++1y to -std=c++14.
	* lib/target-supports.exp (check_effective_target_c++14_only): Likewise.

From-SVN: r217085
parent 0caee3ca
2014-11-04 Jason Merrill <jason@redhat.com>
* lib/g++-dg.exp (g++-dg-runtest): Change -std=c++1y to -std=c++14.
* lib/target-supports.exp (check_effective_target_c++14_only): Likewise.
2014-11-04 Andrew Stubbs <ams@codesourcery.com> 2014-11-04 Andrew Stubbs <ams@codesourcery.com>
gcc/testsuite/ gcc/testsuite/
......
...@@ -43,9 +43,9 @@ proc g++-dg-runtest { testcases flags default-extra-flags } { ...@@ -43,9 +43,9 @@ proc g++-dg-runtest { testcases flags default-extra-flags } {
# if there's a dg-options line. # if there's a dg-options line.
if ![search_for $test "-std=*++"] { if ![search_for $test "-std=*++"] {
if [search_for $test "dg-options"] { if [search_for $test "dg-options"] {
set option_list { -std=gnu++98 -std=gnu++11 -std=gnu++1y } set option_list { -std=gnu++98 -std=gnu++11 -std=gnu++14 }
} else { } else {
set option_list { -std=c++98 -std=c++11 -std=c++1y } set option_list { -std=c++98 -std=c++11 -std=c++14 }
} }
} else { } else {
set option_list { "" } set option_list { "" }
......
...@@ -5706,7 +5706,7 @@ proc check_effective_target_c++14_only { } { ...@@ -5706,7 +5706,7 @@ proc check_effective_target_c++14_only { } {
if ![check_effective_target_c++] { if ![check_effective_target_c++] {
return 0 return 0
} }
return [check-flags { { } { } { -std=c++1y -std=gnu++1y -std=c++14 -std=gnu++14 } }] return [check-flags { { } { } { -std=c++14 -std=gnu++14 -std=c++14 -std=gnu++14 } }]
} }
proc check_effective_target_c++14 { } { proc check_effective_target_c++14 { } {
......
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