mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Rename to allow_ifunc_tests
This changes skip_ifunc_tests to invert the sense, and renames it to allow_ifunc_tests.
This commit is contained in:
parent
e379cbb128
commit
4675859351
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests !skip_ifunc_tests
|
||||
require !skip_shlib_tests allow_ifunc_tests
|
||||
|
||||
standard_testfile .c
|
||||
set staticexecutable ${testfile}-static
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
load_lib compile-support.exp
|
||||
|
||||
require !skip_ifunc_tests
|
||||
require allow_ifunc_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -3972,17 +3972,17 @@ gdb_caching_proc has_int128_cxx {
|
||||
return [gdb_int128_helper c++]
|
||||
}
|
||||
|
||||
# Return true if the IFUNC feature is unsupported.
|
||||
gdb_caching_proc skip_ifunc_tests {
|
||||
# Return true if the IFUNC feature is supported.
|
||||
gdb_caching_proc allow_ifunc_tests {
|
||||
if [gdb_can_simple_compile ifunc {
|
||||
extern void f_ ();
|
||||
typedef void F (void);
|
||||
F* g (void) { return &f_; }
|
||||
void f () __attribute__ ((ifunc ("g")));
|
||||
} object] {
|
||||
return 0
|
||||
} else {
|
||||
return 1
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user