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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 23 19:17:40 2009 UTC (4 years, 9 months ago) by griffon26
Branch: MAIN
Fix two problems preventing compilation of valgrind-3.5.0 on ppc32/ppc64 (bug #289892).
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 Index: coregrind/m_libcassert.c
2 ===================================================================
3 --- coregrind/m_libcassert.c (revision 10904)
4 +++ coregrind/m_libcassert.c (working copy)
5 @@ -65,8 +65,8 @@
6 #elif defined(VGP_ppc32_linux) || defined(VGP_ppc32_aix5)
7 # define GET_REAL_PC_SP_AND_FP(pc, sp, fp) \
8 asm("mflr 0;" /* r0 = lr */ \
9 - "bl m_libcassert_get_ip;" /* lr = pc */ \
10 - "m_libcassert_get_ip:\n" \
11 + "bl 0f;" /* lr = pc */ \
12 + "0:\n" \
13 "mflr %0;" \
14 "mtlr 0;" /* restore lr */ \
15 "mr %1,1;" \
16 @@ -79,8 +79,8 @@
17 #elif defined(VGP_ppc64_linux) || defined(VGP_ppc64_aix5)
18 # define GET_REAL_PC_SP_AND_FP(pc, sp, fp) \
19 asm("mflr 0;" /* r0 = lr */ \
20 - "bl .m_libcassert_get_ip;" /* lr = pc */ \
21 - ".m_libcassert_get_ip:\n" \
22 + "bl 0f;" /* lr = pc */ \
23 + "0:\n" \
24 "mflr %0;" \
25 "mtlr 0;" /* restore lr */ \
26 "mr %1,1;" \

  ViewVC Help
Powered by ViewVC 1.1.20