aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/m-static.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/m-static.exp')
-rw-r--r--gdb/testsuite/gdb.cp/m-static.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp
index 8260ca3..1593203 100644
--- a/gdb/testsuite/gdb.cp/m-static.exp
+++ b/gdb/testsuite/gdb.cp/m-static.exp
@@ -31,8 +31,14 @@ if [get_compiler_info] {
return -1
}
+set flags [list debug c++]
+if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
+ # Work around PR gcc/101452.
+ lappend flags additional_flags=-fno-eliminate-unused-debug-types
+}
+
if {[prepare_for_testing "failed to prepare" $testfile \
- [list $srcfile $srcfile2] {debug c++}]} {
+ [list $srcfile $srcfile2] $flags]} {
return -1
}