-# Copyright 2015-2018 Free Software Foundation, Inc.
+# Copyright 2015-2021 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+if {[skip_ifunc_tests]} {
+ return 0
+}
+
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
}
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
}