Valgrind: r16345 - in /trunk/coregrind: m_machine.c m_syswrap/syswrap-mips32-linux.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Valgrind: r16345 - in /trunk/coregrind: m_machine.c m_syswrap/syswrap-mips32-linux.c

svn-2
Author: petarj
Date: Tue May  9 16:57:59 2017
New Revision: 16345

Log:
mips: reduce compiler warnings

Compiler complained about

warning: implicit declaration of function ‘vgPlain_prctl’

in coregrind/m_machine.c.

Also, it complained about

warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_before’
[-Wmissing-prototypes]
warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_after’
[-Wmissing-prototypes]

in coregrind/m_syswrap/syswrap-mips32-linux.c

This change fixes those issues.

Modified:
    trunk/coregrind/m_machine.c
    trunk/coregrind/m_syswrap/syswrap-mips32-linux.c

Modified: trunk/coregrind/m_machine.c
==============================================================================
--- trunk/coregrind/m_machine.c (original)
+++ trunk/coregrind/m_machine.c Tue May  9 16:57:59 2017
@@ -34,6 +34,7 @@
 #include "pub_core_libcbase.h"
 #include "pub_core_libcfile.h"
 #include "pub_core_libcprint.h"
+#include "pub_core_libcproc.h"
 #include "pub_core_mallocfree.h"
 #include "pub_core_machine.h"
 #include "pub_core_cpuid.h"
@@ -1675,7 +1676,7 @@
      }
 
 #    if defined(VGP_mips32_linux)
-     Int fpmode = VG_(prctl)(VKI_PR_GET_FP_MODE);
+     Int fpmode = VG_(prctl)(VKI_PR_GET_FP_MODE, 0, 0, 0, 0);
 #    else
      Int fpmode = -1;
 #    endif

Modified: trunk/coregrind/m_syswrap/syswrap-mips32-linux.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-mips32-linux.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-mips32-linux.c Tue May  9 16:57:59 2017
@@ -411,6 +411,7 @@
 DECL_TEMPLATE (mips_linux, sys_set_thread_area);
 DECL_TEMPLATE (mips_linux, sys_pipe);
 DECL_TEMPLATE (mips_linux, sys_prctl);
+DECL_TEMPLATE (mips_linux, sys_ptrace);
 
 PRE(sys_mmap2)
 {


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers