diff options
author | Tom de Vries <tdevries@suse.de> | 2023-08-29 17:27:19 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-08-29 17:27:19 +0200 |
commit | 62b28bd6688c933b9ffa56f53be1f827450625a7 (patch) | |
tree | fbaa4d218b25357d897c7cd1ad4759089809d946 /gdb/testsuite/gdb.fortran | |
parent | ee12f46f45cd2dd6a7638d1bdc6534301a9c55ba (diff) | |
download | binutils-62b28bd6688c933b9ffa56f53be1f827450625a7.zip binutils-62b28bd6688c933b9ffa56f53be1f827450625a7.tar.gz binutils-62b28bd6688c933b9ffa56f53be1f827450625a7.tar.bz2 |
[gdb/testsuite] Handle some test-cases with older compiler
When running test-case gdb.mi/print-simple-values.exp with gcc 4.8.4, I run
into a compilation failure due to the test-case requiring c++11 and the
compiler defaulting to less than that.
Fix this by compiling with -std=c++11.
Likewise in a few other test-cases.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.fortran')
-rw-r--r-- | gdb/testsuite/gdb.fortran/mixed-lang-stack.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp index 5fc36f7..3973f68 100644 --- a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp +++ b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp @@ -30,7 +30,7 @@ standard_testfile mixed-lang-stack.c mixed-lang-stack.cpp mixed-lang-stack.f90 if {[prepare_for_testing_full "failed to prepare" \ [list ${binfile} {debug f90 additional_flags=-lstdc++} \ $srcfile {debug} \ - $srcfile2 {debug c++} \ + $srcfile2 {debug c++ additional_flags=-std=c++11} \ $srcfile3 {debug f90}]]} { return -1 } |