diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-ifunc.exp | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 409f44c..7b88b3a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-05-06 Tom de Vries <tdevries@suse.de> + + * gdb.compile/compile-ifunc.exp: Use -Wno-attribute-alias. + 2020-05-04 Tom de Vries <tdevries@suse.de> * 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 ff81e2f..9239c5a 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 } |