Fix ifunc detection.
authorMartin Liska <mliska@suse.cz>
Fri, 26 Jan 2018 15:27:14 +0000 (16:27 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 26 Jan 2018 15:27:14 +0000 (15:27 +0000)
2018-01-26  Martin Liska  <mliska@suse.cz>

* lib/target-supports.exp: Return a value, otherwise -Wreturn-type
warning is seen.

From-SVN: r257094

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 56e1271..3a5c840 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-26  Martin Liska  <mliska@suse.cz>
+
+       * lib/target-supports.exp: Return a value, otherwise -Wreturn-type
+       warning is seen.
+
 2018-01-26  Will Schmidt  <will_schmidt@vnet.ibm.com>
 
        * gcc.target/powerpc/fold-vec-neg-longlong.h:  New.
index 2451423..c2ec93b 100644 (file)
@@ -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
        }