|
From: Petar J. <pe...@so...> - 2017-08-17 18:09:30
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=b343cc638a058f325d766a91e14a4afd40b305e5 commit b343cc638a058f325d766a91e14a4afd40b305e5 Author: Petar Jovanovic <mip...@gm...> Date: Thu Aug 17 20:08:17 2017 +0200 mips32: finetune vfp test to avoid compiler warnings This patch removes two compiler warnings from the test: vfp.c: In function 'handler': vfp.c:260:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0); ^ vfp.c:260:4: warning: incompatible implicit declaration of built-in function 'exit' vfp.c: At top level: vfp.c:258:13: warning: 'handler' defined but not used [-Wunused-function] static void handler(int sig) ^ Diff: --- none/tests/mips32/vfp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/none/tests/mips32/vfp.c b/none/tests/mips32/vfp.c index 9412457..3d03c02 100644 --- a/none/tests/mips32/vfp.c +++ b/none/tests/mips32/vfp.c @@ -3,6 +3,7 @@ #include <signal.h> #include <stdint.h> #include <stdio.h> +#include <stdlib.h> unsigned int mem[] = { 0x4095A266, 0x66666666, @@ -246,6 +247,7 @@ float mem1f[] = { out); \ } +#if (__mips==32) && (__mips_isa_rev>=2) && (__mips_fpr==64 || __mips_fpr==xx) #define TEST_FPU64 \ __asm__ __volatile__( \ "cvt.l.s $f0, $f0" "\n\t" \ @@ -258,6 +260,7 @@ static void handler(int sig) { exit(0); } +#endif void ppMem(double *m, int len) { |