When building gdb on ubuntu 16.04 with gcc 5.4.0, and running the gdb
testsuite we run into a failure due align.exp requiring at least c++11.
Fix this by adding -std=c++11.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-05-22 Tom de Vries <tdevries@suse.de>
* gdb.base/align.exp: Require c++11.
+2019-05-22 Tom de Vries <tdevries@suse.de>
+
+ * gdb.base/align.exp: Require c++11.
+
2019-05-22 Tom de Vries <tdevries@suse.de>
PR testsuite/24586
set filename [prepare_test_source_file $lang]
+ set flags {debug}
+ if { "$lang" == "c++" } {
+ lappend flags "additional_flags=-std=c++11"
+ }
standard_testfile $filename
- if {[prepare_for_testing "failed to prepare" "$lang/$testfile" $srcfile {debug}]} {
+ if {[prepare_for_testing "failed to prepare" "$lang/$testfile" $srcfile $flags]} {
return -1
}