You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(17) |
2
(11) |
3
(6) |
4
(6) |
|
5
(10) |
6
(5) |
7
(3) |
8
(7) |
9
(4) |
10
(4) |
11
(3) |
|
12
(3) |
13
(17) |
14
(18) |
15
(32) |
16
(22) |
17
(18) |
18
(10) |
|
19
(4) |
20
(3) |
21
(8) |
22
(15) |
23
(32) |
24
(28) |
25
(18) |
|
26
(20) |
27
(16) |
28
(28) |
29
(28) |
30
(27) |
|
|
|
From: <sv...@va...> - 2009-04-24 23:55:22
|
Author: njn Date: 2009-04-25 00:55:10 +0100 (Sat, 25 Apr 2009) New Revision: 9618 Log: Merge r9617 (unbreak pushfpopf on Linux) from the trunk. Modified: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S Modified: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S =================================================================== --- branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 23:49:58 UTC (rev 9617) +++ branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 23:55:10 UTC (rev 9618) @@ -5,6 +5,9 @@ .text .align 4 .globl VG_SYM_ASM(fooble) +#if defined(VGO_linux) + .type VG_SYM_ASM(fooble),@function +#endif VG_SYM_ASM(fooble): pushl %ebp movl %esp, %ebp @@ -37,4 +40,7 @@ popl %ebp ret .Lfe1: +#if defined(VGO_linux) + .size VG_SYM_ASM(fooble),.Lfe1-VG_SYM_ASM(fooble) +#endif .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |
|
From: <sv...@va...> - 2009-04-24 23:50:09
|
Author: njn Date: 2009-04-25 00:49:58 +0100 (Sat, 25 Apr 2009) New Revision: 9617 Log: Unbreak pushfpopf on Linux. Modified: trunk/memcheck/tests/x86/pushfpopf_s.S Modified: trunk/memcheck/tests/x86/pushfpopf_s.S =================================================================== --- trunk/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 23:20:09 UTC (rev 9616) +++ trunk/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 23:49:58 UTC (rev 9617) @@ -5,6 +5,9 @@ .text .align 4 .globl VG_SYM_ASM(fooble) +#if defined(VGO_linux) + .type VG_SYM_ASM(fooble),@function +#endif VG_SYM_ASM(fooble): pushl %ebp movl %esp, %ebp @@ -37,4 +40,7 @@ popl %ebp ret .Lfe1: +#if defined(VGO_linux) + .size VG_SYM_ASM(fooble),.Lfe1-VG_SYM_ASM(fooble) +#endif .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |
|
From: <sv...@va...> - 2009-04-24 23:20:16
|
Author: njn Date: 2009-04-25 00:20:09 +0100 (Sat, 25 Apr 2009) New Revision: 9616 Log: Put files in alphabetical order. Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 23:18:43 UTC (rev 9615) +++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 23:20:09 UTC (rev 9616) @@ -32,8 +32,8 @@ fprem \ fxsave \ more_x86_fp \ + pushfpopf \ pushfw_x86 \ - pushfpopf \ pushpopmem \ sse_memory \ tronical \ |
|
From: <sv...@va...> - 2009-04-24 23:18:49
|
Author: njn
Date: 2009-04-25 00:18:43 +0100 (Sat, 25 Apr 2009)
New Revision: 9615
Log:
Merge r9609 (DRD tweak) from the trunk.
Modified:
branches/DARWIN/drd/drd_bitmap.c
branches/DARWIN/drd/drd_bitmap.h
Modified: branches/DARWIN/drd/drd_bitmap.c
===================================================================
--- branches/DARWIN/drd/drd_bitmap.c 2009-04-24 23:16:49 UTC (rev 9614)
+++ branches/DARWIN/drd/drd_bitmap.c 2009-04-24 23:18:43 UTC (rev 9615)
@@ -489,38 +489,42 @@
/* start on an UWord boundary, start clearing the first addresses. */
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
+#endif
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(c_next <= b_next);
- tl_assert(c <= c_next);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(c_next <= b_next);
+ tl_assert(c <= c_next);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
- VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
+ VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
- }
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
+ tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
+#endif
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
}
}
@@ -570,15 +574,15 @@
#endif
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
@@ -586,29 +590,26 @@
#endif
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
#endif
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
- }
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
}
}
@@ -645,7 +646,7 @@
b_next = (b & ~ADDR0_MASK) + ADDR0_COUNT;
if (b_next > a2)
{
- b_next = a2;
+ b_next = a2;
}
if (p2 == 0)
@@ -659,15 +660,15 @@
#endif
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
@@ -675,29 +676,26 @@
#endif
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
#endif
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
- }
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
}
}
Modified: branches/DARWIN/drd/drd_bitmap.h
===================================================================
--- branches/DARWIN/drd/drd_bitmap.h 2009-04-24 23:16:49 UTC (rev 9614)
+++ branches/DARWIN/drd/drd_bitmap.h 2009-04-24 23:18:43 UTC (rev 9615)
@@ -137,9 +137,9 @@
{
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 < ADDR0_COUNT);
- tl_assert(size > 0);
+ tl_assert(size >= 0);
tl_assert(a1 + size <= ADDR0_COUNT);
- tl_assert(UWORD_MSB(a1) == UWORD_MSB(a1 + size - 1));
+ tl_assert(size == 0 || UWORD_MSB(a1) == UWORD_MSB(a1 + size - 1));
#endif
bm0[a1 >> BITS_PER_BITS_PER_UWORD]
&= ~((((UWord)1 << size) - 1) << UWORD_LSB(a1));
|
|
From: <sv...@va...> - 2009-04-24 23:17:10
|
Author: njn
Date: 2009-04-25 00:16:49 +0100 (Sat, 25 Apr 2009)
New Revision: 9614
Log:
Make more_x86_fp compile on Darwin. It gives the wrong stdout, though, not
sure why.
Modified:
branches/DARWIN/memcheck/tests/x86/Makefile.am
branches/DARWIN/memcheck/tests/x86/more_x86_fp.c
Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 21:49:11 UTC (rev 9613)
+++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 23:16:49 UTC (rev 9614)
@@ -31,6 +31,7 @@
fpeflags \
fprem \
fxsave \
+ more_x86_fp \
pushfw_x86 \
pushfpopf \
pushpopmem \
@@ -42,8 +43,7 @@
# be moved into x86-linux/.
if ! VGCONF_OS_IS_DARWIN
check_PROGRAMS += \
- int3-x86 \
- more_x86_fp
+ int3-x86
endif
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
Modified: branches/DARWIN/memcheck/tests/x86/more_x86_fp.c
===================================================================
--- branches/DARWIN/memcheck/tests/x86/more_x86_fp.c 2009-04-24 21:49:11 UTC (rev 9613)
+++ branches/DARWIN/memcheck/tests/x86/more_x86_fp.c 2009-04-24 23:16:49 UTC (rev 9614)
@@ -187,8 +187,8 @@
for(i=0;i<8;i++)
dtab[i] = i + 1;
- TEST_ENV(&float_env16, "data16 fnstenv", "data16 fldenv");
- TEST_ENV(&float_env16, "data16 fnsave", "data16 frstor");
+ TEST_ENV(&float_env16, "data16/fnstenv", "data16/fldenv");
+ TEST_ENV(&float_env16, "data16/fnsave", "data16/frstor");
TEST_ENV(&float_env32, "fnstenv", "fldenv");
TEST_ENV(&float_env32, "fnsave", "frstor");
|
|
From: <sv...@va...> - 2009-04-24 21:49:16
|
Author: njn Date: 2009-04-24 22:49:11 +0100 (Fri, 24 Apr 2009) New Revision: 9613 Log: Merge r9612 (make pushfpopf work on Darwin) from the DARWIN branch. Modified: trunk/memcheck/tests/x86/pushfpopf_s.S Modified: trunk/memcheck/tests/x86/pushfpopf_s.S =================================================================== --- trunk/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 21:17:12 UTC (rev 9612) +++ trunk/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 21:49:11 UTC (rev 9613) @@ -1,11 +1,11 @@ - .file "twoparams.c" +#include "tests/asm.h" + .version "01.01" gcc2_compiled.: .text .align 4 -.globl fooble - .type fooble,@function -fooble: +.globl VG_SYM_ASM(fooble) +VG_SYM_ASM(fooble): pushl %ebp movl %esp, %ebp movl 8(%ebp), %eax @@ -37,5 +37,4 @@ popl %ebp ret .Lfe1: - .size fooble,.Lfe1-fooble .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |
|
From: <sv...@va...> - 2009-04-24 21:17:18
|
Author: njn
Date: 2009-04-24 22:17:12 +0100 (Fri, 24 Apr 2009)
New Revision: 9612
Log:
Make pushfpopf work on Darwin.
Modified:
branches/DARWIN/memcheck/tests/x86/Makefile.am
branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S
Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611)
+++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 21:17:12 UTC (rev 9612)
@@ -32,6 +32,7 @@
fprem \
fxsave \
pushfw_x86 \
+ pushfpopf \
pushpopmem \
sse_memory \
tronical \
@@ -42,8 +43,7 @@
if ! VGCONF_OS_IS_DARWIN
check_PROGRAMS += \
int3-x86 \
- more_x86_fp \
- pushfpopf
+ more_x86_fp
endif
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
Modified: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S
===================================================================
--- branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 20:17:07 UTC (rev 9611)
+++ branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 21:17:12 UTC (rev 9612)
@@ -1,11 +1,11 @@
- .file "twoparams.c"
+#include "tests/asm.h"
+
.version "01.01"
gcc2_compiled.:
.text
.align 4
-.globl fooble
- .type fooble,@function
-fooble:
+.globl VG_SYM_ASM(fooble)
+VG_SYM_ASM(fooble):
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
@@ -37,5 +37,4 @@
popl %ebp
ret
.Lfe1:
- .size fooble,.Lfe1-fooble
.ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
|
Author: njn Date: 2009-04-24 21:17:07 +0100 (Fri, 24 Apr 2009) New Revision: 9611 Log: Merge r9610 (AM_CCASFLAGS tweaks for test Makefiles) from the DARWIN branch. Modified: trunk/Makefile.tool-tests.am trunk/cachegrind/tests/x86/Makefile.am trunk/exp-ptrcheck/tests/x86/Makefile.am trunk/memcheck/tests/amd64/Makefile.am trunk/memcheck/tests/x86-linux/Makefile.am trunk/memcheck/tests/x86/Makefile.am trunk/none/tests/amd64/Makefile.am trunk/none/tests/ppc32/Makefile.am trunk/none/tests/ppc64/Makefile.am trunk/none/tests/x86-linux/Makefile.am trunk/none/tests/x86/Makefile.am Modified: trunk/Makefile.tool-tests.am =================================================================== --- trunk/Makefile.tool-tests.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/Makefile.tool-tests.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -12,4 +12,7 @@ # as $(AM_FLAG_M3264_PRI). AM_CFLAGS = -Winline -Wall -Wshadow -g AM_CXXFLAGS = -Winline -Wall -Wshadow -g +# Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of +# automake; see comments in Makefile.flags.am for more detail. +AM_CCASFLAGS = $(AM_CPPFLAGS) Modified: trunk/cachegrind/tests/x86/Makefile.am =================================================================== --- trunk/cachegrind/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/cachegrind/tests/x86/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -10,8 +10,8 @@ fpu-28-108 -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ fpu_28_108_SOURCES = fpu-28-108.S Modified: trunk/exp-ptrcheck/tests/x86/Makefile.am =================================================================== --- trunk/exp-ptrcheck/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/exp-ptrcheck/tests/x86/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -10,9 +10,9 @@ lea.vgtest-disabled lea.stderr.exp -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ asm_SOURCES = asm.S lea_SOURCES = lea.S Modified: trunk/memcheck/tests/amd64/Makefile.am =================================================================== --- trunk/memcheck/tests/amd64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/memcheck/tests/amd64/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -27,9 +27,9 @@ more_x87_fp sse_memory xor-undef-amd64 -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ more_x87_fp_CFLAGS = $(AM_CFLAGS) -O -ffast-math -mfpmath=387 \ -mfancy-math-387 Modified: trunk/memcheck/tests/x86/Makefile.am =================================================================== --- trunk/memcheck/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/memcheck/tests/x86/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -40,9 +40,9 @@ tronical \ xor-undef-x86 -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ # must be built with these flags -- bug only occurred with them fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686 Modified: trunk/memcheck/tests/x86-linux/Makefile.am =================================================================== --- trunk/memcheck/tests/x86-linux/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/memcheck/tests/x86-linux/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -24,5 +24,5 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ Modified: trunk/none/tests/amd64/Makefile.am =================================================================== --- trunk/none/tests/amd64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/none/tests/amd64/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -63,9 +63,9 @@ check_PROGRAMS += ssse3_misaligned endif -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ # generic C ones bug132918_LDADD = -lm Modified: trunk/none/tests/ppc32/Makefile.am =================================================================== --- trunk/none/tests/ppc32/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/none/tests/ppc32/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -29,9 +29,9 @@ ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \ testVMX twi tw xlc_dbl_u32 -AM_CFLAGS += @FLAG_M32@ -AM_CXXFLAGS += @FLAG_M32@ -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ +AM_CXXFLAGS += @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ testVMX_CFLAGS = $(AM_CFLAGS) -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ Modified: trunk/none/tests/ppc64/Makefile.am =================================================================== --- trunk/none/tests/ppc64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/none/tests/ppc64/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -16,8 +16,8 @@ check_PROGRAMS = \ jm-insns lsw round std_reg_imm twi_tdi tw_td -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ Modified: trunk/none/tests/x86/Makefile.am =================================================================== --- trunk/none/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/none/tests/x86/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -90,9 +90,9 @@ endif -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ # generic C ones Modified: trunk/none/tests/x86-linux/Makefile.am =================================================================== --- trunk/none/tests/x86-linux/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) +++ trunk/none/tests/x86-linux/Makefile.am 2009-04-24 20:17:07 UTC (rev 9611) @@ -14,6 +14,6 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ |
|
From: <sv...@va...> - 2009-04-24 20:05:58
|
Author: njn Date: 2009-04-24 21:05:44 +0100 (Fri, 24 Apr 2009) New Revision: 9610 Log: Make handling of CCASFLAGS in tool-test Makefiles more consistent and less prone to breakage with older automakes. Modified: branches/DARWIN/Makefile.tool-tests.am branches/DARWIN/cachegrind/tests/x86/Makefile.am branches/DARWIN/exp-ptrcheck/tests/x86/Makefile.am branches/DARWIN/memcheck/tests/amd64/Makefile.am branches/DARWIN/memcheck/tests/darwin/Makefile.am branches/DARWIN/memcheck/tests/x86-linux/Makefile.am branches/DARWIN/memcheck/tests/x86/Makefile.am branches/DARWIN/none/tests/amd64/Makefile.am branches/DARWIN/none/tests/ppc32/Makefile.am branches/DARWIN/none/tests/ppc64/Makefile.am branches/DARWIN/none/tests/x86-linux/Makefile.am branches/DARWIN/none/tests/x86/Makefile.am Modified: branches/DARWIN/Makefile.tool-tests.am =================================================================== --- branches/DARWIN/Makefile.tool-tests.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/Makefile.tool-tests.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -12,6 +12,9 @@ # as $(AM_FLAG_M3264_PRI). AM_CFLAGS = -Winline -Wall -Wshadow -g AM_CXXFLAGS = -Winline -Wall -Wshadow -g +# Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of +# automake; see comments in Makefile.flags.am for more detail. +AM_CCASFLAGS = $(AM_CPPFLAGS) # On Darwin, for a program 'p', the DWARF debug info is stored in the Modified: branches/DARWIN/cachegrind/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/cachegrind/tests/x86/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/cachegrind/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -10,8 +10,8 @@ fpu-28-108 -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ fpu_28_108_SOURCES = fpu-28-108.S Modified: branches/DARWIN/exp-ptrcheck/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/exp-ptrcheck/tests/x86/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/exp-ptrcheck/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -10,9 +10,9 @@ lea.vgtest-disabled lea.stderr.exp -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ asm_SOURCES = asm.S lea_SOURCES = lea.S Modified: branches/DARWIN/memcheck/tests/amd64/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/amd64/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/memcheck/tests/amd64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -35,9 +35,9 @@ sse_memory endif -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ more_x87_fp_CFLAGS = $(AM_CFLAGS) -O -ffast-math -mfpmath=387 \ -mfancy-math-387 Modified: branches/DARWIN/memcheck/tests/darwin/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/darwin/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/memcheck/tests/darwin/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -16,5 +16,5 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -46,9 +46,9 @@ pushfpopf endif -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ # fpeflags must use these flags -- bug only occurred with them. Modified: branches/DARWIN/memcheck/tests/x86-linux/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/x86-linux/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/memcheck/tests/x86-linux/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -24,5 +24,5 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ Modified: branches/DARWIN/none/tests/amd64/Makefile.am =================================================================== --- branches/DARWIN/none/tests/amd64/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/none/tests/amd64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -76,9 +76,9 @@ slahf-amd64 endif -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ # generic C ones bug132918_LDADD = -lm Modified: branches/DARWIN/none/tests/ppc32/Makefile.am =================================================================== --- branches/DARWIN/none/tests/ppc32/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/none/tests/ppc32/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -29,9 +29,9 @@ ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \ testVMX twi tw xlc_dbl_u32 -AM_CFLAGS += @FLAG_M32@ -AM_CXXFLAGS += @FLAG_M32@ -AM_CCASFLAGS = @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ +AM_CXXFLAGS += @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ testVMX_CFLAGS = $(AM_CFLAGS) -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ Modified: branches/DARWIN/none/tests/ppc64/Makefile.am =================================================================== --- branches/DARWIN/none/tests/ppc64/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/none/tests/ppc64/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -16,8 +16,8 @@ check_PROGRAMS = \ jm-insns lsw round std_reg_imm twi_tdi tw_td -AM_CFLAGS += @FLAG_M64@ -AM_CXXFLAGS += @FLAG_M64@ -AM_CCASFLAGS = @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS += @FLAG_M64@ jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ Modified: branches/DARWIN/none/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -88,9 +88,9 @@ endif -AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CCASFLAGS += @FLAG_M32@ # Some of the tests (bug125959_x86, bug152818_x86, insn_*) need # -mdynamic-no-pic. I tried setting *_CFLAGS separately for all of them, Modified: branches/DARWIN/none/tests/x86-linux/Makefile.am =================================================================== --- branches/DARWIN/none/tests/x86-linux/Makefile.am 2009-04-24 14:49:50 UTC (rev 9609) +++ branches/DARWIN/none/tests/x86-linux/Makefile.am 2009-04-24 20:05:44 UTC (rev 9610) @@ -14,6 +14,6 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) -AM_CCASFLAGS = @FLAG_M32@ +AM_CCASFLAGS += @FLAG_M32@ |
|
From: Nicholas N. <n.n...@gm...> - 2009-04-24 17:38:55
|
Nightly build on ocean32 ( Ubuntu 8.10, Intel x86-64 (32-bit only) ) started at 2009-04-25 03:00:01 EST
Results unchanged from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 446 tests, 7 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/linux/stack_switch (stderr)
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/linux/mremap2 (stdout)
none/tests/shell (stdout)
none/tests/shell (stderr)
none/tests/shell_valid1 (stderr)
none/tests/shell_valid2 (stderr)
none/tests/shell_valid3 (stderr)
=================================================
./valgrind/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-04-25 03:23:17.000000000 +1000
+++ stack_switch.stderr.out 2009-04-25 03:36:46.000000000 +1000
@@ -0,0 +1,2 @@
+Syscall param clone(child_tidptr) contains uninitialised byte(s)
+ ...
=================================================
./valgrind/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-04-25 03:23:28.000000000 +1000
+++ origin1-yes.stderr.out 2009-04-25 03:37:02.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:93)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.8.90.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:90)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-04-25 03:23:28.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-25 03:37:06.000000000 +1000
@@ -11,7 +11,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -19,7 +19,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -27,7 +27,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2820)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -38,7 +38,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2823)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -49,7 +49,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2854)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -60,7 +60,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2858)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -71,7 +71,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2963)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -82,7 +82,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2964)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -93,7 +93,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2269)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -104,7 +104,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2275)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-04-25 03:23:28.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-25 03:37:06.000000000 +1000
@@ -28,7 +28,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -38,7 +39,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -48,7 +50,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2855)
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -58,7 +61,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2859)
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -68,7 +72,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -78,7 +83,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2964)
+ at 0x........: mainSort (origin5-bz2.c:2964)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-04-25 03:23:28.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-25 03:37:06.000000000 +1000
@@ -1,7 +1,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin5-bz2.c:6481)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
Conditional jump or move depends on uninitialised value(s)
at 0x........: handle_compress (origin5-bz2.c:4686)
@@ -9,85 +9,91 @@
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-04-25 03:25:51.000000000 +1000
+++ mremap2.stdout.out 2009-04-25 03:38:07.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,40 +173,40 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-04-25 03:25:51.000000000 +1000
+++ mremap2.stdout.out 2009-04-25 03:38:07.000000000 +1000
@@ -176,49 +176,49 @@
maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-04-25 03:25:51.000000000 +1000
+++ mremap2.stdout.out 2009-04-25 03:38:07.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,52 +173,52 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-04-25 03:26:20.000000000 +1000
+++ shell.stderr.out 2009-04-25 03:38:22.000000000 +1000
@@ -1,8 +1 @@
-./shell: ./x86/: is a directory
-./shell: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell: ./shell_binaryfile: cannot execute binary file
-./shell: ./shell_nosuchfile: No such file or directory
-./shell: shell_nosuchfile: command not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-04-25 03:26:20.000000000 +1000
+++ shell.stderr.out 2009-04-25 03:38:22.000000000 +1000
@@ -1,8 +1 @@
-./shell: 10: ./x86/: Permission denied
-./shell: 13: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell_binaryfile: 4: Syntax error: ")" unexpected
-./shell: 22: ./shell_nosuchfile: not found
-./shell: 25: shell_nosuchfile: not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-04-25 03:26:20.000000000 +1000
+++ shell.stdout.out 2009-04-25 03:38:22.000000000 +1000
@@ -1,10 +0,0 @@
-Execute a directory
-Execute a non-executable file
-Execute a script with a bad interpreter name
-Execute a binary file
-Execute a non-existent file
-Execute a non-existent file (2)
-Execute a valid script with a #! line
-Execute a valid script without a #! line
-Execute a valid script with #! but no interpname
-Execute a zero-length file
=================================================
./valgrind/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-04-25 03:26:20.000000000 +1000
+++ shell_valid1.stderr.out 2009-04-25 03:38:22.000000000 +1000
@@ -0,0 +1 @@
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-04-25 03:26:20.000000000 +1000
+++ shell_valid2.stderr.out 2009-04-25 03:38:22.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid2: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-04-25 03:26:20.000000000 +1000
+++ shell_valid3.stderr.out 2009-04-25 03:38:22.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid3: bad interpreter (/bin/sh): VG_(strerror): unknown error
|
|
From: Nicholas N. <n.n...@gm...> - 2009-04-24 16:42:49
|
Nightly build on ocean ( Ubuntu 8.10, Intel x86-64 ) started at 2009-04-25 02:00:01 EST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 483 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff ================================================= --- mremap2.stdout.exp 2009-04-25 02:25:01.000000000 +1000 +++ mremap2.stdout.out 2009-04-25 02:42:08.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,40 +173,40 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... <truncated beyond 100 lines> ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff-glibc28-amd64 ================================================= --- mremap2.stdout.exp-glibc28-amd64 2009-04-25 02:25:01.000000000 +1000 +++ mremap2.stdout.out 2009-04-25 02:42:08.000000000 +1000 @@ -176,49 +176,49 @@ maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff2 ================================================= --- mremap2.stdout.exp2 2009-04-25 02:25:01.000000000 +1000 +++ mremap2.stdout.out 2009-04-25 02:42:08.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,52 +173,52 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... <truncated beyond 100 lines> |
|
From: <sv...@va...> - 2009-04-24 14:49:56
|
Author: bart
Date: 2009-04-24 15:49:50 +0100 (Fri, 24 Apr 2009)
New Revision: 9609
Log:
Minor optimization: eliminated one if statement from each bm_clear*() function.
Modified:
trunk/drd/drd_bitmap.c
trunk/drd/drd_bitmap.h
Modified: trunk/drd/drd_bitmap.c
===================================================================
--- trunk/drd/drd_bitmap.c 2009-04-24 07:41:12 UTC (rev 9608)
+++ trunk/drd/drd_bitmap.c 2009-04-24 14:49:50 UTC (rev 9609)
@@ -489,38 +489,42 @@
/* start on an UWord boundary, start clearing the first addresses. */
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
+#endif
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(c_next <= b_next);
- tl_assert(c <= c_next);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(c_next <= b_next);
+ tl_assert(c <= c_next);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
- VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
+ VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
- }
+#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
+ tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
+#endif
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
}
}
@@ -570,15 +574,15 @@
#endif
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
@@ -586,29 +590,26 @@
#endif
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_r[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
#endif
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
- }
+ bm0_clear_range(p2->bm1.bm0_r, c & ADDR0_MASK, b_next - c);
}
}
@@ -645,7 +646,7 @@
b_next = (b & ~ADDR0_MASK) + ADDR0_COUNT;
if (b_next > a2)
{
- b_next = a2;
+ b_next = a2;
}
if (p2 == 0)
@@ -659,15 +660,15 @@
#endif
if (UWORD_LSB(c))
{
- Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
- if (c_next > b_next)
- c_next = b_next;
+ Addr c_next = UWORD_MSB(c) + BITS_PER_UWORD;
+ if (c_next > b_next)
+ c_next = b_next;
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(a1 <= b && b <= c && c < c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
- c = c_next;
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, c_next - c);
+ c = c_next;
}
/* If some UWords have to be cleared entirely, do this now. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
@@ -675,29 +676,26 @@
#endif
if (UWORD_LSB(c) == 0)
{
- const Addr c_next = UWORD_MSB(b_next);
+ const Addr c_next = UWORD_MSB(b_next);
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
- tl_assert(UWORD_LSB(c) == 0);
- tl_assert(UWORD_LSB(c_next) == 0);
- tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
- && b_next <= a2);
+ tl_assert(UWORD_LSB(c) == 0);
+ tl_assert(UWORD_LSB(c_next) == 0);
+ tl_assert(a1 <= b && b <= c && c <= c_next && c_next <= b_next
+ && b_next <= a2);
#endif
- if (c_next > c)
- {
- UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
- VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
- c = c_next;
- }
+ if (c_next > c)
+ {
+ UWord idx = (c & ADDR0_MASK) >> BITS_PER_BITS_PER_UWORD;
+ VG_(memset)(&p2->bm1.bm0_w[idx], 0, (c_next - c) / 8);
+ c = c_next;
+ }
}
/* If the last address in the bitmap that must be cleared does not */
/* fall on an UWord boundary, clear the last addresses. */
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 <= b && b <= c && c <= b_next && b_next <= a2);
#endif
- if (c < b_next)
- {
- bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
- }
+ bm0_clear_range(p2->bm1.bm0_w, c & ADDR0_MASK, b_next - c);
}
}
Modified: trunk/drd/drd_bitmap.h
===================================================================
--- trunk/drd/drd_bitmap.h 2009-04-24 07:41:12 UTC (rev 9608)
+++ trunk/drd/drd_bitmap.h 2009-04-24 14:49:50 UTC (rev 9609)
@@ -137,9 +137,9 @@
{
#ifdef ENABLE_DRD_CONSISTENCY_CHECKS
tl_assert(a1 < ADDR0_COUNT);
- tl_assert(size > 0);
+ tl_assert(size >= 0);
tl_assert(a1 + size <= ADDR0_COUNT);
- tl_assert(UWORD_MSB(a1) == UWORD_MSB(a1 + size - 1));
+ tl_assert(size == 0 || UWORD_MSB(a1) == UWORD_MSB(a1 + size - 1));
#endif
bm0[a1 >> BITS_PER_BITS_PER_UWORD]
&= ~((((UWord)1 << size) - 1) << UWORD_LSB(a1));
|
|
From: <sv...@va...> - 2009-04-24 07:41:15
|
Author: njn
Date: 2009-04-24 08:41:12 +0100 (Fri, 24 Apr 2009)
New Revision: 9608
Log:
Update expected output for change from r9585.
Modified:
branches/DARWIN/memcheck/tests/x86-linux/scalar.stderr.exp
Modified: branches/DARWIN/memcheck/tests/x86-linux/scalar.stderr.exp
===================================================================
--- branches/DARWIN/memcheck/tests/x86-linux/scalar.stderr.exp 2009-04-24 07:31:32 UTC (rev 9607)
+++ branches/DARWIN/memcheck/tests/x86-linux/scalar.stderr.exp 2009-04-24 07:41:12 UTC (rev 9608)
@@ -978,13 +978,21 @@
Syscall param setitimer(ovalue) contains uninitialised byte(s)
...
-Syscall param setitimer(value) points to unaddressable byte(s)
+Syscall param setitimer(value->it_interval) points to unaddressable byte(s)
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-Syscall param setitimer(ovalue) points to unaddressable byte(s)
+Syscall param setitimer(value->it_value) points to unaddressable byte(s)
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param setitimer(ovalue->it_interval) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param setitimer(ovalue->it_value) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
105: __NR_getitimer 2s 1m
-----------------------------------------------------
@@ -995,9 +1003,13 @@
Syscall param getitimer(value) contains uninitialised byte(s)
...
-Syscall param getitimer(value) points to unaddressable byte(s)
+Syscall param getitimer(value.it_interval) points to unaddressable byte(s)
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param getitimer(value.it_value) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
106: __NR_stat 2s 2m
-----------------------------------------------------
|
|
From: <sv...@va...> - 2009-04-24 07:31:36
|
Author: njn
Date: 2009-04-24 08:31:32 +0100 (Fri, 24 Apr 2009)
New Revision: 9607
Log:
Fix some incorrect syscall wrapper strings.
Modified:
branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-04-24 07:24:05 UTC (rev 9606)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-04-24 07:31:32 UTC (rev 9607)
@@ -2242,16 +2242,16 @@
struct itimerval *, value, struct itimerval *, ovalue);
if (ARG2 != (Addr)NULL) {
struct vki_itimerval *value = (struct vki_itimerval*)ARG2;
- PRE_timeval_READ( "getitimer(value->it_interval)",
+ PRE_timeval_READ( "setitimer(value->it_interval)",
&(value->it_interval));
- PRE_timeval_READ( "getitimer(value->it_value)",
+ PRE_timeval_READ( "setitimer(value->it_value)",
&(value->it_value));
}
if (ARG3 != (Addr)NULL) {
struct vki_itimerval *ovalue = (struct vki_itimerval*)ARG3;
- PRE_timeval_WRITE( "getitimer(ovalue->it_interval)",
+ PRE_timeval_WRITE( "setitimer(ovalue->it_interval)",
&(ovalue->it_interval));
- PRE_timeval_WRITE( "getitimer(ovalue->it_value)",
+ PRE_timeval_WRITE( "setitimer(ovalue->it_value)",
&(ovalue->it_value));
}
}
|
|
From: <sv...@va...> - 2009-04-24 07:24:11
|
Author: njn Date: 2009-04-24 08:24:05 +0100 (Fri, 24 Apr 2009) New Revision: 9606 Log: Merge r9605 (make tronical work on Darwin) from the DARWIN branch. Modified: trunk/memcheck/tests/x86/Makefile.am trunk/memcheck/tests/x86/tronical.S Modified: trunk/memcheck/tests/x86/Makefile.am =================================================================== --- trunk/memcheck/tests/x86/Makefile.am 2009-04-24 07:14:38 UTC (rev 9605) +++ trunk/memcheck/tests/x86/Makefile.am 2009-04-24 07:24:05 UTC (rev 9606) @@ -30,15 +30,15 @@ espindola2 \ int3-x86 \ fpeflags \ - fprem \ - fxsave \ + fprem \ + fxsave \ more_x86_fp \ - pushfpopf \ + pushfpopf \ pushfw_x86 \ pushpopmem \ - sse_memory \ - tronical \ - xor-undef-x86 + sse_memory \ + tronical \ + xor-undef-x86 AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) Modified: trunk/memcheck/tests/x86/tronical.S =================================================================== --- trunk/memcheck/tests/x86/tronical.S 2009-04-24 07:14:38 UTC (rev 9605) +++ trunk/memcheck/tests/x86/tronical.S 2009-04-24 07:24:05 UTC (rev 9606) @@ -49,13 +49,14 @@ */ +#include "tests/asm.h" + .file "tronical.c" .version "01.01" gcc2_compiled.: .text .align 4 .globl set - .type set,@function set: pushl %ebp movl foo, %eax @@ -64,14 +65,11 @@ popl %ebp ret .Lfe1: - .size set,.Lfe1-set - .section .rodata .LC0: - .string "blieb\n" + .ascii "blieb\n" .text .align 4 .globl get - .type get,@function get: pushl %ebp movl %esp, %ebp @@ -81,22 +79,20 @@ js .L4 subl $12, %esp pushl $.LC0 - call printf + call VG_SYM_ASM(printf) addl $16, %esp .L4: leave ret .Lfe2: - .size get,.Lfe2-get .align 4 -.globl main - .type main,@function -main: +.globl VG_SYM_ASM(main) +VG_SYM_ASM(main): pushl %ebp movl %esp, %ebp subl $20, %esp pushl $4 - call malloc + call VG_SYM_ASM(malloc) movl %eax, foo call set call get @@ -104,6 +100,5 @@ leave ret .Lfe3: - .size main,.Lfe3-main .comm foo,4,4 .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |
|
From: <sv...@va...> - 2009-04-24 07:14:44
|
Author: njn
Date: 2009-04-24 08:14:38 +0100 (Fri, 24 Apr 2009)
New Revision: 9605
Log:
Make tronical build and run on Darwin. Unfortunately it doesn't pass
because of some bogus output about UUIDs.
Modified:
branches/DARWIN/memcheck/tests/x86/Makefile.am
branches/DARWIN/memcheck/tests/x86/tronical.S
Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 07:12:39 UTC (rev 9604)
+++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 07:14:38 UTC (rev 9605)
@@ -34,6 +34,7 @@
pushfw_x86 \
pushpopmem \
sse_memory \
+ tronical \
xor-undef-x86
# DDD: not sure if these ones should work on Darwin or not... if not, should
@@ -42,8 +43,7 @@
check_PROGRAMS += \
int3-x86 \
more_x86_fp \
- pushfpopf \
- tronical
+ pushfpopf
endif
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
Modified: branches/DARWIN/memcheck/tests/x86/tronical.S
===================================================================
--- branches/DARWIN/memcheck/tests/x86/tronical.S 2009-04-24 07:12:39 UTC (rev 9604)
+++ branches/DARWIN/memcheck/tests/x86/tronical.S 2009-04-24 07:14:38 UTC (rev 9605)
@@ -49,13 +49,14 @@
*/
+#include "tests/asm.h"
+
.file "tronical.c"
.version "01.01"
gcc2_compiled.:
.text
.align 4
.globl set
- .type set,@function
set:
pushl %ebp
movl foo, %eax
@@ -64,14 +65,11 @@
popl %ebp
ret
.Lfe1:
- .size set,.Lfe1-set
- .section .rodata
.LC0:
- .string "blieb\n"
+ .ascii "blieb\n"
.text
.align 4
.globl get
- .type get,@function
get:
pushl %ebp
movl %esp, %ebp
@@ -81,22 +79,20 @@
js .L4
subl $12, %esp
pushl $.LC0
- call printf
+ call VG_SYM_ASM(printf)
addl $16, %esp
.L4:
leave
ret
.Lfe2:
- .size get,.Lfe2-get
.align 4
-.globl main
- .type main,@function
-main:
+.globl VG_SYM_ASM(main)
+VG_SYM_ASM(main):
pushl %ebp
movl %esp, %ebp
subl $20, %esp
pushl $4
- call malloc
+ call VG_SYM_ASM(malloc)
movl %eax, foo
call set
call get
@@ -104,6 +100,5 @@
leave
ret
.Lfe3:
- .size main,.Lfe3-main
.comm foo,4,4
.ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
|
|
From: <sv...@va...> - 2009-04-24 07:12:42
|
Author: njn
Date: 2009-04-24 08:12:39 +0100 (Fri, 24 Apr 2009)
New Revision: 9604
Log:
Merged r9602 and r9603 (make cpuid pass on Darwin, rename .s files to .S)
from the DARWIN branch.
Added:
trunk/memcheck/tests/x86/pushfpopf_s.S
trunk/none/tests/x86/cpuid_s.S
Removed:
trunk/memcheck/tests/x86/pushfpopf_s.s
trunk/none/tests/x86/cpuid_s.s
Modified:
trunk/cachegrind/tests/x86/Makefile.am
trunk/memcheck/tests/x86/Makefile.am
trunk/none/tests/x86/Makefile.am
Modified: trunk/cachegrind/tests/x86/Makefile.am
===================================================================
--- trunk/cachegrind/tests/x86/Makefile.am 2009-04-24 07:00:11 UTC (rev 9603)
+++ trunk/cachegrind/tests/x86/Makefile.am 2009-04-24 07:12:39 UTC (rev 9604)
@@ -12,6 +12,6 @@
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
-AM_CCASFLAGS = @FLAG_M32@
+AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@
fpu_28_108_SOURCES = fpu-28-108.S
Modified: trunk/memcheck/tests/x86/Makefile.am
===================================================================
--- trunk/memcheck/tests/x86/Makefile.am 2009-04-24 07:00:11 UTC (rev 9603)
+++ trunk/memcheck/tests/x86/Makefile.am 2009-04-24 07:12:39 UTC (rev 9604)
@@ -46,7 +46,7 @@
# must be built with these flags -- bug only occurred with them
fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686
-pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s
+pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.S
tronical_SOURCES = tronical.S
more_x86_fp_LDADD = -lm
Copied: trunk/memcheck/tests/x86/pushfpopf_s.S (from rev 9603, branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S)
===================================================================
--- trunk/memcheck/tests/x86/pushfpopf_s.S (rev 0)
+++ trunk/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 07:12:39 UTC (rev 9604)
@@ -0,0 +1,41 @@
+ .file "twoparams.c"
+ .version "01.01"
+gcc2_compiled.:
+.text
+ .align 4
+.globl fooble
+ .type fooble,@function
+fooble:
+ pushl %ebp
+ movl %esp, %ebp
+ movl 8(%ebp), %eax
+
+ subl 12(%ebp), %eax
+ # flags are now undef if either operand is
+ # save possibly undef flags on stack
+ pushfl
+
+ movl $0, %eax
+ addl $0, %eax
+ # flags are now definitely defined
+
+ popfl
+ # resulting flag definedness depends on outcome of sub above
+ # should override that created by 0 + 0 above
+ # because Vex does an emulation-warning check on the popfl,
+ # an error should be reported for the popfl
+
+ # now use the condition codes to generate a value
+ # in a way which will cause undefinedness to get reported
+ # (a second time)
+ jz labelz
+ movl $22, %eax
+ jmp theend
+labelz:
+ movl $33, %eax
+theend:
+ popl %ebp
+ ret
+.Lfe1:
+ .size fooble,.Lfe1-fooble
+ .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
Deleted: trunk/memcheck/tests/x86/pushfpopf_s.s
===================================================================
--- trunk/memcheck/tests/x86/pushfpopf_s.s 2009-04-24 07:00:11 UTC (rev 9603)
+++ trunk/memcheck/tests/x86/pushfpopf_s.s 2009-04-24 07:12:39 UTC (rev 9604)
@@ -1,41 +0,0 @@
- .file "twoparams.c"
- .version "01.01"
-gcc2_compiled.:
-.text
- .align 4
-.globl fooble
- .type fooble,@function
-fooble:
- pushl %ebp
- movl %esp, %ebp
- movl 8(%ebp), %eax
-
- subl 12(%ebp), %eax
- # flags are now undef if either operand is
- # save possibly undef flags on stack
- pushfl
-
- movl $0, %eax
- addl $0, %eax
- # flags are now definitely defined
-
- popfl
- # resulting flag definedness depends on outcome of sub above
- # should override that created by 0 + 0 above
- # because Vex does an emulation-warning check on the popfl,
- # an error should be reported for the popfl
-
- # now use the condition codes to generate a value
- # in a way which will cause undefinedness to get reported
- # (a second time)
- jz labelz
- movl $22, %eax
- jmp theend
-labelz:
- movl $33, %eax
-theend:
- popl %ebp
- ret
-.Lfe1:
- .size fooble,.Lfe1-fooble
- .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
Modified: trunk/none/tests/x86/Makefile.am
===================================================================
--- trunk/none/tests/x86/Makefile.am 2009-04-24 07:00:11 UTC (rev 9603)
+++ trunk/none/tests/x86/Makefile.am 2009-04-24 07:12:39 UTC (rev 9604)
@@ -67,8 +67,8 @@
bug137714-x86 \
bug152818-x86 \
cmpxchg8b \
- cpuid \
- cse_fail \
+ cpuid \
+ cse_fail \
faultstatus \
fcmovnu \
fpu_lazy_eflags \
@@ -89,13 +89,14 @@
check_PROGRAMS += ssse3_misaligned
endif
+
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
-AM_CCASFLAGS = @FLAG_M32@
+AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@
# generic C ones
-cpuid_SOURCES = cpuid_c.c cpuid_s.s
+cpuid_SOURCES = cpuid_c.c cpuid_s.S
# fpu_lazy_eflags must use these flags -- the bug only occurred with them
fpu_lazy_eflags_CFLAGS = $(AM_CFLAGS) -O2 -march=pentiumpro
fxtract_LDADD = -lm
Copied: trunk/none/tests/x86/cpuid_s.S (from rev 9595, trunk/none/tests/x86/cpuid_s.s)
===================================================================
--- trunk/none/tests/x86/cpuid_s.S (rev 0)
+++ trunk/none/tests/x86/cpuid_s.S 2009-04-24 07:12:39 UTC (rev 9604)
@@ -0,0 +1,71 @@
+#include "tests/asm.h"
+
+ .file "oneparam.c"
+ .version "01.01"
+gcc2_compiled.:
+.text
+ .align 4
+
+.globl VG_SYM_ASM(get_cpuid0)
+VG_SYM_ASM(get_cpuid0):
+ pushl %ebp
+ movl %esp, %ebp
+ movl 8(%ebp), %eax
+
+ pushl %edi
+ pushl %eax
+ pushl %ebx
+ pushl %ecx
+ pushl %edx
+
+ movl %eax, %edi
+ movl $0, %eax
+ cpuid
+ movl %eax, (%edi)
+ movl %ebx, 4(%edi)
+ movl %ecx, 8(%edi)
+ movl %edx, 12(%edi)
+
+ popl %edx
+ popl %ecx
+ popl %ebx
+ popl %eax
+ popl %edi
+
+ popl %ebp
+ ret
+
+
+.globl VG_SYM_ASM(get_cpuid1)
+VG_SYM_ASM(get_cpuid1):
+ pushl %ebp
+ movl %esp, %ebp
+ movl 8(%ebp), %eax
+
+ pushl %edi
+ pushl %eax
+ pushl %ebx
+ pushl %ecx
+ pushl %edx
+
+ movl %eax, %edi
+ movl $1, %eax
+ cpuid
+ movl %eax, (%edi)
+ movl %ebx, 4(%edi)
+ movl %ecx, 8(%edi)
+ movl %edx, 12(%edi)
+
+ popl %edx
+ popl %ecx
+ popl %ebx
+ popl %eax
+ popl %edi
+
+ popl %ebp
+ ret
+
+
+
+
+ .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
Property changes on: trunk/none/tests/x86/cpuid_s.S
___________________________________________________________________
Name: svn:keywords
+ author date id revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Deleted: trunk/none/tests/x86/cpuid_s.s
===================================================================
--- trunk/none/tests/x86/cpuid_s.s 2009-04-24 07:00:11 UTC (rev 9603)
+++ trunk/none/tests/x86/cpuid_s.s 2009-04-24 07:12:39 UTC (rev 9604)
@@ -1,77 +0,0 @@
-
-
- .file "oneparam.c"
- .version "01.01"
-gcc2_compiled.:
-.text
- .align 4
-
-.globl get_cpuid0
- .type get_cpuid0,@function
-get_cpuid0:
- pushl %ebp
- movl %esp, %ebp
- movl 8(%ebp), %eax
-
- pushl %edi
- pushl %eax
- pushl %ebx
- pushl %ecx
- pushl %edx
-
- movl %eax, %edi
- movl $0, %eax
- cpuid
- movl %eax, (%edi)
- movl %ebx, 4(%edi)
- movl %ecx, 8(%edi)
- movl %edx, 12(%edi)
-
- popl %edx
- popl %ecx
- popl %ebx
- popl %eax
- popl %edi
-
- popl %ebp
- ret
-.Lfe1:
- .size get_cpuid0,.Lfe1-get_cpuid0
-
-
-.globl get_cpuid1
- .type get_cpuid1,@function
-get_cpuid1:
- pushl %ebp
- movl %esp, %ebp
- movl 8(%ebp), %eax
-
- pushl %edi
- pushl %eax
- pushl %ebx
- pushl %ecx
- pushl %edx
-
- movl %eax, %edi
- movl $1, %eax
- cpuid
- movl %eax, (%edi)
- movl %ebx, 4(%edi)
- movl %ecx, 8(%edi)
- movl %edx, 12(%edi)
-
- popl %edx
- popl %ecx
- popl %ebx
- popl %eax
- popl %edi
-
- popl %ebp
- ret
-.Lfe2:
- .size get_cpuid1,.Lfe2-get_cpuid1
-
-
-
-
- .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
|
|
From: <sv...@va...> - 2009-04-24 07:00:15
|
Author: njn Date: 2009-04-24 08:00:11 +0100 (Fri, 24 Apr 2009) New Revision: 9603 Log: Rename two .s files as .S files. This ensures that the preprocessor is run over them on Linux. (On Darwin, the preprocessor is also run over .s files because Darwin seems to have a weird case-insensitive file system. This is also why I had to removed the old files and then add them under the new names, rather than using 'svn mv'. Sigh.) Added: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S branches/DARWIN/none/tests/x86/cpuid_s.S Removed: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.s branches/DARWIN/none/tests/x86/cpuid_s.s Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am branches/DARWIN/none/tests/x86/Makefile.am Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 06:25:15 UTC (rev 9602) +++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-24 07:00:11 UTC (rev 9603) @@ -53,7 +53,7 @@ # fpeflags must use these flags -- bug only occurred with them. fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686 -pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s +pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.S if VGCONF_OS_IS_DARWIN pushpopmem_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic else Added: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S =================================================================== --- branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S (rev 0) +++ branches/DARWIN/memcheck/tests/x86/pushfpopf_s.S 2009-04-24 07:00:11 UTC (rev 9603) @@ -0,0 +1,41 @@ + .file "twoparams.c" + .version "01.01" +gcc2_compiled.: +.text + .align 4 +.globl fooble + .type fooble,@function +fooble: + pushl %ebp + movl %esp, %ebp + movl 8(%ebp), %eax + + subl 12(%ebp), %eax + # flags are now undef if either operand is + # save possibly undef flags on stack + pushfl + + movl $0, %eax + addl $0, %eax + # flags are now definitely defined + + popfl + # resulting flag definedness depends on outcome of sub above + # should override that created by 0 + 0 above + # because Vex does an emulation-warning check on the popfl, + # an error should be reported for the popfl + + # now use the condition codes to generate a value + # in a way which will cause undefinedness to get reported + # (a second time) + jz labelz + movl $22, %eax + jmp theend +labelz: + movl $33, %eax +theend: + popl %ebp + ret +.Lfe1: + .size fooble,.Lfe1-fooble + .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" Deleted: branches/DARWIN/memcheck/tests/x86/pushfpopf_s.s =================================================================== --- branches/DARWIN/memcheck/tests/x86/pushfpopf_s.s 2009-04-24 06:25:15 UTC (rev 9602) +++ branches/DARWIN/memcheck/tests/x86/pushfpopf_s.s 2009-04-24 07:00:11 UTC (rev 9603) @@ -1,41 +0,0 @@ - .file "twoparams.c" - .version "01.01" -gcc2_compiled.: -.text - .align 4 -.globl fooble - .type fooble,@function -fooble: - pushl %ebp - movl %esp, %ebp - movl 8(%ebp), %eax - - subl 12(%ebp), %eax - # flags are now undef if either operand is - # save possibly undef flags on stack - pushfl - - movl $0, %eax - addl $0, %eax - # flags are now definitely defined - - popfl - # resulting flag definedness depends on outcome of sub above - # should override that created by 0 + 0 above - # because Vex does an emulation-warning check on the popfl, - # an error should be reported for the popfl - - # now use the condition codes to generate a value - # in a way which will cause undefinedness to get reported - # (a second time) - jz labelz - movl $22, %eax - jmp theend -labelz: - movl $33, %eax -theend: - popl %ebp - ret -.Lfe1: - .size fooble,.Lfe1-fooble - .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" Modified: branches/DARWIN/none/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 06:25:15 UTC (rev 9602) +++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 07:00:11 UTC (rev 9603) @@ -101,7 +101,7 @@ AM_CFLAGS += -mdynamic-no-pic endif -cpuid_SOURCES = cpuid_c.c cpuid_s.s +cpuid_SOURCES = cpuid_c.c cpuid_s.S # fpu_lazy_eflags must use these flags -- the bug only occurred with them. fpu_lazy_eflags_CFLAGS = $(AM_CFLAGS) -O2 -march=pentiumpro fxtract_LDADD = -lm Added: branches/DARWIN/none/tests/x86/cpuid_s.S =================================================================== --- branches/DARWIN/none/tests/x86/cpuid_s.S (rev 0) +++ branches/DARWIN/none/tests/x86/cpuid_s.S 2009-04-24 07:00:11 UTC (rev 9603) @@ -0,0 +1,71 @@ +#include "tests/asm.h" + + .file "oneparam.c" + .version "01.01" +gcc2_compiled.: +.text + .align 4 + +.globl VG_SYM_ASM(get_cpuid0) +VG_SYM_ASM(get_cpuid0): + pushl %ebp + movl %esp, %ebp + movl 8(%ebp), %eax + + pushl %edi + pushl %eax + pushl %ebx + pushl %ecx + pushl %edx + + movl %eax, %edi + movl $0, %eax + cpuid + movl %eax, (%edi) + movl %ebx, 4(%edi) + movl %ecx, 8(%edi) + movl %edx, 12(%edi) + + popl %edx + popl %ecx + popl %ebx + popl %eax + popl %edi + + popl %ebp + ret + + +.globl VG_SYM_ASM(get_cpuid1) +VG_SYM_ASM(get_cpuid1): + pushl %ebp + movl %esp, %ebp + movl 8(%ebp), %eax + + pushl %edi + pushl %eax + pushl %ebx + pushl %ecx + pushl %edx + + movl %eax, %edi + movl $1, %eax + cpuid + movl %eax, (%edi) + movl %ebx, 4(%edi) + movl %ecx, 8(%edi) + movl %edx, 12(%edi) + + popl %edx + popl %ecx + popl %ebx + popl %eax + popl %edi + + popl %ebp + ret + + + + + .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" Deleted: branches/DARWIN/none/tests/x86/cpuid_s.s =================================================================== --- branches/DARWIN/none/tests/x86/cpuid_s.s 2009-04-24 06:25:15 UTC (rev 9602) +++ branches/DARWIN/none/tests/x86/cpuid_s.s 2009-04-24 07:00:11 UTC (rev 9603) @@ -1,71 +0,0 @@ -#include "tests/asm.h" - - .file "oneparam.c" - .version "01.01" -gcc2_compiled.: -.text - .align 4 - -.globl VG_SYM_ASM(get_cpuid0) -VG_SYM_ASM(get_cpuid0): - pushl %ebp - movl %esp, %ebp - movl 8(%ebp), %eax - - pushl %edi - pushl %eax - pushl %ebx - pushl %ecx - pushl %edx - - movl %eax, %edi - movl $0, %eax - cpuid - movl %eax, (%edi) - movl %ebx, 4(%edi) - movl %ecx, 8(%edi) - movl %edx, 12(%edi) - - popl %edx - popl %ecx - popl %ebx - popl %eax - popl %edi - - popl %ebp - ret - - -.globl VG_SYM_ASM(get_cpuid1) -VG_SYM_ASM(get_cpuid1): - pushl %ebp - movl %esp, %ebp - movl 8(%ebp), %eax - - pushl %edi - pushl %eax - pushl %ebx - pushl %ecx - pushl %edx - - movl %eax, %edi - movl $1, %eax - cpuid - movl %eax, (%edi) - movl %ebx, 4(%edi) - movl %ecx, 8(%edi) - movl %edx, 12(%edi) - - popl %edx - popl %ecx - popl %ebx - popl %eax - popl %edi - - popl %ebp - ret - - - - - .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |
|
From: <sv...@va...> - 2009-04-24 06:25:21
|
Author: njn
Date: 2009-04-24 07:25:15 +0100 (Fri, 24 Apr 2009)
New Revision: 9602
Log:
Make cpuid pass.
Modified:
branches/DARWIN/cachegrind/tests/x86/Makefile.am
branches/DARWIN/none/tests/x86/Makefile.am
branches/DARWIN/none/tests/x86/cpuid_s.s
Modified: branches/DARWIN/cachegrind/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/cachegrind/tests/x86/Makefile.am 2009-04-24 04:57:07 UTC (rev 9601)
+++ branches/DARWIN/cachegrind/tests/x86/Makefile.am 2009-04-24 06:25:15 UTC (rev 9602)
@@ -12,6 +12,6 @@
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
-AM_CCASFLAGS = @FLAG_M32@
+AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@
fpu_28_108_SOURCES = fpu-28-108.S
Modified: branches/DARWIN/none/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 04:57:07 UTC (rev 9601)
+++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 06:25:15 UTC (rev 9602)
@@ -65,6 +65,7 @@
bug137714-x86 \
bug152818-x86 \
cmpxchg8b \
+ cpuid \
cse_fail \
faultstatus \
fcmovnu \
@@ -86,16 +87,10 @@
check_PROGRAMS += ssse3_misaligned
endif
-# DDD: not sure if these ones should work on Darwin or not... if not, should
-# be moved into x86-linux/.
-if ! VGCONF_OS_IS_DARWIN
- check_PROGRAMS += \
- cpuid
-endif
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
-AM_CCASFLAGS = @FLAG_M32@
+AM_CCASFLAGS = $(AM_CPPFLAGS) @FLAG_M32@
# Some of the tests (bug125959_x86, bug152818_x86, insn_*) need
# -mdynamic-no-pic. I tried setting *_CFLAGS separately for all of them,
Modified: branches/DARWIN/none/tests/x86/cpuid_s.s
===================================================================
--- branches/DARWIN/none/tests/x86/cpuid_s.s 2009-04-24 04:57:07 UTC (rev 9601)
+++ branches/DARWIN/none/tests/x86/cpuid_s.s 2009-04-24 06:25:15 UTC (rev 9602)
@@ -1,4 +1,4 @@
-
+#include "tests/asm.h"
.file "oneparam.c"
.version "01.01"
@@ -6,9 +6,8 @@
.text
.align 4
-.globl get_cpuid0
- .type get_cpuid0,@function
-get_cpuid0:
+.globl VG_SYM_ASM(get_cpuid0)
+VG_SYM_ASM(get_cpuid0):
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
@@ -35,13 +34,10 @@
popl %ebp
ret
-.Lfe1:
- .size get_cpuid0,.Lfe1-get_cpuid0
-.globl get_cpuid1
- .type get_cpuid1,@function
-get_cpuid1:
+.globl VG_SYM_ASM(get_cpuid1)
+VG_SYM_ASM(get_cpuid1):
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
@@ -68,8 +64,6 @@
popl %ebp
ret
-.Lfe2:
- .size get_cpuid1,.Lfe2-get_cpuid1
|
|
From: <sv...@va...> - 2009-04-24 04:57:11
|
Author: njn
Date: 2009-04-24 05:57:07 +0100 (Fri, 24 Apr 2009)
New Revision: 9601
Log:
Merge r9600 (separate VG_ and ML_ definitions for C and asm files) from the
DARWIN branch.
Modified:
trunk/cachegrind/tests/x86/fpu-28-108.S
trunk/coregrind/m_cpuid.S
trunk/coregrind/pub_core_basics.h
trunk/coregrind/pub_core_basics_asm.h
trunk/include/pub_tool_basics.h
trunk/include/pub_tool_basics_asm.h
trunk/massif/tests/ignored.c
trunk/tests/asm.h
Modified: trunk/cachegrind/tests/x86/fpu-28-108.S
===================================================================
--- trunk/cachegrind/tests/x86/fpu-28-108.S 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/cachegrind/tests/x86/fpu-28-108.S 2009-04-24 04:57:07 UTC (rev 9601)
@@ -4,6 +4,8 @@
/* Useful listing:
gcc -o tests/fpu_28_108 tests/fpu_28_108.S -Wa,-a */
+#include "tests/asm.h"
+
.data
fooble:
.long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@@ -12,8 +14,8 @@
bar:
.text
-.globl main
-main:
+.globl VG_SYM_ASM(main)
+VG_SYM_ASM(main):
fstsw fooble
fsave fooble
frstor fooble
Modified: trunk/coregrind/m_cpuid.S
===================================================================
--- trunk/coregrind/m_cpuid.S 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/coregrind/m_cpuid.S 2009-04-24 04:57:07 UTC (rev 9601)
@@ -143,7 +143,7 @@
ret
#endif
-#if defined(VGA_x86) || defined(VGA_amd64)
+#if defined(VGO_linux)
/* Let the linker know we don't need an executable stack */
.section .note.GNU-stack,"",@progbits
#endif
Modified: trunk/coregrind/pub_core_basics.h
===================================================================
--- trunk/coregrind/pub_core_basics.h 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/coregrind/pub_core_basics.h 2009-04-24 04:57:07 UTC (rev 9601)
@@ -37,7 +37,6 @@
// everywhere.
//--------------------------------------------------------------------
-#include "pub_core_basics_asm.h"
#include "pub_tool_basics.h"
/* ---------------------------------------------------------------------
Modified: trunk/coregrind/pub_core_basics_asm.h
===================================================================
--- trunk/coregrind/pub_core_basics_asm.h 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/coregrind/pub_core_basics_asm.h 2009-04-24 04:57:07 UTC (rev 9601)
@@ -1,7 +1,6 @@
/*--------------------------------------------------------------------*/
-/*--- Header imported directly by every core asm file, and ---*/
-/*--- (via pub_core_basics.h) by every core C file. ---*/
+/*--- Header imported directly by every core asm file. ---*/
/*--- pub_core_basics_asm.h ---*/
/*--------------------------------------------------------------------*/
@@ -34,9 +33,8 @@
#define __PUB_CORE_BASICS_ASM_H
//--------------------------------------------------------------------
-// PURPOSE: This header should be imported by every single asm and
-// (indirectly) by every C file in the core. It contains really basic
-// things needed everywhere.
+// PURPOSE: This header should be imported by every single asm file
+// in the core. It contains really basic things needed everywhere.
//--------------------------------------------------------------------
#include "pub_tool_basics_asm.h"
Modified: trunk/include/pub_tool_basics.h
===================================================================
--- trunk/include/pub_tool_basics.h 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/include/pub_tool_basics.h 2009-04-24 04:57:07 UTC (rev 9601)
@@ -46,9 +46,6 @@
// Addr32, Addr64, HWord, HChar, Bool, False and True.
#include "libvex_basictypes.h"
-// For the VG_() macro
-#include "pub_tool_basics_asm.h"
-
// For varargs types
#include <stdarg.h>
@@ -57,6 +54,27 @@
/* ---------------------------------------------------------------------
+ symbol prefixing
+ ------------------------------------------------------------------ */
+
+// All symbols externally visible from Valgrind are prefixed
+// as specified here to avoid namespace conflict problems.
+//
+// VG_ is for symbols exported from modules. ML_ (module-local) is
+// for symbols which are not intended to be visible outside modules,
+// but which cannot be declared as C 'static's since they need to be
+// visible across C files within a given module. It is a mistake for
+// a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
+// Likewise it is a mistake for a VG_ name to appear in a priv_*.h
+// file.
+
+#define VGAPPEND(str1,str2) str1##str2
+
+#define VG_(str) VGAPPEND(vgPlain_, str)
+#define ML_(str) VGAPPEND(vgModuleLocal_, str)
+
+
+/* ---------------------------------------------------------------------
builtin types
------------------------------------------------------------------ */
Modified: trunk/include/pub_tool_basics_asm.h
===================================================================
--- trunk/include/pub_tool_basics_asm.h 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/include/pub_tool_basics_asm.h 2009-04-24 04:57:07 UTC (rev 9601)
@@ -1,7 +1,6 @@
/*--------------------------------------------------------------------*/
-/*--- Header imported directly by every tool asm file, and ---*/
-/*--- (via pub_tool_basics.h) by every tool C file. ---*/
+/*--- Header imported directly by every tool asm file. ---*/
/*--- pub_tool_basics_asm.h ---*/
/*--------------------------------------------------------------------*/
@@ -33,19 +32,22 @@
#ifndef __PUB_TOOL_BASICS_ASM_H
#define __PUB_TOOL_BASICS_ASM_H
-/* All symbols externally visible from Valgrind are prefixed
- as specified here to avoid namespace conflict problems. */
+// See pub_tool_basics.h for the purpose of these macros.
+//
+// Note that although the macros here (which are used in asm files) have the
+// same name as those in pub_tool_basics.h (which are used in C files), they
+// have different definitions. Actually, on Linux the definitions are the
+// same, but on Darwin they are different. The reason is that C names on
+// Darwin always get a '_' prepended to them by the compiler. But in order to
+// refer to them from asm code, we have to add the '_' ourselves. Having two
+// versions of these macros makes that difference transparent, so we can use
+// VG_/ML_ in both asm and C files.
+//
+// Note also that the exact prefixes used have to match those used in
+// pub_tool_basics.h.
#define VGAPPEND(str1,str2) str1##str2
-
-/* VG_ is for symbols exported from modules. ML_ (module-local) is
- for symbols which are not intended to be visible outside modules,
- but which cannot be declared as C 'static's since they need to be
- visible across C files within a given module. It is a mistake for
- a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
- Likewise it is a mistake for a VG_ name to appear in a priv_*.h
- file.
-*/
+
#define VG_(str) VGAPPEND(vgPlain_, str)
#define ML_(str) VGAPPEND(vgModuleLocal_, str)
Modified: trunk/massif/tests/ignored.c
===================================================================
--- trunk/massif/tests/ignored.c 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/massif/tests/ignored.c 2009-04-24 04:57:07 UTC (rev 9601)
@@ -45,5 +45,7 @@
ignore2(x, ignored_x);
x = realloc(ignored_x, 0); // equivalent to 'free(ignored_x)'.
+
+ return 0;
}
Modified: trunk/tests/asm.h
===================================================================
--- trunk/tests/asm.h 2009-04-24 04:37:30 UTC (rev 9600)
+++ trunk/tests/asm.h 2009-04-24 04:57:07 UTC (rev 9601)
@@ -8,4 +8,4 @@
#define VG_SYM(x) #x
// This one is for use in asm files.
-#define VG_SYM_ASM(x) _#x
+#define VG_SYM_ASM(x) x
|
|
From: <sv...@va...> - 2009-04-24 04:37:39
|
Author: njn
Date: 2009-04-24 05:37:30 +0100 (Fri, 24 Apr 2009)
New Revision: 9600
Log:
Separate VG_ and ML_ definitions for asm files vs. C files. This lets us
paper over the fact that C names in Darwin get an underscore prepended to
them, and get rid of the _VG_ and _ML_ macros that were being used on
Darwin.
As part of this, pub_{core,tool}_basics_asm.h only now are included in asm
files, not C files. This is no great loss as they only included the VG_ and
ML_ definitions.
This allowed m_cpuid-{x86,amd64}-darwin.S to be removed; m_cpuid.S can now
be used as is on Darwin.
Also removed an unnecessary bit of conditional compilation in fpu-28-108.S
and fixed VG_SYM_ASM in tests/asm.h.
Removed:
branches/DARWIN/coregrind/m_cpuid-amd64-darwin.S
branches/DARWIN/coregrind/m_cpuid-x86-darwin.S
Modified:
branches/DARWIN/cachegrind/tests/x86/fpu-28-108.S
branches/DARWIN/coregrind/Makefile.am
branches/DARWIN/coregrind/m_cpuid.S
branches/DARWIN/coregrind/m_dispatch/dispatch-amd64-darwin.S
branches/DARWIN/coregrind/m_dispatch/dispatch-x86-darwin.S
branches/DARWIN/coregrind/m_start-amd64-darwin.S
branches/DARWIN/coregrind/m_start-x86-darwin.S
branches/DARWIN/coregrind/m_syswrap/syscall-amd64-darwin.S
branches/DARWIN/coregrind/m_syswrap/syscall-x86-darwin.S
branches/DARWIN/coregrind/m_trampoline.S
branches/DARWIN/coregrind/pub_core_basics.h
branches/DARWIN/coregrind/pub_core_basics_asm.h
branches/DARWIN/include/pub_tool_basics.h
branches/DARWIN/include/pub_tool_basics_asm.h
branches/DARWIN/tests/asm.h
Modified: branches/DARWIN/cachegrind/tests/x86/fpu-28-108.S
===================================================================
--- branches/DARWIN/cachegrind/tests/x86/fpu-28-108.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/cachegrind/tests/x86/fpu-28-108.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -4,6 +4,8 @@
/* Useful listing:
gcc -o tests/fpu_28_108 tests/fpu_28_108.S -Wa,-a */
+#include "tests/asm.h"
+
.data
fooble:
.long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@@ -12,13 +14,8 @@
bar:
.text
-#if defined(__APPLE__)
-.globl _main
-_main:
-#else
-.globl main
-main:
-#endif
+.globl VG_SYM_ASM(main)
+VG_SYM_ASM(main):
fstsw fooble
fsave fooble
frstor fooble
Modified: branches/DARWIN/coregrind/Makefile.am
===================================================================
--- branches/DARWIN/coregrind/Makefile.am 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/Makefile.am 2009-04-24 04:37:30 UTC (rev 9600)
@@ -455,19 +455,17 @@
libcoregrind_ppc64_aix5_a_CCASFLAGS = $(AM_CCASFLAGS_PPC64_AIX5)
libcoregrind_ppc64_aix5_a_AR = $(AR) -X64 cru
-# DDD: m_cpuid-x86-darwin.S should be merged into m_cpuid.S, they're very
-# similar. Likewise for m_cpuid-amd64-darwin.S.
libcoregrind_x86_darwin_a_SOURCES = \
$(COREGRIND_SOURCES_COMMON) \
$(COREGRIND_DARWIN_SOURCE) \
m_coredump/coredump-x86-darwin.c \
+ m_cpuid.S \
m_dispatch/dispatch-x86-darwin.S \
- m_sigframe/sigframe-x86-darwin.c \
- m_syswrap/syscall-x86-darwin.S \
- m_syswrap/syswrap-x86-darwin.c \
m_mach/mach_traps-x86-darwin.S \
+ m_sigframe/sigframe-x86-darwin.c \
m_start-x86-darwin.S \
- m_cpuid-x86-darwin.S
+ m_syswrap/syscall-x86-darwin.S \
+ m_syswrap/syswrap-x86-darwin.c
libcoregrind_x86_darwin_a_CPPFLAGS = $(AM_CPPFLAGS_X86_DARWIN)
libcoregrind_x86_darwin_a_CFLAGS = $(AM_CFLAGS_X86_DARWIN)
libcoregrind_x86_darwin_a_CCASFLAGS = $(AM_CCASFLAGS_X86_DARWIN)
@@ -477,13 +475,13 @@
$(COREGRIND_SOURCES_COMMON) \
$(COREGRIND_DARWIN_SOURCE) \
m_coredump/coredump-amd64-darwin.c \
+ m_cpuid.S \
m_dispatch/dispatch-amd64-darwin.S \
- m_sigframe/sigframe-amd64-darwin.c \
- m_syswrap/syscall-amd64-darwin.S \
- m_syswrap/syswrap-amd64-darwin.c \
m_mach/mach_traps-amd64-darwin.S \
+ m_sigframe/sigframe-amd64-darwin.c \
m_start-amd64-darwin.S \
- m_cpuid-amd64-darwin.S
+ m_syswrap/syscall-amd64-darwin.S \
+ m_syswrap/syswrap-amd64-darwin.c
libcoregrind_amd64_darwin_a_CPPFLAGS = $(AM_CPPFLAGS_AMD64_DARWIN)
libcoregrind_amd64_darwin_a_CFLAGS = $(AM_CFLAGS_AMD64_DARWIN)
libcoregrind_amd64_darwin_a_CCASFLAGS = $(AM_CCASFLAGS_AMD64_DARWIN)
Deleted: branches/DARWIN/coregrind/m_cpuid-amd64-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_cpuid-amd64-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_cpuid-amd64-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -1,84 +0,0 @@
-
-/*--------------------------------------------------------------------*/
-/*--- CPUID interface. m_cpuid-amd64-darwin.S ---*/
-/*--------------------------------------------------------------------*/
-
-/*
- This file is part of Valgrind, a dynamic binary instrumentation
- framework.
-
- Copyright (C) 2000-2007 Julian Seward
- js...@ac...
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307, USA.
-
- The GNU General Public License is contained in the file COPYING.
-*/
-
-#include "pub_core_basics_asm.h"
-
-/*
- Bool VG_(has_cpuid)(void)
- */
-.globl _VG_(has_cpuid)
-_VG_(has_cpuid):
- movq $1, %rax
- ret
-
-/*
- void VG_(cpuid)(UInt eax,
- UInt* eax_ret, UInt* ebx_ret, UInt* ecx_ret, UInt* edx_ret)
- */
-.globl _VG_(cpuid)
-_VG_(cpuid):
- pushq %rbp
- movq %rsp, %rbp
- pushq %rbx
- movl %edi, %eax
- movq %rdx, %rdi
- movq %rcx, %r9
- /*
- eax_ret now in %rsi
- ebx_ret now in %rdi
- ecx_ret now in %r9
- edx_ret now in %r8
- */
- cpuid
- testq %rsi, %rsi
- jz 1f
- movl %eax, (%rsi)
- 1:
- testq %rdi, %rdi
- jz 2f
- movl %ebx, (%rdi)
- 2:
- testq %r9, %r9
- jz 3f
- movl %ecx, (%r9)
- 3:
- testq %r8, %r8
- jz 4f
- movl %edx, (%r8)
- 4:
- popq %rbx
- movq %rbp, %rsp
- popq %rbp
- ret
-
-
-/*--------------------------------------------------------------------*/
-/*--- end ---*/
-/*--------------------------------------------------------------------*/
Deleted: branches/DARWIN/coregrind/m_cpuid-x86-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_cpuid-x86-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_cpuid-x86-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -1,88 +0,0 @@
-
-/*--------------------------------------------------------------------*/
-/*--- CPUID interface. m_cpuid-x86-darwin.S ---*/
-/*--------------------------------------------------------------------*/
-
-/*
- This file is part of Valgrind, a dynamic binary instrumentation
- framework.
-
- Copyright (C) 2000-2006 Julian Seward
- js...@ac...
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307, USA.
-
- The GNU General Public License is contained in the file COPYING.
-*/
-
-#include "pub_tool_basics_asm.h"
-
-/*
- Bool VG_(has_cpuid)(void)
- Assume everything Darwin runs on has cpuid.
- */
-.globl _VG_(has_cpuid)
-_VG_(has_cpuid):
- movl $1, %eax
- ret
-
-/*
- void VG_(cpuid)(UInt eax,
- UInt* eax_ret, UInt* ebx_ret, UInt* ecx_ret, UInt* edx_ret)
- */
-.globl _VG_(cpuid)
-_VG_(cpuid):
- pushl %ebp
- movl %esp, %ebp
- pushl %eax
- pushl %ebx
- pushl %ecx
- pushl %edx
- pushl %esi
- movl 8(%ebp), %eax
- cpuid
- movl 12(%ebp), %esi
- testl %esi, %esi
- jz 1f
- movl %eax, (%esi)
- 1:
- movl 16(%ebp), %esi
- testl %esi, %esi
- jz 2f
- movl %ebx, (%esi)
- 2:
- movl 20(%ebp), %esi
- testl %esi, %esi
- jz 3f
- movl %ecx, (%esi)
- 3:
- movl 24(%ebp), %esi
- testl %esi, %esi
- jz 4f
- movl %edx, (%esi)
- 4:
- popl %esi
- popl %edx
- popl %ecx
- popl %ebx
- popl %eax
- movl %ebp, %esp
- popl %ebp
- ret
-
-/*--------------------------------------------------------------------*/
-/*--- end ---*/
-/*--------------------------------------------------------------------*/
Modified: branches/DARWIN/coregrind/m_cpuid.S
===================================================================
--- branches/DARWIN/coregrind/m_cpuid.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_cpuid.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -143,7 +143,7 @@
ret
#endif
-#if defined(VGA_x86) || defined(VGA_amd64)
+#if defined(VGO_linux)
/* Let the linker know we don't need an executable stack */
.section .note.GNU-stack,"",@progbits
#endif
Modified: branches/DARWIN/coregrind/m_dispatch/dispatch-amd64-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_dispatch/dispatch-amd64-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_dispatch/dispatch-amd64-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -51,8 +51,8 @@
*/
.text
-.globl _VG_(run_innerloop)
-_VG_(run_innerloop):
+.globl VG_(run_innerloop)
+VG_(run_innerloop):
/* %rdi holds guest_state */
/* %rsi holds do_profiling */
@@ -72,7 +72,7 @@
pushq %r15
pushq %rdi /* guest_state */
- movq _VG_(dispatch_ctr)@GOTPCREL(%rip), %r15
+ movq VG_(dispatch_ctr)@GOTPCREL(%rip), %r15
movl (%r15), %r15d
pushq %r15
@@ -104,8 +104,8 @@
/* fall into main loop (the right one) */
cmpq $0, %rsi
- je _VG_(run_innerloop__dispatch_unprofiled)
- jmp _VG_(run_innerloop__dispatch_profiled)
+ je VG_(run_innerloop__dispatch_unprofiled)
+ jmp VG_(run_innerloop__dispatch_profiled)
/*NOTREACHED*/
/*----------------------------------------------------*/
@@ -113,14 +113,14 @@
/*----------------------------------------------------*/
.align 4
-.globl _VG_(run_innerloop__dispatch_unprofiled)
-_VG_(run_innerloop__dispatch_unprofiled):
+.globl VG_(run_innerloop__dispatch_unprofiled)
+VG_(run_innerloop__dispatch_unprofiled):
/* AT ENTRY: %rax is next guest addr, %rbp is possibly
modified guest state ptr */
/* Has the guest state pointer been messed with? If yes, exit. */
cmpq 8(%rsp), %rbp
- movq _VG_(tt_fast)@GOTPCREL(%rip), %rcx
+ movq VG_(tt_fast)@GOTPCREL(%rip), %rcx
jnz gsp_changed
/* save the jump address in the guest state */
@@ -151,14 +151,14 @@
/*----------------------------------------------------*/
.align 4
-.globl _VG_(run_innerloop__dispatch_profiled)
-_VG_(run_innerloop__dispatch_profiled):
+.globl VG_(run_innerloop__dispatch_profiled)
+VG_(run_innerloop__dispatch_profiled):
/* AT ENTRY: %rax is next guest addr, %rbp is possibly
modified guest state ptr */
/* Has the guest state pointer been messed with? If yes, exit. */
cmpq 8(%rsp), %rbp
- movq _VG_(tt_fast)@GOTPCREL(%rip), %rcx
+ movq VG_(tt_fast)@GOTPCREL(%rip), %rcx
jnz gsp_changed
/* save the jump address in the guest state */
@@ -178,7 +178,7 @@
jnz fast_lookup_failed
/* increment bb profile counter */
- movq _VG_(tt_fastN)@GOTPCREL(%rip), %rdx
+ movq VG_(tt_fastN)@GOTPCREL(%rip), %rdx
shrq $1, %rbx /* entry# * sizeof(UInt*) */
movq (%rdx,%rbx,1), %rdx
addl $1, (%rdx)
@@ -256,7 +256,7 @@
/* restore VG_(dispatch_ctr) */
popq %r14
- movq _VG_(dispatch_ctr)@GOTPCREL(%rip), %r15
+ movq VG_(dispatch_ctr)@GOTPCREL(%rip), %r15
movl %r14d, (%r15)
popq %rdi
@@ -295,8 +295,8 @@
3: output: guest state pointer afterwards (== thread return code)
*/
.align 4
-.globl _VG_(run_a_noredir_translation)
-_VG_(run_a_noredir_translation):
+.globl VG_(run_a_noredir_translation)
+VG_(run_a_noredir_translation):
/* Save callee-saves regs */
pushq %rbx
pushq %rbp
@@ -312,8 +312,8 @@
ud2
/* If the translation has been correctly constructed, we
should resume at the the following label. */
-.globl _VG_(run_a_noredir_translation__return_point)
-_VG_(run_a_noredir_translation__return_point):
+.globl VG_(run_a_noredir_translation__return_point)
+VG_(run_a_noredir_translation__return_point):
popq %rdi
movq %rax, 16(%rdi)
movq %rbp, 24(%rdi)
Modified: branches/DARWIN/coregrind/m_dispatch/dispatch-x86-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_dispatch/dispatch-x86-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_dispatch/dispatch-x86-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -42,15 +42,15 @@
.align 2
/* m_transtab.c */
-.globl _VG_(tt_fast)
+.globl VG_(tt_fast)
.align 4
-_VG_(tt_fast): .space VG_TT_FAST_SIZE*8, 0 /* (2*Addr) [VG_TT_FAST_SIZE] */
-.globl _VG_(tt_fastN)
-_VG_(tt_fastN): .space VG_TT_FAST_SIZE*4, 0 /* (UInt *) [VG_TT_FAST_SIZE] */
+VG_(tt_fast): .space VG_TT_FAST_SIZE*8, 0 /* (2*Addr) [VG_TT_FAST_SIZE] */
+.globl VG_(tt_fastN)
+VG_(tt_fastN): .space VG_TT_FAST_SIZE*4, 0 /* (UInt *) [VG_TT_FAST_SIZE] */
/* scheduler.c */
-.globl _VG_(dispatch_ctr)
-_VG_(dispatch_ctr): .long 0
+.globl VG_(dispatch_ctr)
+VG_(dispatch_ctr): .long 0
/*------------------------------------------------------------*/
@@ -65,15 +65,15 @@
/*----------------------------------------------------*/
/* signature:
-UWord _VG_(run_innerloop) ( void* guest_state, UWord do_profiling );
+UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling );
*/
.text
-.globl _VG_(run_innerloop)
-_VG_(run_innerloop):
+.globl VG_(run_innerloop)
+VG_(run_innerloop):
/* 4(%esp) holds guest_state */
/* 8(%esp) holds do_profiling */
- /* ----- entry point to _VG_(run_innerloop) ----- */
+ /* ----- entry point to VG_(run_innerloop) ----- */
pushl %ebx
pushl %ecx
pushl %edx
@@ -100,7 +100,7 @@
/* set host SSE control word to the default mode expected
by VEX-generated code. */
- cmpl $0, _VG_(machine_x86_have_mxcsr)
+ cmpl $0, VG_(machine_x86_have_mxcsr)
jz L1
pushl $0x1F80
ldmxcsr (%esp)
@@ -111,16 +111,16 @@
/* fall into main loop (the right one) */
cmpl $0, 32(%esp) /* do_profiling */
- je _VG_(run_innerloop__dispatch_unprofiled)
- jmp _VG_(run_innerloop__dispatch_profiled)
+ je VG_(run_innerloop__dispatch_unprofiled)
+ jmp VG_(run_innerloop__dispatch_profiled)
/*NOTREACHED*/
/*----------------------------------------------------*/
/*--- NO-PROFILING (standard) dispatcher ---*/
/*----------------------------------------------------*/
-.globl _VG_(run_innerloop__dispatch_unprofiled)
-_VG_(run_innerloop__dispatch_unprofiled):
+.globl VG_(run_innerloop__dispatch_unprofiled)
+VG_(run_innerloop__dispatch_unprofiled):
/* AT ENTRY: %eax is next guest addr, %ebp is possibly
modified guest state ptr */
@@ -132,14 +132,14 @@
movl %eax, OFFSET_x86_EIP(%ebp)
/* Are we out of timeslice? If yes, defer to scheduler. */
- subl $1, _VG_(dispatch_ctr)
+ subl $1, VG_(dispatch_ctr)
jz counter_is_zero
/* try a fast lookup in the translation cache */
movl %eax, %ebx
andl $VG_TT_FAST_MASK, %ebx
- movl 0+_VG_(tt_fast)(,%ebx,8), %esi /* .guest */
- movl 4+_VG_(tt_fast)(,%ebx,8), %edi /* .host */
+ movl 0+VG_(tt_fast)(,%ebx,8), %esi /* .guest */
+ movl 4+VG_(tt_fast)(,%ebx,8), %edi /* .host */
cmpl %eax, %esi
jnz fast_lookup_failed
@@ -147,15 +147,15 @@
jmp *%edi
ud2 /* persuade insn decoders not to speculate past here */
/* generated code should run, then jump back to
- _VG_(run_innerloop__dispatch_unprofiled). */
+ VG_(run_innerloop__dispatch_unprofiled). */
/*NOTREACHED*/
/*----------------------------------------------------*/
/*--- PROFILING dispatcher (can be much slower) ---*/
/*----------------------------------------------------*/
-.globl _VG_(run_innerloop__dispatch_profiled)
-_VG_(run_innerloop__dispatch_profiled):
+.globl VG_(run_innerloop__dispatch_profiled)
+VG_(run_innerloop__dispatch_profiled):
/* AT ENTRY: %eax is next guest addr, %ebp is possibly
modified guest state ptr */
@@ -167,20 +167,20 @@
movl %eax, OFFSET_x86_EIP(%ebp)
/* Are we out of timeslice? If yes, defer to scheduler. */
- subl $1, _VG_(dispatch_ctr)
+ subl $1, VG_(dispatch_ctr)
jz counter_is_zero
/* try a fast lookup in the translation cache */
movl %eax, %ebx
andl $VG_TT_FAST_MASK, %ebx
- movl 0+_VG_(tt_fast)(,%ebx,8), %esi /* .guest */
- movl 4+_VG_(tt_fast)(,%ebx,8), %edi /* .host */
+ movl 0+VG_(tt_fast)(,%ebx,8), %esi /* .guest */
+ movl 4+VG_(tt_fast)(,%ebx,8), %edi /* .host */
cmpl %eax, %esi
jnz fast_lookup_failed
/* increment bb profile counter */
/* note: innocuous as this sounds, it causes a huge amount more
stress on D1 and significantly slows everything down. */
- movl _VG_(tt_fastN)(,%ebx,4), %edx
+ movl VG_(tt_fastN)(,%ebx,4), %edx
/* Use "addl $1", not "incl", to avoid partial-flags stall on P4 */
addl $1, (%edx)
@@ -188,7 +188,7 @@
jmp *%edi
ud2 /* persuade insn decoders not to speculate past here */
/* generated code should run, then jump back to
- _VG_(run_innerloop__dispatch_profiled). */
+ VG_(run_innerloop__dispatch_profiled). */
/*NOTREACHED*/
/*----------------------------------------------------*/
@@ -212,7 +212,7 @@
counter_is_zero:
/* %EIP is up to date here */
/* back out decrement of the dispatch counter */
- addl $1, _VG_(dispatch_ctr)
+ addl $1, VG_(dispatch_ctr)
movl $VG_TRC_INNER_COUNTERZERO, %eax
jmp run_innerloop_exit
/*NOTREACHED*/
@@ -220,7 +220,7 @@
fast_lookup_failed:
/* %EIP is up to date here */
/* back out decrement of the dispatch counter */
- addl $1, _VG_(dispatch_ctr)
+ addl $1, VG_(dispatch_ctr)
movl $VG_TRC_INNER_FASTMISS, %eax
jmp run_innerloop_exit
/*NOTREACHED*/
@@ -242,7 +242,7 @@
popl %esi /* get rid of the word without trashing %eflags */
jnz invariant_violation
#endif
- cmpl $0, _VG_(machine_x86_have_mxcsr)
+ cmpl $0, VG_(machine_x86_have_mxcsr)
jz L2
pushl $0
stmxcsr (%esp)
@@ -275,7 +275,7 @@
/*------------------------------------------------------------*/
/* signature:
-void _VG_(run_a_noredir_translation) ( UWord* argblock );
+void VG_(run_a_noredir_translation) ( UWord* argblock );
*/
/* Run a no-redir translation. argblock points to 4 UWords, 2 to carry args
@@ -285,8 +285,8 @@
2: output: next guest PC
3: output: guest state pointer afterwards (== thread return code)
*/
-.globl _VG_(run_a_noredir_translation)
-_VG_(run_a_noredir_translation):
+.globl VG_(run_a_noredir_translation)
+VG_(run_a_noredir_translation):
/* Save callee-saves regs */
pushl %esi
pushl %edi
@@ -300,8 +300,8 @@
ud2
/* If the translation has been correctly constructed, we
should resume at the the following label. */
-.globl _VG_(run_a_noredir_translation__return_point)
-_VG_(run_a_noredir_translation__return_point):
+.globl VG_(run_a_noredir_translation__return_point)
+VG_(run_a_noredir_translation__return_point):
movl 20(%esp), %edi
movl %eax, 8(%edi) /* argblock[2] */
movl %ebp, 12(%edi) /* argblock[3] */
Modified: branches/DARWIN/coregrind/m_start-amd64-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_start-amd64-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_start-amd64-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -28,6 +28,8 @@
The GNU General Public License is contained in the file COPYING.
*/
+#include "pub_core_basics_asm.h"
+
.text
.align 3,0x90
Ldyld_stub_binding_helper:
Modified: branches/DARWIN/coregrind/m_start-x86-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_start-x86-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_start-x86-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -28,6 +28,8 @@
The GNU General Public License is contained in the file COPYING.
*/
+#include "pub_core_basics_asm.h"
+
.text
.align 2,0x90
Ldyld_stub_binding_helper:
Modified: branches/DARWIN/coregrind/m_syswrap/syscall-amd64-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syscall-amd64-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_syswrap/syscall-amd64-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -192,16 +192,16 @@
.endmacro
-.globl _ML_(do_syscall_for_client_unix_WRK)
-_ML_(do_syscall_for_client_unix_WRK):
+.globl ML_(do_syscall_for_client_unix_WRK)
+ML_(do_syscall_for_client_unix_WRK):
DO_SYSCALL UNIX
-.globl _ML_(do_syscall_for_client_mach_WRK)
-_ML_(do_syscall_for_client_mach_WRK):
+.globl ML_(do_syscall_for_client_mach_WRK)
+ML_(do_syscall_for_client_mach_WRK):
DO_SYSCALL MACH
-.globl _ML_(do_syscall_for_client_mdep_WRK)
-_ML_(do_syscall_for_client_mdep_WRK):
+.globl ML_(do_syscall_for_client_mdep_WRK)
+ML_(do_syscall_for_client_mdep_WRK):
DO_SYSCALL MDEP
.data
@@ -214,38 +214,38 @@
#define FOO(scclass,labelno) L_##scclass##_##labelno
#define MK_L_SCCLASS_N(scclass,labelno) FOO(scclass,labelno)
-.globl _ML_(blksys_setup_MACH)
-.globl _ML_(blksys_restart_MACH)
-.globl _ML_(blksys_complete_MACH)
-.globl _ML_(blksys_committed_MACH)
-.globl _ML_(blksys_finished_MACH)
-_ML_(blksys_setup_MACH): .quad MK_L_SCCLASS_N(MACH,1)
-_ML_(blksys_restart_MACH): .quad MK_L_SCCLASS_N(MACH,2)
-_ML_(blksys_complete_MACH): .quad MK_L_SCCLASS_N(MACH,3)
-_ML_(blksys_committed_MACH): .quad MK_L_SCCLASS_N(MACH,4)
-_ML_(blksys_finished_MACH): .quad MK_L_SCCLASS_N(MACH,5)
+.globl ML_(blksys_setup_MACH)
+.globl ML_(blksys_restart_MACH)
+.globl ML_(blksys_complete_MACH)
+.globl ML_(blksys_committed_MACH)
+.globl ML_(blksys_finished_MACH)
+ML_(blksys_setup_MACH): .quad MK_L_SCCLASS_N(MACH,1)
+ML_(blksys_restart_MACH): .quad MK_L_SCCLASS_N(MACH,2)
+ML_(blksys_complete_MACH): .quad MK_L_SCCLASS_N(MACH,3)
+ML_(blksys_committed_MACH): .quad MK_L_SCCLASS_N(MACH,4)
+ML_(blksys_finished_MACH): .quad MK_L_SCCLASS_N(MACH,5)
-.globl _ML_(blksys_setup_MDEP)
-.globl _ML_(blksys_restart_MDEP)
-.globl _ML_(blksys_complete_MDEP)
-.globl _ML_(blksys_committed_MDEP)
-.globl _ML_(blksys_finished_MDEP)
-_ML_(blksys_setup_MDEP): .quad MK_L_SCCLASS_N(MDEP,1)
-_ML_(blksys_restart_MDEP): .quad MK_L_SCCLASS_N(MDEP,2)
-_ML_(blksys_complete_MDEP): .quad MK_L_SCCLASS_N(MDEP,3)
-_ML_(blksys_committed_MDEP): .quad MK_L_SCCLASS_N(MDEP,4)
-_ML_(blksys_finished_MDEP): .quad MK_L_SCCLASS_N(MDEP,5)
+.globl ML_(blksys_setup_MDEP)
+.globl ML_(blksys_restart_MDEP)
+.globl ML_(blksys_complete_MDEP)
+.globl ML_(blksys_committed_MDEP)
+.globl ML_(blksys_finished_MDEP)
+ML_(blksys_setup_MDEP): .quad MK_L_SCCLASS_N(MDEP,1)
+ML_(blksys_restart_MDEP): .quad MK_L_SCCLASS_N(MDEP,2)
+ML_(blksys_complete_MDEP): .quad MK_L_SCCLASS_N(MDEP,3)
+ML_(blksys_committed_MDEP): .quad MK_L_SCCLASS_N(MDEP,4)
+ML_(blksys_finished_MDEP): .quad MK_L_SCCLASS_N(MDEP,5)
-.globl _ML_(blksys_setup_UNIX)
-.globl _ML_(blksys_restart_UNIX)
-.globl _ML_(blksys_complete_UNIX)
-.globl _ML_(blksys_committed_UNIX)
-.globl _ML_(blksys_finished_UNIX)
-_ML_(blksys_setup_UNIX): .quad MK_L_SCCLASS_N(UNIX,1)
-_ML_(blksys_restart_UNIX): .quad MK_L_SCCLASS_N(UNIX,2)
-_ML_(blksys_complete_UNIX): .quad MK_L_SCCLASS_N(UNIX,3)
-_ML_(blksys_committed_UNIX): .quad MK_L_SCCLASS_N(UNIX,4)
-_ML_(blksys_finished_UNIX): .quad MK_L_SCCLASS_N(UNIX,5)
+.globl ML_(blksys_setup_UNIX)
+.globl ML_(blksys_restart_UNIX)
+.globl ML_(blksys_complete_UNIX)
+.globl ML_(blksys_committed_UNIX)
+.globl ML_(blksys_finished_UNIX)
+ML_(blksys_setup_UNIX): .quad MK_L_SCCLASS_N(UNIX,1)
+ML_(blksys_restart_UNIX): .quad MK_L_SCCLASS_N(UNIX,2)
+ML_(blksys_complete_UNIX): .quad MK_L_SCCLASS_N(UNIX,3)
+ML_(blksys_committed_UNIX): .quad MK_L_SCCLASS_N(UNIX,4)
+ML_(blksys_finished_UNIX): .quad MK_L_SCCLASS_N(UNIX,5)
/*--------------------------------------------------------------------*/
Modified: branches/DARWIN/coregrind/m_syswrap/syscall-x86-darwin.S
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syscall-x86-darwin.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_syswrap/syscall-x86-darwin.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -61,7 +61,7 @@
Prototype:
- Int _ML_(do_syscall_for_client_WRK)(
+ Int ML_(do_syscall_for_client_WRK)(
Int syscallno, // ebp+8
void* guest_state, // ebp+12
const vki_sigset_t *sysmask, // ebp+16
@@ -190,16 +190,16 @@
.endmacro
-.globl _ML_(do_syscall_for_client_unix_WRK)
-_ML_(do_syscall_for_client_unix_WRK):
+.globl ML_(do_syscall_for_client_unix_WRK)
+ML_(do_syscall_for_client_unix_WRK):
DO_SYSCALL UNIX
-.globl _ML_(do_syscall_for_client_mach_WRK)
-_ML_(do_syscall_for_client_mach_WRK):
+.globl ML_(do_syscall_for_client_mach_WRK)
+ML_(do_syscall_for_client_mach_WRK):
DO_SYSCALL MACH
-.globl _ML_(do_syscall_for_client_mdep_WRK)
-_ML_(do_syscall_for_client_mdep_WRK):
+.globl ML_(do_syscall_for_client_mdep_WRK)
+ML_(do_syscall_for_client_mdep_WRK):
DO_SYSCALL MDEP
.data
@@ -212,38 +212,38 @@
#define FOO(scclass,labelno) L_##scclass##_##labelno
#define MK_L_SCCLASS_N(scclass,labelno) FOO(scclass,labelno)
-.globl _ML_(blksys_setup_MACH)
-.globl _ML_(blksys_restart_MACH)
-.globl _ML_(blksys_complete_MACH)
-.globl _ML_(blksys_committed_MACH)
-.globl _ML_(blksys_finished_MACH)
-_ML_(blksys_setup_MACH): .long MK_L_SCCLASS_N(MACH,1)
-_ML_(blksys_restart_MACH): .long MK_L_SCCLASS_N(MACH,2)
-_ML_(blksys_complete_MACH): .long MK_L_SCCLASS_N(MACH,3)
-_ML_(blksys_committed_MACH): .long MK_L_SCCLASS_N(MACH,4)
-_ML_(blksys_finished_MACH): .long MK_L_SCCLASS_N(MACH,5)
+.globl ML_(blksys_setup_MACH)
+.globl ML_(blksys_restart_MACH)
+.globl ML_(blksys_complete_MACH)
+.globl ML_(blksys_committed_MACH)
+.globl ML_(blksys_finished_MACH)
+ML_(blksys_setup_MACH): .long MK_L_SCCLASS_N(MACH,1)
+ML_(blksys_restart_MACH): .long MK_L_SCCLASS_N(MACH,2)
+ML_(blksys_complete_MACH): .long MK_L_SCCLASS_N(MACH,3)
+ML_(blksys_committed_MACH): .long MK_L_SCCLASS_N(MACH,4)
+ML_(blksys_finished_MACH): .long MK_L_SCCLASS_N(MACH,5)
-.globl _ML_(blksys_setup_MDEP)
-.globl _ML_(blksys_restart_MDEP)
-.globl _ML_(blksys_complete_MDEP)
-.globl _ML_(blksys_committed_MDEP)
-.globl _ML_(blksys_finished_MDEP)
-_ML_(blksys_setup_MDEP): .long MK_L_SCCLASS_N(MDEP,1)
-_ML_(blksys_restart_MDEP): .long MK_L_SCCLASS_N(MDEP,2)
-_ML_(blksys_complete_MDEP): .long MK_L_SCCLASS_N(MDEP,3)
-_ML_(blksys_committed_MDEP): .long MK_L_SCCLASS_N(MDEP,4)
-_ML_(blksys_finished_MDEP): .long MK_L_SCCLASS_N(MDEP,5)
+.globl ML_(blksys_setup_MDEP)
+.globl ML_(blksys_restart_MDEP)
+.globl ML_(blksys_complete_MDEP)
+.globl ML_(blksys_committed_MDEP)
+.globl ML_(blksys_finished_MDEP)
+ML_(blksys_setup_MDEP): .long MK_L_SCCLASS_N(MDEP,1)
+ML_(blksys_restart_MDEP): .long MK_L_SCCLASS_N(MDEP,2)
+ML_(blksys_complete_MDEP): .long MK_L_SCCLASS_N(MDEP,3)
+ML_(blksys_committed_MDEP): .long MK_L_SCCLASS_N(MDEP,4)
+ML_(blksys_finished_MDEP): .long MK_L_SCCLASS_N(MDEP,5)
-.globl _ML_(blksys_setup_UNIX)
-.globl _ML_(blksys_restart_UNIX)
-.globl _ML_(blksys_complete_UNIX)
-.globl _ML_(blksys_committed_UNIX)
-.globl _ML_(blksys_finished_UNIX)
-_ML_(blksys_setup_UNIX): .long MK_L_SCCLASS_N(UNIX,1)
-_ML_(blksys_restart_UNIX): .long MK_L_SCCLASS_N(UNIX,2)
-_ML_(blksys_complete_UNIX): .long MK_L_SCCLASS_N(UNIX,3)
-_ML_(blksys_committed_UNIX): .long MK_L_SCCLASS_N(UNIX,4)
-_ML_(blksys_finished_UNIX): .long MK_L_SCCLASS_N(UNIX,5)
+.globl ML_(blksys_setup_UNIX)
+.globl ML_(blksys_restart_UNIX)
+.globl ML_(blksys_complete_UNIX)
+.globl ML_(blksys_committed_UNIX)
+.globl ML_(blksys_finished_UNIX)
+ML_(blksys_setup_UNIX): .long MK_L_SCCLASS_N(UNIX,1)
+ML_(blksys_restart_UNIX): .long MK_L_SCCLASS_N(UNIX,2)
+ML_(blksys_complete_UNIX): .long MK_L_SCCLASS_N(UNIX,3)
+ML_(blksys_committed_UNIX): .long MK_L_SCCLASS_N(UNIX,4)
+ML_(blksys_finished_UNIX): .long MK_L_SCCLASS_N(UNIX,5)
Modified: branches/DARWIN/coregrind/m_trampoline.S
===================================================================
--- branches/DARWIN/coregrind/m_trampoline.S 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/m_trampoline.S 2009-04-24 04:37:30 UTC (rev 9600)
@@ -743,19 +743,19 @@
/* a leading page of unexecutable code */
.fill 2048, 2, 0x0b0f /* `ud2` */
-.globl _VG_(trampoline_stuff_start)
-_VG_(trampoline_stuff_start):
+.globl VG_(trampoline_stuff_start)
+VG_(trampoline_stuff_start):
-.globl _VG_(x86_darwin_SUBST_FOR_sigreturn)
-_VG_(x86_darwin_SUBST_FOR_sigreturn):
+.globl VG_(x86_darwin_SUBST_FOR_sigreturn)
+VG_(x86_darwin_SUBST_FOR_sigreturn):
/* XXX does this need to have any special form? (cf x86-linux
version) */
movl $ __NR_DARWIN_FAKE_SIGRETURN, %eax
int $0x80
ud2
-.globl _VG_(darwin_REDIR_FOR_strlen)
-_VG_(darwin_REDIR_FOR_strlen):
+.globl VG_(darwin_REDIR_FOR_strlen)
+VG_(darwin_REDIR_FOR_strlen):
movl 4(%esp), %edx
movl %edx, %eax
jmp 1f
@@ -767,8 +767,8 @@
subl %edx, %eax
ret
-.globl _VG_(darwin_REDIR_FOR_strcat)
-_VG_(darwin_REDIR_FOR_strcat):
+.globl VG_(darwin_REDIR_FOR_strcat)
+VG_(darwin_REDIR_FOR_strcat):
pushl %esi
movl 8(%esp), %esi
movl 12(%esp), %ecx
@@ -791,8 +791,8 @@
ret
-.globl _VG_(darwin_REDIR_FOR_strcmp)
-_VG_(darwin_REDIR_FOR_strcmp):
+.globl VG_(darwin_REDIR_FOR_strcmp)
+VG_(darwin_REDIR_FOR_strcmp):
movl 4(%esp), %edx
movl 8(%esp), %ecx
jmp 1f
@@ -812,8 +812,8 @@
ret
-.globl _VG_(darwin_REDIR_FOR_strcpy)
-_VG_(darwin_REDIR_FOR_strcpy):
+.globl VG_(darwin_REDIR_FOR_strcpy)
+VG_(darwin_REDIR_FOR_strcpy):
pushl %ebp
movl %esp, %ebp
pushl %esi
@@ -834,8 +834,8 @@
leave
ret
-.globl _VG_(darwin_REDIR_FOR_strlcat)
-_VG_(darwin_REDIR_FOR_strlcat):
+.globl VG_(darwin_REDIR_FOR_strlcat)
+VG_(darwin_REDIR_FOR_strlcat):
pushl %ebp
movl %esp, %ebp
pushl %edi
@@ -864,7 +864,7 @@
3:
movl 12(%ebp), %eax
movl %eax, (%esp)
- call _VG_(darwin_REDIR_FOR_strlen)
+ call VG_(darwin_REDIR_FOR_strlen)
jmp 7f
4:
cmpl $1, %esi
@@ -889,8 +889,8 @@
ret
-.globl _VG_(trampoline_stuff_end)
-_VG_(trampoline_stuff_end):
+.globl VG_(trampoline_stuff_end)
+VG_(trampoline_stuff_end):
/* a trailing page of unexecutable code */
.fill 2048, 2, 0x0b0f /* `ud2` */
@@ -903,11 +903,11 @@
/* a leading page of unexecutable code */
.fill 2048, 2, 0x0b0f /* `ud2` */
-.globl _VG_(trampoline_stuff_start)
-_VG_(trampoline_stuff_start):
+.globl VG_(trampoline_stuff_start)
+VG_(trampoline_stuff_start):
-.globl _VG_(darwin_REDIR_FOR_strlen)
-_VG_(darwin_REDIR_FOR_strlen):
+.globl VG_(darwin_REDIR_FOR_strlen)
+VG_(darwin_REDIR_FOR_strlen):
movq %rdi, %rax
jmp 1f
0:
@@ -918,8 +918,8 @@
subq %rdi, %rax
ret
-.globl _VG_(darwin_REDIR_FOR_strcat)
-_VG_(darwin_REDIR_FOR_strcat):
+.globl VG_(darwin_REDIR_FOR_strcat)
+VG_(darwin_REDIR_FOR_strcat):
movq %rdi, %rdx
jmp 1f
0:
@@ -938,8 +938,8 @@
ret
-.globl _VG_(darwin_REDIR_FOR_strcmp)
-_VG_(darwin_REDIR_FOR_strcmp):
+.globl VG_(darwin_REDIR_FOR_strcmp)
+VG_(darwin_REDIR_FOR_strcmp):
jmp 1f
0:
incq %rdi
@@ -956,8 +956,8 @@
subl %edx, %eax
ret
-.globl _VG_(darwin_REDIR_FOR_strcpy)
-_VG_(darwin_REDIR_FOR_strcpy):
+.globl VG_(darwin_REDIR_FOR_strcpy)
+VG_(darwin_REDIR_FOR_strcpy):
pushq %rbp
movq %rdi, %rdx
movq %rsp, %rbp
@@ -974,8 +974,8 @@
movq %rdi, %rax
ret
-.globl _VG_(darwin_REDIR_FOR_strlcat)
-_VG_(darwin_REDIR_FOR_strlcat):
+.globl VG_(darwin_REDIR_FOR_strlcat)
+VG_(darwin_REDIR_FOR_strlcat):
pushq %rbp
leaq (%rdx,%rdi), %rax
movq %rdi, %rcx
@@ -1000,7 +1000,7 @@
jmp 6f
3:
movq %rsi, %rdi
- call _VG_(darwin_REDIR_FOR_strlen)
+ call VG_(darwin_REDIR_FOR_strlen)
jmp 7f
4:
cmpq $1, %rdi
@@ -1023,14 +1023,14 @@
leave
ret
-.globl _VG_(darwin_REDIR_FOR_arc4random)
-_VG_(darwin_REDIR_FOR_arc4random):
+.globl VG_(darwin_REDIR_FOR_arc4random)
+VG_(darwin_REDIR_FOR_arc4random):
/* not very random, hope dyld won't mind */
movq $0x76616c6772696e64, %rax
ret
-.globl _VG_(trampoline_stuff_end)
-_VG_(trampoline_stuff_end):
+.globl VG_(trampoline_stuff_end)
+VG_(trampoline_stuff_end):
/* a trailing page of unexecutable code */
.fill 2048, 2, 0x0b0f /* `ud2` */
Modified: branches/DARWIN/coregrind/pub_core_basics.h
===================================================================
--- branches/DARWIN/coregrind/pub_core_basics.h 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/pub_core_basics.h 2009-04-24 04:37:30 UTC (rev 9600)
@@ -37,7 +37,6 @@
// everywhere.
//--------------------------------------------------------------------
-#include "pub_core_basics_asm.h"
#include "pub_tool_basics.h"
/* ---------------------------------------------------------------------
Modified: branches/DARWIN/coregrind/pub_core_basics_asm.h
===================================================================
--- branches/DARWIN/coregrind/pub_core_basics_asm.h 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/coregrind/pub_core_basics_asm.h 2009-04-24 04:37:30 UTC (rev 9600)
@@ -1,7 +1,6 @@
/*--------------------------------------------------------------------*/
-/*--- Header imported directly by every core asm file, and ---*/
-/*--- (via pub_core_basics.h) by every core C file. ---*/
+/*--- Header imported directly by every core asm file. ---*/
/*--- pub_core_basics_asm.h ---*/
/*--------------------------------------------------------------------*/
@@ -34,9 +33,8 @@
#define __PUB_CORE_BASICS_ASM_H
//--------------------------------------------------------------------
-// PURPOSE: This header should be imported by every single asm and
-// (indirectly) by every C file in the core. It contains really basic
-// things needed everywhere.
+// PURPOSE: This header should be imported by every single asm file
+// in the core. It contains really basic things needed everywhere.
//--------------------------------------------------------------------
#include "pub_tool_basics_asm.h"
Modified: branches/DARWIN/include/pub_tool_basics.h
===================================================================
--- branches/DARWIN/include/pub_tool_basics.h 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/include/pub_tool_basics.h 2009-04-24 04:37:30 UTC (rev 9600)
@@ -46,9 +46,6 @@
// Addr32, Addr64, HWord, HChar, Bool, False and True.
#include "libvex_basictypes.h"
-// For the VG_() macro
-#include "pub_tool_basics_asm.h"
-
// For varargs types
#include <stdarg.h>
@@ -57,6 +54,27 @@
/* ---------------------------------------------------------------------
+ symbol prefixing
+ ------------------------------------------------------------------ */
+
+// All symbols externally visible from Valgrind are prefixed
+// as specified here to avoid namespace conflict problems.
+//
+// VG_ is for symbols exported from modules. ML_ (module-local) is
+// for symbols which are not intended to be visible outside modules,
+// but which cannot be declared as C 'static's since they need to be
+// visible across C files within a given module. It is a mistake for
+// a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
+// Likewise it is a mistake for a VG_ name to appear in a priv_*.h
+// file.
+
+#define VGAPPEND(str1,str2) str1##str2
+
+#define VG_(str) VGAPPEND(vgPlain_, str)
+#define ML_(str) VGAPPEND(vgModuleLocal_, str)
+
+
+/* ---------------------------------------------------------------------
builtin types
------------------------------------------------------------------ */
Modified: branches/DARWIN/include/pub_tool_basics_asm.h
===================================================================
--- branches/DARWIN/include/pub_tool_basics_asm.h 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/include/pub_tool_basics_asm.h 2009-04-24 04:37:30 UTC (rev 9600)
@@ -1,7 +1,6 @@
/*--------------------------------------------------------------------*/
-/*--- Header imported directly by every tool asm file, and ---*/
-/*--- (via pub_tool_basics.h) by every tool C file. ---*/
+/*--- Header imported directly by every tool asm file. ---*/
/*--- pub_tool_basics_asm.h ---*/
/*--------------------------------------------------------------------*/
@@ -33,29 +32,32 @@
#ifndef __PUB_TOOL_BASICS_ASM_H
#define __PUB_TOOL_BASICS_ASM_H
-/* All symbols externally visible from Valgrind are prefixed
- as specified here to avoid namespace conflict problems. */
+// See pub_tool_basics.h for the purpose of these macros.
+//
+// Note that although the macros here (which are used in asm files) have the
+// same name as those in pub_tool_basics.h (which are used in C files), they
+// have different definitions. Actually, on Linux the definitions are the
+// same, but on Darwin they are different. The reason is that C names on
+// Darwin always get a '_' prepended to them by the compiler. But in order to
+// refer to them from asm code, we have to add the '_' ourselves. Having two
+// versions of these macros makes that difference transparent, so we can use
+// VG_/ML_ in both asm and C files.
+//
+// Note also that the exact prefixes used have to match those used in
+// pub_tool_basics.h.
#define VGAPPEND(str1,str2) str1##str2
+
+#if defined(VGO_linux) || defined(VGO_aix5)
+# define VG_(str) VGAPPEND( vgPlain_, str)
+# define ML_(str) VGAPPEND( vgModuleLocal_, str)
+#elif defined(VGO_darwin)
+# define VG_(str) VGAPPEND(_vgPlain_, str)
+# define ML_(str) VGAPPEND(_vgModuleLocal_, str)
+#else
+# error Unknown OS
+#endif
-/* VG_ is for symbols exported from modules. ML_ (module-local) is
- for symbols which are not intended to be visible outside modules,
- but which cannot be declared as C 'static's since they need to be
- visible across C files within a given module. It is a mistake for
- a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
- Likewise it is a mistake for a VG_ name to appear in a priv_*.h
- file.
-*/
-#define VG_(str) VGAPPEND(vgPlain_, str)
-#define ML_(str) VGAPPEND(vgModuleLocal_, str)
-
-/* _VG_(foo) is the same as VG_(foo), except with a leading underscore.
- This is needed for assembly definitions on some platforms, and
- should not be used in C files.
-*/
-#define _VG_(str) VGAPPEND(_vgPlain_, str)
-#define _ML_(str) VGAPPEND(_vgModuleLocal_, str)
-
#endif /* __PUB_TOOL_BASICS_ASM_H */
/*--------------------------------------------------------------------*/
Modified: branches/DARWIN/tests/asm.h
===================================================================
--- branches/DARWIN/tests/asm.h 2009-04-24 04:28:15 UTC (rev 9599)
+++ branches/DARWIN/tests/asm.h 2009-04-24 04:37:30 UTC (rev 9600)
@@ -13,7 +13,7 @@
// This one is for use in asm files.
#if defined(VGO_darwin)
-#define VG_SYM_ASM(x) _#x
+#define VG_SYM_ASM(x) _##x
#else
#define VG_SYM_ASM(x) x
#endif
|
|
From: <sv...@va...> - 2009-04-24 04:28:18
|
Author: njn
Date: 2009-04-24 05:28:15 +0100 (Fri, 24 Apr 2009)
New Revision: 9599
Log:
Removed some Darwin-specific code that crept in from the DARWIN branch.
Modified:
trunk/tests/asm.h
trunk/tests/malloc.h
trunk/tests/sys_mman.h
Modified: trunk/tests/asm.h
===================================================================
--- trunk/tests/asm.h 2009-04-24 04:12:28 UTC (rev 9598)
+++ trunk/tests/asm.h 2009-04-24 04:28:15 UTC (rev 9599)
@@ -5,15 +5,7 @@
// general, any symbol named in asm code should be wrapped by VG_SYM.
// This one is for use in inline asm in C files.
-#if defined(VGO_darwin)
-#define VG_SYM(x) "_"#x
-#else
#define VG_SYM(x) #x
-#endif
// This one is for use in asm files.
-#if defined(VGO_darwin)
#define VG_SYM_ASM(x) _#x
-#else
-#define VG_SYM_ASM(x) x
-#endif
Modified: trunk/tests/malloc.h
===================================================================
--- trunk/tests/malloc.h 2009-04-24 04:12:28 UTC (rev 9598)
+++ trunk/tests/malloc.h 2009-04-24 04:28:15 UTC (rev 9599)
@@ -1,11 +1,7 @@
// Replacement for malloc.h which factors out platform differences.
#include <stdlib.h>
-#if defined(VGO_darwin)
-# include <malloc/malloc.h>
-#else
-# include <malloc.h>
-#endif
+#include <malloc.h>
#include <assert.h>
@@ -14,12 +10,7 @@
static void* memalign16(size_t szB)
{
void* x;
-#if defined(VGO_darwin)
- // Darwin lacks memalign, but its malloc is always 16-aligned anyway.
- x = malloc(szB);
-#else
x = memalign(16, szB);
-#endif
assert(x);
assert(0 == ((16-1) & (unsigned long)x));
return x;
Modified: trunk/tests/sys_mman.h
===================================================================
--- trunk/tests/sys_mman.h 2009-04-24 04:12:28 UTC (rev 9598)
+++ trunk/tests/sys_mman.h 2009-04-24 04:28:15 UTC (rev 9599)
@@ -2,11 +2,7 @@
#include <sys/mman.h>
-#if defined(VGO_darwin)
-# define MAP_ANONYMOUS MAP_ANON
-#endif
-
#include <assert.h>
#include <unistd.h>
|
|
From: <sv...@va...> - 2009-04-24 04:12:35
|
Author: njn Date: 2009-04-24 05:12:28 +0100 (Fri, 24 Apr 2009) New Revision: 9598 Log: Merged r9596 (build system tweaks, minus the Darwin bits) from the DARWIN branch. Added: trunk/Makefile.core-tool.am Removed: trunk/Makefile.install.am Modified: trunk/Makefile.am trunk/Makefile.tool.am trunk/coregrind/Makefile.am trunk/none/tests/ppc32/Makefile.am trunk/none/tests/ppc64/Makefile.am trunk/none/tests/x86/Makefile.am Modified: trunk/Makefile.am =================================================================== --- trunk/Makefile.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/Makefile.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -106,7 +106,7 @@ rm -f $(inplacedir)/default.supp ln -s ../default.supp $(inplacedir) -distclean-local: +clean-local: rm -rf $(inplacedir) # These list the bits of vex we need to install Copied: trunk/Makefile.core-tool.am (from rev 9596, branches/DARWIN/Makefile.core-tool.am) =================================================================== --- trunk/Makefile.core-tool.am (rev 0) +++ trunk/Makefile.core-tool.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -0,0 +1,26 @@ +# This file contains things shared by coregrind/Makefile.am and tool +# Makefile.am files. + +# This is used by coregrind/Makefile.am and Makefile.tool.am for doing +# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir. +# It needs to be depended on by an 'all-local' rule. +inplace-noinst_PROGRAMS: + if [ -n "$(noinst_PROGRAMS)" ] ; then \ + mkdir -p $(inplacedir); \ + for f in $(noinst_PROGRAMS) ; do \ + rm -f $(inplacedir)/$$f; \ + ln -f -s ../$(subdir)/$$f $(inplacedir); \ + done ; \ + fi + +# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing +# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/. +# It needs to be depended on by an 'install-exec-local' rule. +install-noinst_PROGRAMS: + if [ -n "$(noinst_PROGRAMS)" ] ; then \ + $(mkinstalldirs) $(DESTDIR)$(valdir); \ + for f in $(noinst_PROGRAMS); do \ + $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \ + done ; \ + fi + Deleted: trunk/Makefile.install.am =================================================================== --- trunk/Makefile.install.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/Makefile.install.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -1,23 +0,0 @@ -# This is used by coregrind/Makefile.am and Makefile.tool.am for doing -# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir. -# It needs to be depended on by an 'all-local' rule. -inplace-noinst_PROGRAMS: - if [ -n "$(noinst_PROGRAMS)" ] ; then \ - mkdir -p $(inplacedir); \ - for f in $(noinst_PROGRAMS) ; do \ - rm -f $(inplacedir)/$$f; \ - ln -f -s ../$(subdir)/$$f $(inplacedir); \ - done ; \ - fi - -# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing -# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/. -# It needs to be depended on by an 'install-exec-local' rule. -install-noinst_PROGRAMS: - if [ -n "$(noinst_PROGRAMS)" ] ; then \ - $(mkinstalldirs) $(DESTDIR)$(valdir); \ - for f in $(noinst_PROGRAMS); do \ - $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \ - done ; \ - fi - Modified: trunk/Makefile.tool.am =================================================================== --- trunk/Makefile.tool.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/Makefile.tool.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.all.am include $(top_srcdir)/Makefile.flags.am -include $(top_srcdir)/Makefile.install.am +include $(top_srcdir)/Makefile.core-tool.am LIBREPLACEMALLOC_X86_LINUX = \ Modified: trunk/coregrind/Makefile.am =================================================================== --- trunk/coregrind/Makefile.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/coregrind/Makefile.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -5,7 +5,7 @@ include $(top_srcdir)/Makefile.all.am include $(top_srcdir)/Makefile.flags.am -include $(top_srcdir)/Makefile.install.am +include $(top_srcdir)/Makefile.core-tool.am AM_CPPFLAGS_CORE_COMMON = \ Modified: trunk/none/tests/ppc32/Makefile.am =================================================================== --- trunk/none/tests/ppc32/Makefile.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/none/tests/ppc32/Makefile.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -33,6 +33,6 @@ AM_CXXFLAGS += @FLAG_M32@ AM_CCASFLAGS = @FLAG_M32@ -jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ -testVMX_CFLAGS = -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ +jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ +testVMX_CFLAGS = $(AM_CFLAGS) -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ -DGCC_COMPILER @FLAG_M32@ Modified: trunk/none/tests/ppc64/Makefile.am =================================================================== --- trunk/none/tests/ppc64/Makefile.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/none/tests/ppc64/Makefile.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -20,4 +20,4 @@ AM_CXXFLAGS += @FLAG_M64@ AM_CCASFLAGS = @FLAG_M64@ -jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ +jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ Modified: trunk/none/tests/x86/Makefile.am =================================================================== --- trunk/none/tests/x86/Makefile.am 2009-04-24 04:02:59 UTC (rev 9597) +++ trunk/none/tests/x86/Makefile.am 2009-04-24 04:12:28 UTC (rev 9598) @@ -97,7 +97,7 @@ # generic C ones cpuid_SOURCES = cpuid_c.c cpuid_s.s # fpu_lazy_eflags must use these flags -- the bug only occurred with them -fpu_lazy_eflags_CFLAGS = @FLAG_M32@ -O2 -march=pentiumpro +fpu_lazy_eflags_CFLAGS = $(AM_CFLAGS) -O2 -march=pentiumpro fxtract_LDADD = -lm insn_basic_SOURCES = insn_basic.def insn_basic_LDADD = -lm |
|
From: <sv...@va...> - 2009-04-24 04:03:03
|
Author: njn Date: 2009-04-24 05:02:59 +0100 (Fri, 24 Apr 2009) New Revision: 9597 Log: Merged r9587..r9590 and r9593..9595 (DRD optimisations and test tweaks) from the trunk. Modified: branches/DARWIN/drd/drd_bitmap.c branches/DARWIN/drd/drd_bitmap.h branches/DARWIN/drd/drd_thread.c branches/DARWIN/drd/tests/drd_bitmap_test.c branches/DARWIN/drd/tests/tc19_shadowmem.stderr.exp-32bit branches/DARWIN/drd/tests/tc19_shadowmem.stderr.exp-64bit branches/DARWIN/drd/tests/tc19_shadowmem.vgtest [... diff too large to include ...] |
|
From: <sv...@va...> - 2009-04-24 03:55:51
|
Author: njn Date: 2009-04-24 04:55:44 +0100 (Fri, 24 Apr 2009) New Revision: 9596 Log: Cleaned up the build system a bit -- factored out some duplicated dSYM-handling code. Renamed Makefile.install.am as Makefile.core-tool.am accordingly. Also add AM_CFLAGS into the CFLAGS of some tests that should have had it. That fixes two of the four tests broken by r9586. Also made "make clean" delete the .in_place directory, which it probably should have always done, but didn't prior to now. Added: branches/DARWIN/Makefile.core-tool.am Removed: branches/DARWIN/Makefile.install.am Modified: branches/DARWIN/Makefile.am branches/DARWIN/Makefile.tool.am branches/DARWIN/coregrind/Makefile.am branches/DARWIN/none/tests/Makefile.am branches/DARWIN/none/tests/ppc32/Makefile.am branches/DARWIN/none/tests/ppc64/Makefile.am branches/DARWIN/none/tests/x86/Makefile.am Modified: branches/DARWIN/Makefile.am =================================================================== --- branches/DARWIN/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -110,10 +110,8 @@ rm -f $(inplacedir)/default.supp ln -s ../default.supp $(inplacedir) -distclean-local: - rm -rf $(inplacedir) clean-local: - rm -rf .in_place/*.dSYM + rm -rf $(inplacedir) # These list the bits of vex we need to install Copied: branches/DARWIN/Makefile.core-tool.am (from rev 9595, branches/DARWIN/Makefile.install.am) =================================================================== --- branches/DARWIN/Makefile.core-tool.am (rev 0) +++ branches/DARWIN/Makefile.core-tool.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -0,0 +1,65 @@ +# This file contains things shared by coregrind/Makefile.am and tool +# Makefile.am files. + +# See Makefile.tool-tests.am for an explanation of dSYMs. +build-noinst_DSYMS: + for f in $(noinst_DSYMS); do \ + if [ ! -e $$f.dSYM -o $$f -nt $$f.dSYM ] ; then \ + echo "dsymutil $$f"; \ + dsymutil $$f; \ + fi; \ + done + +# This is used by coregrind/Makefile.am and Makefile.tool.am for doing +# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir. +# It needs to be depended on by an 'all-local' rule. +inplace-noinst_PROGRAMS: + if [ -n "$(noinst_PROGRAMS)" ] ; then \ + mkdir -p $(inplacedir); \ + for f in $(noinst_PROGRAMS) ; do \ + rm -f $(inplacedir)/$$f; \ + ln -f -s ../$(subdir)/$$f $(inplacedir); \ + done ; \ + fi + +# Similar to inplace-noinst_PROGRAMS +inplace-noinst_DSYMS: build-noinst_DSYMS + if [ -n "$(noinst_DSYMS)" ] ; then \ + mkdir -p $(inplacedir); \ + for f in $(noinst_DSYMS); do \ + rm -f $(inplacedir)/$$f.dSYM; \ + ln -f -s ../$(subdir)/$$f.dSYM $(inplacedir); \ + done ; \ + fi + +# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing +# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/. +# It needs to be depended on by an 'install-exec-local' rule. +install-noinst_PROGRAMS: + if [ -n "$(noinst_PROGRAMS)" ] ; then \ + $(mkinstalldirs) $(DESTDIR)$(valdir); \ + for f in $(noinst_PROGRAMS); do \ + $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \ + done ; \ + fi + +# Similar to install-noinst_PROGRAMS. +# Nb: we don't use $(INSTALL_PROGRAM) here because it doesn't work with +# directories. XXX: not sure whether the resulting permissions will be +# correct when using 'cp -R'... +install-noinst_DSYMS: build-noinst_DSYMS + if [ -n "$(noinst_DSYMS)" ] ; then \ + $(mkinstalldirs) $(DESTDIR)$(valdir); \ + for f in $(noinst_DSYMS); do \ + cp -R $$f.dSYM $(DESTDIR)$(valdir); \ + done ; \ + fi + +# This needs to be depended on by a 'clean-local' rule. +clean-noinst_DSYMS: + for f in $(noinst_DSYMS); do \ + rm -rf $$f.dSYM; \ + done + + + Deleted: branches/DARWIN/Makefile.install.am =================================================================== --- branches/DARWIN/Makefile.install.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/Makefile.install.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -1,23 +0,0 @@ -# This is used by coregrind/Makefile.am and Makefile.tool.am for doing -# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir. -# It needs to be depended on by an 'all-local' rule. -inplace-noinst_PROGRAMS: - if [ -n "$(noinst_PROGRAMS)" ] ; then \ - mkdir -p $(inplacedir); \ - for f in $(noinst_PROGRAMS) ; do \ - rm -f $(inplacedir)/$$f; \ - ln -f -s ../$(subdir)/$$f $(inplacedir); \ - done ; \ - fi - -# This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing -# "make install". It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/. -# It needs to be depended on by an 'install-exec-local' rule. -install-noinst_PROGRAMS: - if [ -n "$(noinst_PROGRAMS)" ] ; then \ - $(mkinstalldirs) $(DESTDIR)$(valdir); \ - for f in $(noinst_PROGRAMS); do \ - $(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir); \ - done ; \ - fi - Modified: branches/DARWIN/Makefile.tool.am =================================================================== --- branches/DARWIN/Makefile.tool.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/Makefile.tool.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.all.am include $(top_srcdir)/Makefile.flags.am -include $(top_srcdir)/Makefile.install.am +include $(top_srcdir)/Makefile.core-tool.am LIBREPLACEMALLOC_X86_LINUX = \ @@ -204,41 +204,10 @@ $(LIBREPLACEMALLOC_AMD64_DARWIN) -# See Makefile.tool-tests.am for an explanation of dSYMs. -build-noinst_DSYMS: - for f in $(noinst_DSYMS); do \ - if [ ! -e $$f.dSYM -o $$f -nt $$f.dSYM ] ; then \ - echo "dsymutil $$f"; \ - dsymutil $$f; \ - fi; \ - done -inplace-noinst_DSYMS: build-noinst_DSYMS - if [ -n "$(noinst_DSYMS)" ] ; then \ - mkdir -p $(inplacedir); \ - for f in $(noinst_DSYMS); do \ - rm -f $(inplacedir)/$$f.dSYM; \ - ln -f -s ../$(subdir)/$$f.dSYM $(inplacedir); \ - done ; \ - fi - -# Nb: we don't use $(INSTALL_PROGRAM) here because it doesn't work with -# directories. XXX: not sure whether the resulting permissions will be -# correct when using 'cp -R'... -install-noinst_DSYMS: build-noinst_DSYMS - if [ -n "$(noinst_DSYMS)" ] ; then \ - $(mkinstalldirs) $(DESTDIR)$(valdir); \ - for f in $(noinst_DSYMS); do \ - cp -R $$f.dSYM $(DESTDIR)$(valdir); \ - done ; \ - fi - all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS -clean-local: - for f in $(noinst_DSYMS); do \ - rm -rf $$f.dSYM; \ - done +clean-local: clean-noinst_DSYMS install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS Modified: branches/DARWIN/coregrind/Makefile.am =================================================================== --- branches/DARWIN/coregrind/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/coregrind/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -5,7 +5,7 @@ include $(top_srcdir)/Makefile.all.am include $(top_srcdir)/Makefile.flags.am -include $(top_srcdir)/Makefile.install.am +include $(top_srcdir)/Makefile.core-tool.am AM_CPPFLAGS_CORE_COMMON = \ -I$(top_srcdir)/coregrind \ @@ -40,9 +40,9 @@ noinst_PROGRAMS = +noinst_DSYMS = pkglib_LIBRARIES = LIBVEX = -DSYMUTIL_ME_TOO = if VGCONF_PLATFORMS_INCLUDE_X86_LINUX noinst_PROGRAMS += vgpreload_core-x86-linux.so @@ -82,16 +82,16 @@ if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN noinst_PROGRAMS += vgpreload_core-x86-darwin.so +noinst_DSYMS += vgpreload_core-x86-darwin.so pkglib_LIBRARIES += libcoregrind-x86-darwin.a libreplacemalloc_toolpreload-x86-darwin.a LIBVEX += libvex-x86-darwin.a -DSYMUTIL_ME_TOO += vgpreload_core-x86-darwin.so endif if VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN noinst_PROGRAMS += vgpreload_core-amd64-darwin.so +noinst_DSYMS += vgpreload_core-amd64-darwin.so pkglib_LIBRARIES += libcoregrind-amd64-darwin.a libreplacemalloc_toolpreload-amd64-darwin.a LIBVEX += libvex-amd64-darwin.a -DSYMUTIL_ME_TOO += vgpreload_core-amd64-darwin.so endif @@ -586,20 +586,15 @@ vgpreload_core_amd64_darwin_so_CFLAGS = $(AM_CFLAGS_AMD64_DARWIN) $(AM_CFLAGS_PIC) vgpreload_core_amd64_darwin_so_LDFLAGS = $(PRELOAD_LDFLAGS_AMD64_DARWIN) -all-local: inplace-noinst_PROGRAMS - for f in $(DSYMUTIL_ME_TOO); do \ - echo "dsymutil $$f"; \ - dsymutil $$f; \ - done +all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS -clean-local: +clean-local: clean-noinst_DSYMS $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" clean rm -f $(mach_srcs) $(mach_server_srcs) $(mach_hdrs) - rm -rf vgpreload_core-*.dSYM # Nb: The loop installs the libvex library for possible use by standalone # tools. -install-exec-local: install-noinst_PROGRAMS +install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS for v in $(LIBVEX) ; do \ $(INSTALL_DATA) @VEX_DIR@/$$v $(DESTDIR)$(valdir) ; \ done Modified: branches/DARWIN/none/tests/Makefile.am =================================================================== --- branches/DARWIN/none/tests/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/none/tests/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -187,7 +187,7 @@ floored_LDADD = -lm manythreads_LDADD = -lpthread if VGCONF_OS_IS_DARWIN - nestedfns_CFLAGS = -fnested-functions + nestedfns_CFLAGS = $(AM_CFLAGS) -fnested-functions else mq_LDADD = -lrt endif Modified: branches/DARWIN/none/tests/ppc32/Makefile.am =================================================================== --- branches/DARWIN/none/tests/ppc32/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/none/tests/ppc32/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -33,6 +33,6 @@ AM_CXXFLAGS += @FLAG_M32@ AM_CCASFLAGS = @FLAG_M32@ -jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ -testVMX_CFLAGS = -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ +jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ +testVMX_CFLAGS = $(AM_CFLAGS) -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ -DGCC_COMPILER @FLAG_M32@ Modified: branches/DARWIN/none/tests/ppc64/Makefile.am =================================================================== --- branches/DARWIN/none/tests/ppc64/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/none/tests/ppc64/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -20,4 +20,4 @@ AM_CXXFLAGS += @FLAG_M64@ AM_CCASFLAGS = @FLAG_M64@ -jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ +jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ Modified: branches/DARWIN/none/tests/x86/Makefile.am =================================================================== --- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-23 20:07:23 UTC (rev 9595) +++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-24 03:55:44 UTC (rev 9596) @@ -108,7 +108,7 @@ cpuid_SOURCES = cpuid_c.c cpuid_s.s # fpu_lazy_eflags must use these flags -- the bug only occurred with them. -fpu_lazy_eflags_CFLAGS = @FLAG_M32@ -O2 -march=pentiumpro +fpu_lazy_eflags_CFLAGS = $(AM_CFLAGS) -O2 -march=pentiumpro fxtract_LDADD = -lm insn_basic_SOURCES = insn_basic.def insn_basic_LDADD = -lm |