This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][OBVIOUS] Fix ifunc detection.
- From: Martin Liška <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 26 Jan 2018 16:24:48 +0100
- Subject: [PATCH][OBVIOUS] Fix ifunc detection.
- Authentication-results: sourceware.org; auth=none
Hi.
This fixes detection of ifunc target capability.
I'm going to install the patch.
Martin
gcc/testsuite/ChangeLog:
2018-01-26 Martin Liska <mliska@suse.cz>
* lib/target-supports.exp: Return a value, otherwise -Wreturn-type
warning is seen.
---
gcc/testsuite/lib/target-supports.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 24514233cea..c2ec93b9c80 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -449,7 +449,7 @@ proc check_ifunc_available { } {
extern "C" {
#endif
typedef void F (void);
- F* g (void) {}
+ F* g (void) { return 0; }
void f () __attribute__ ((ifunc ("g")));
#ifdef __cplusplus
}