diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 409f44ca9d..7b88b3a469 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-05-06 Tom de Vries + + * gdb.compile/compile-ifunc.exp: Use -Wno-attribute-alias. + 2020-05-04 Tom de Vries * gdb.base/async.exp: Check whether instruction addresses are a diff --git a/gdb/testsuite/gdb.compile/compile-ifunc.exp b/gdb/testsuite/gdb.compile/compile-ifunc.exp index ff81e2f87a..9239c5adf1 100644 --- a/gdb/testsuite/gdb.compile/compile-ifunc.exp +++ b/gdb/testsuite/gdb.compile/compile-ifunc.exp @@ -19,9 +19,16 @@ if {[skip_ifunc_tests]} { standard_testfile +get_compiler_info +set flags "" +if [test_compiler_info gcc*] { + set flags additional_flags=-Wno-attribute-alias +} + with_test_prefix "nodebug" { - if { [prepare_for_testing "failed to prepare" "$testfile-nodebug" $srcfile {}] } { + if { [prepare_for_testing "failed to prepare" "$testfile-nodebug" \ + $srcfile $flags] } { return -1 } @@ -51,7 +58,8 @@ with_test_prefix "nodebug" { with_test_prefix "debug" { - if { [prepare_for_testing "failed to prepare" "$testfile-debug" $srcfile] } { + if { [prepare_for_testing "failed to prepare" "$testfile-debug" \ + $srcfile "debug $flags"] } { return -1 }