This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][OBVIOUS] Fix ifunc detection.


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
 	}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]