Skip to content

Commit

Permalink
PPC: [build] Fix a clang warning
Browse files Browse the repository at this point in the history
Port a23222e

Original commit message:

    For cross-compiler-compatibility and standards compliance %p
    requires a void*, rather than any pointer type.

[email protected], [email protected], [email protected], [email protected], [email protected]

BUG=chromium:474921
LOG=N

Review-Url: https://codereview.chromium.org/2009653002
Cr-Commit-Position: refs/heads/master@{#36519}
  • Loading branch information
bjaideep authored and Commit bot committed May 25, 2016
1 parent 4ce6c36 commit 8b295a0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/ppc/simulator-ppc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1284,15 +1284,18 @@ void Simulator::SoftwareInterrupt(Instruction* instr) {
case ExternalReference::BUILTIN_FP_FP_CALL:
case ExternalReference::BUILTIN_COMPARE_CALL:
PrintF("Call to host function at %p with args %f, %f",
FUNCTION_ADDR(generic_target), dval0, dval1);
static_cast<void*>(FUNCTION_ADDR(generic_target)),
dval0, dval1);
break;
case ExternalReference::BUILTIN_FP_CALL:
PrintF("Call to host function at %p with arg %f",
FUNCTION_ADDR(generic_target), dval0);
static_cast<void*>(FUNCTION_ADDR(generic_target)),
dval0);
break;
case ExternalReference::BUILTIN_FP_INT_CALL:
PrintF("Call to host function at %p with args %f, %" V8PRIdPTR,
FUNCTION_ADDR(generic_target), dval0, ival);
static_cast<void*>(FUNCTION_ADDR(generic_target)),
dval0, ival);
break;
default:
UNREACHABLE();
Expand Down Expand Up @@ -1434,8 +1437,8 @@ void Simulator::SoftwareInterrupt(Instruction* instr) {
"Call to host function at %p,\n"
"\t\t\t\targs %08" V8PRIxPTR ", %08" V8PRIxPTR ", %08" V8PRIxPTR
", %08" V8PRIxPTR ", %08" V8PRIxPTR ", %08" V8PRIxPTR,
FUNCTION_ADDR(target), arg[0], arg[1], arg[2], arg[3], arg[4],
arg[5]);
static_cast<void*>(FUNCTION_ADDR(target)), arg[0], arg[1],
arg[2], arg[3], arg[4], arg[5]);
if (!stack_aligned) {
PrintF(" with unaligned stack %08" V8PRIxPTR "\n",
get_register(sp));
Expand Down

0 comments on commit 8b295a0

Please sign in to comment.