Update copyright year range in all GDB files
[binutils-gdb.git] / gdb / testsuite / gdb.compile / compile-ifunc.exp
index 979e39147e7f12f5f4947223deec6addcdb91684..811f62331a88fc1f8525a80b01370f1951914f0b 100644 (file)
@@ -1,4 +1,4 @@
-# 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
     }
 
@@ -47,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
     }