/[gentoo-x86]/dev-util/valgrind/files/valgrind-3.3.1-local-labels.patch
Gentoo

Contents of /dev-util/valgrind/files/valgrind-3.3.1-local-labels.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 13 20:29:40 2008 UTC (5 years, 11 months ago) by griffon26
Branch: MAIN
Fix error during compilation of tests for valgrind (bug #234644)
(Portage version: 2.2_rc3/cvs/Linux 2.6.26 x86_64)

1 diff -ruN valgrind-3.3.1/none/tests/x86/jcxz.c valgrind-3.3.1-fixed/none/tests/x86/jcxz.c
2 --- valgrind-3.3.1/none/tests/x86/jcxz.c 2008-06-01 03:38:58.000000000 +0200
3 +++ valgrind-3.3.1-fixed/none/tests/x86/jcxz.c 2008-08-13 22:18:42.000000000 +0200
4 @@ -11,12 +11,12 @@
5 __asm__ __volatile__(
6 "movl %0,%%ecx\n\t"
7 "movl $0,%%eax\n"
8 - ".Lxyzzy1:\n\t"
9 - "jcxz .Lfoobar1\n\t"
10 + "0:\n\t"
11 + "jcxz 1f\n\t"
12 "addl $1, %%eax\n\t"
13 "subl $1, %%ecx\n\t"
14 - "jmp .Lxyzzy1\n"
15 - ".Lfoobar1:\n\t"
16 + "jmp 0b\n"
17 + "1:\n\t"
18 "movl %%eax, %1"
19 : /*out*/ : /*in*/ "m"(block[0]),
20 "m"(block[1]) : /*trash*/ "eax","ecx","cc","memory"
21 @@ -32,12 +32,12 @@
22 __asm__ __volatile__(
23 "movl %0,%%ecx\n\t"
24 "movl $0,%%eax\n"
25 - ".Lxyzzy2:\n\t"
26 - "jecxz .Lfoobar2\n\t"
27 + "0:\n\t"
28 + "jecxz 1f\n\t"
29 "addl $1, %%eax\n\t"
30 "subl $1, %%ecx\n\t"
31 - "jmp .Lxyzzy2\n"
32 - ".Lfoobar2:\n\t"
33 + "jmp 0b\n"
34 + "1:\n\t"
35 "movl %%eax, %1"
36 : /*out*/ : /*in*/ "m"(block[0]),
37 "m"(block[1]) : /*trash*/ "eax","ecx","cc","memory"

  ViewVC Help
Powered by ViewVC 1.1.20