gdb/testsuite/ChangeLog 2016-09-11 Jan Kratochvil * gdb.base/stap-probe.exp (stap_test_no_debuginfo): Try to use -fno-ipa-icf. diff --git a/gdb/testsuite/gdb.base/stap-probe.exp b/gdb/testsuite/gdb.base/stap-probe.exp index df46e80..9258926 100644 --- a/gdb/testsuite/gdb.base/stap-probe.exp +++ b/gdb/testsuite/gdb.base/stap-probe.exp @@ -97,8 +97,11 @@ proc stap_test_no_debuginfo {exec_name {arg ""}} { global testfile hex if {[prepare_for_testing ${testfile}.exp ${exec_name} ${testfile}.c \ - {$arg nodebug optimize=-O2}]} { - return -1 + {$arg nodebug optimize=-O2 "additional_flags=-fno-ipa-icf"}]} { + if {[prepare_for_testing ${testfile}.exp ${exec_name} ${testfile}.c \ + {$arg nodebug optimize=-O2}]} { + return -1 + } } if {[runto "-pstap test:user"]} {