+2015-12-02 Jason Merrill <jason@redhat.com>
+
+ * Make-lang.in (check-c++1z, check-c++-all): New.
+
2015-12-02 Markus Trippelsdorf <markus@trippelsdorf.de>
PR c++/67337
# check targets. However, our DejaGNU framework requires 'check-g++' as its
# entry point. We feed the former to the latter here.
check-c++ : check-g++
-# Run the testsute in C++0x mode.
-check-c++0x:
- @echo Normal 'make check' now runs the testsuite in C++11 mode as well as C++98.
+
+# Run the testsuite in C++1z mode.
+check-c++1z:
+ $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) --stds=1z" check-g++
+
+# Run the testsuite in all standard conformance levels.
+check-c++-all:
+ $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) --stds=98,11,14,1z" check-g++
+
# Run the testsuite with garbage collection at every opportunity.
check-g++-strict-gc:
$(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) --extra_opts,--param,ggc-min-heapsize=0,--param,ggc-min-expand=0" \
+2015-12-02 Jason Merrill <jason@redhat.com>
+
+ * lib/g++.exp: Handle --stds= option.
+ * lib/g++-dg.exp (g++-dg-runtest): Use it.
+
2015-12-02 Tobias Burnus <burnus@net-b.de>
Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
# if there's a dg-options line.
if ![search_for $test "-std=*++"] {
if [search_for $test "dg-options"] {
- set option_list { -std=gnu++98 -std=gnu++11 -std=gnu++14 }
+ set std_prefix "-std=gnu++"
} else {
- set option_list { -std=c++98 -std=c++11 -std=c++14 }
+ set std_prefix "-std=c++"
+ }
+
+ global gpp_std_list
+ if { [llength $gpp_std_list] > 0 } {
+ set std_list $gpp_std_list
+ } else {
+ set std_list { 98 11 14 }
+ }
+ set option_list { }
+ foreach x $std_list {
+ lappend option_list "${std_prefix}$x"
}
} else {
set option_list { "" }
set gpp_compile_options ""
+set gpp_std_list { }
#
# g++_version -- extract and print the version number of the compiler
}
verbose -log "gpp_compile_options set to $gpp_compile_options"
return 1
+ } elseif [regexp "^--stds=" $option] {
+ global gpp_std_list
+ regsub "^--stds=" $option "" option
+ foreach x [split $option ","] {
+ lappend gpp_std_list "$x"
+ }
+ verbose -log "gpp_std_list set to $gpp_std_list"
+ return 1
} else {
return 0
}