Hi.

This fixes detection of ifunc target capability.
I'm going to install the patch.

Martin

gcc/testsuite/ChangeLog:

2018-01-26  Martin Liska  <mli...@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
 	}

Reply via email to