Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tests/toolchain/stack_frame.cc

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Minor cleanup. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/toolchain/eh_return.c ('k') | tests/trusted_crash/crash_in_syscall/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/toolchain/stack_frame.cc
diff --git a/tests/toolchain/stack_frame.cc b/tests/toolchain/stack_frame.cc
index 77ab155f237b2f63e43e48cd58f8d4fc10ef7be2..f3f0994a230e4860a00352286faefd33240e098c 100644
--- a/tests/toolchain/stack_frame.cc
+++ b/tests/toolchain/stack_frame.cc
@@ -41,6 +41,8 @@ void* GetReturnAddress(void* frame_end) {
#if defined(__arm__)
return ((void**)frame_end)[-1];
+#elif defined(__mips__)
+ return ((void**)frame_end)[-1];
#elif defined(__i386__)
return ((void**)frame_end)[-1];
#elif defined(__x86_64__)
@@ -91,7 +93,7 @@ void recurse(int n, unsigned char* old_cfa) {
// TODO(sehr): change those to 16
ASSERT(frame_size % 8 == 0, "ERRRO: bad frame size");
- ASSERT((long) cfa % 8 == 0, "ERRRO: bad frame pointer");
+ ASSERT((int) cfa % 8 == 0, "ERRRO: bad frame pointer");
if (n == NUM_ITERS) {
// main()'s stackframe may be non-standard due to the startup code
« no previous file with comments | « tests/toolchain/eh_return.c ('k') | tests/trusted_crash/crash_in_syscall/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698