diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2018-03-08 10:26:24 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-03-08 09:26:24 +0000 |
commit | 24b830b6cde4ed227661d29ba985565f23a2bf96 (patch) | |
tree | 43d9d3376d6d71d9038c32e6706b43d8a196da50 /gcc | |
parent | de341bf0fbfddec8a7c0711ac5503a55f7aaf6dc (diff) | |
download | gcc-24b830b6cde4ed227661d29ba985565f23a2bf96.zip gcc-24b830b6cde4ed227661d29ba985565f23a2bf96.tar.gz gcc-24b830b6cde4ed227661d29ba985565f23a2bf96.tar.bz2 |
Fix ifunc detection in target-supports.exp file.
2018-03-08 Thomas Schwinge <thomas@codesourcery.com>
* lib/target-supports.exp: Do not return zero from a ifunc
function.
From-SVN: r258362
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d3535d..3d12b6b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-08 Thomas Schwinge <thomas@codesourcery.com> + + * lib/target-supports.exp: Do not return zero from a ifunc + function. + 2018-03-08 Richard Biener <rguenther@suse.de> PR tree-optimization/84746 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 8479290..a3ce690 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -448,8 +448,9 @@ proc check_ifunc_available { } { #ifdef __cplusplus extern "C" { #endif - typedef void F (void); - F* g (void) { return 0; } + extern void f_ (); + typedef void F (void); + F* g (void) { return &f_; } void f () __attribute__ ((ifunc ("g"))); #ifdef __cplusplus } |