My favorites | Sign in
Project Home Downloads Wiki Issues Source Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 447 attachment: 0003-Fix-PPC64-macro-usage.patch (836 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From fdbcbcdab83a437d97d1ea26bc8d50268ecfa5e3 Mon Sep 17 00:00:00 2001
From: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
Date: Wed, 11 Jul 2012 09:45:09 -0500
Subject: [PATCH 3/3] Fix PPC64 macro usage

---
src/tests/getpc_test.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tests/getpc_test.cc b/src/tests/getpc_test.cc
index f1497d5..1277636 100644
--- a/src/tests/getpc_test.cc
+++ b/src/tests/getpc_test.cc
@@ -106,7 +106,7 @@ int main(int argc, char** argv) {
// ElfW(Addr) gp; /* global pointer */
// };
// We want the code entry point.
-#if defined(__ia64) || defined(__ppc64) // NOTE: ppc64 is UNTESTED
+#if defined(__ia64) || defined(__powerpc64__) // NOTE: ppc64 is UNTESTED
expected = ((char**)expected)[0]; // this is "ip"
#endif

--
1.7.1

Powered by Google Project Hosting