Skip to content

Commit

Permalink
Merge pull request google#91 from abdasgupta/master
Browse files Browse the repository at this point in the history
Added support for PowerPC.
  • Loading branch information
ukai committed Apr 13, 2016
2 parents 119289e + 11ac254 commit 053c923
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#
# Please keep the list sorted.

Abhishek Dasgupta <[email protected]>
Abhishek Parmar <[email protected]>
Brian Silverman <[email protected]>
Google Inc.
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#
# Please keep the list sorted.

Abhishek Dasgupta <[email protected]>
Abhishek Parmar <[email protected]>
Brian Silverman <[email protected]>
Fumitoshi Ukai <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;;
Expand Down
2 changes: 1 addition & 1 deletion src/stacktrace_powerpc-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 053c923

Please sign in to comment.