From: Tom de Vries Date: Wed, 22 May 2019 16:13:04 +0000 (+0200) Subject: [gdb/testsuite] Require c++11 for gdb.base/align.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af1a8d038798bef11471e28d999ad1687312a6a7;p=binutils-gdb.git [gdb/testsuite] Require c++11 for gdb.base/align.exp 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 * gdb.base/align.exp: Require c++11. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0110953f2e8..2f90b874d49 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-05-22 Tom de Vries + + * gdb.base/align.exp: Require c++11. + 2019-05-22 Tom de Vries PR testsuite/24586 diff --git a/gdb/testsuite/gdb.base/align.exp b/gdb/testsuite/gdb.base/align.exp index e3ca0470e94..8fe209e07c0 100644 --- a/gdb/testsuite/gdb.base/align.exp +++ b/gdb/testsuite/gdb.base/align.exp @@ -135,8 +135,12 @@ proc run_alignment_test { lang } { 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 }