From 98abdf3a03768a9e6fbbabd156d3d994fe9315e8 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 26 Jan 2018 16:27:14 +0100 Subject: [PATCH] Fix ifunc detection. 2018-01-26 Martin Liska * lib/target-supports.exp: Return a value, otherwise -Wreturn-type warning is seen. From-SVN: r257094 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 56e12714905..3a5c840cdc7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-26 Martin Liska + + * lib/target-supports.exp: Return a value, otherwise -Wreturn-type + warning is seen. + 2018-01-26 Will Schmidt * gcc.target/powerpc/fold-vec-neg-longlong.h: New. 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 } -- 2.30.2