From 11ac25494640e49426b649822ef535553681eb98 Mon Sep 17 00:00:00 2001 From: Abhishek Dasgupta Date: Wed, 16 Mar 2016 05:28:18 -0400 Subject: [PATCH] Added support for PowerPC. --- AUTHORS | 1 + CONTRIBUTORS | 1 + config.guess | 3 +++ src/stacktrace_powerpc-inl.h | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 72959a025..59d027e18 100644 --- a/AUTHORS +++ b/AUTHORS @@ -8,6 +8,7 @@ # # Please keep the list sorted. +Abhishek Dasgupta Abhishek Parmar Brian Silverman Google Inc. diff --git a/CONTRIBUTORS b/CONTRIBUTORS index fa9336fa0..6b605d764 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -22,6 +22,7 @@ # # Please keep the list sorted. +Abhishek Dasgupta Abhishek Parmar Brian Silverman Fumitoshi Ukai diff --git a/config.guess b/config.guess index 278f9e9e0..db360b893 100755 --- a/config.guess +++ b/config.guess @@ -911,6 +911,9 @@ EOF ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-gnu + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; diff --git a/src/stacktrace_powerpc-inl.h b/src/stacktrace_powerpc-inl.h index 1090ddedb..03b91089a 100644 --- a/src/stacktrace_powerpc-inl.h +++ b/src/stacktrace_powerpc-inl.h @@ -111,7 +111,7 @@ int GetStackTrace(void** result, int max_depth, int skip_count) { result[n++] = *(sp+2); #elif defined(_CALL_SYSV) result[n++] = *(sp+1); -#elif defined(__APPLE__) || (defined(__linux) && defined(__PPC64__)) +#elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && defined(__PPC64__)) // This check is in case the compiler doesn't define _CALL_AIX/etc. result[n++] = *(sp+2); #elif defined(__linux)