|
From: <sv...@va...> - 2011-06-07 22:58:12
|
Author: tom
Date: 2011-06-07 23:53:21 +0100 (Tue, 07 Jun 2011)
New Revision: 11802
Log:
Define _GNU_SOURCE for access to CLONE_XXX flags with gibc 2.14 headers.
Based on patch from Dmitry Djachenko <di...@gm...>.
Modified:
trunk/memcheck/tests/linux/stack_switch.c
trunk/memcheck/tests/x86-linux/scalar.c
trunk/memcheck/tests/x86-linux/scalar.stderr.exp
Modified: trunk/memcheck/tests/linux/stack_switch.c
===================================================================
--- trunk/memcheck/tests/linux/stack_switch.c 2011-06-07 22:44:09 UTC (rev 11801)
+++ trunk/memcheck/tests/linux/stack_switch.c 2011-06-07 22:53:21 UTC (rev 11802)
@@ -1,5 +1,6 @@
#define _XOPEN_SOURCE 600
#define _BSD_SOURCE
+#define _GNU_SOURCE
#include <stdio.h>
Modified: trunk/memcheck/tests/x86-linux/scalar.c
===================================================================
--- trunk/memcheck/tests/x86-linux/scalar.c 2011-06-07 22:44:09 UTC (rev 11801)
+++ trunk/memcheck/tests/x86-linux/scalar.c 2011-06-07 22:53:21 UTC (rev 11802)
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
#include "../../memcheck.h"
#include "scalar.h"
#include <unistd.h>
Modified: trunk/memcheck/tests/x86-linux/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/x86-linux/scalar.stderr.exp 2011-06-07 22:44:09 UTC (rev 11801)
+++ trunk/memcheck/tests/x86-linux/scalar.stderr.exp 2011-06-07 22:53:21 UTC (rev 11802)
@@ -578,25 +578,25 @@
...
Address 0x........ is 0 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param sigaction(act->sa_mask) points to unaddressable byte(s)
...
Address 0x........ is 4 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param sigaction(act->sa_flags) points to unaddressable byte(s)
...
Address 0x........ is 8 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param sigaction(oldact) points to unaddressable byte(s)
...
Address 0x........ is 0 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
-----------------------------------------------------
68: __NR_sgetmask n/a
@@ -1228,13 +1228,13 @@
...
Address 0x........ is 0 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param sigprocmask(oldset) points to unaddressable byte(s)
...
Address 0x........ is 0 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
-----------------------------------------------------
127: __NR_create_module ni
@@ -1747,7 +1747,7 @@
...
Address 0x........ is 4 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param rt_sigaction(act->sa_mask) points to unaddressable byte(s)
...
@@ -1757,13 +1757,13 @@
...
Address 0x........ is 8 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
Syscall param rt_sigaction(oldact) points to unaddressable byte(s)
...
Address 0x........ is 4 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: main (scalar.c:28)
+ by 0x........: main (scalar.c:30)
-----------------------------------------------------
175: __NR_rt_sigprocmask 4s 2m
|