From: Martin Liska Date: Fri, 26 Jan 2018 15:27:14 +0000 (+0100) Subject: Fix ifunc detection. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98abdf3a03768a9e6fbbabd156d3d994fe9315e8;p=gcc.git Fix ifunc detection. 2018-01-26 Martin Liska * lib/target-supports.exp: Return a value, otherwise -Wreturn-type warning is seen. From-SVN: r257094 --- 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 }