Reviewers: Erik Corry, Description: Fix compilation for ARMv4 for OpenBSD/FreeBSD
This is a port of r5260. Please review this at http://codereview.chromium.org/3165021/show SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/platform-freebsd.cc M src/platform-openbsd.cc Index: src/platform-freebsd.cc =================================================================== --- src/platform-freebsd.cc (revision 5267) +++ src/platform-freebsd.cc (working copy) @@ -198,9 +198,10 @@ void OS::DebugBreak() { -#if (defined(__arm__) || defined(__thumb__)) && \ - defined(CAN_USE_ARMV5_INSTRUCTIONS) +#if (defined(__arm__) || defined(__thumb__)) +# if defined(CAN_USE_ARMV5_INSTRUCTIONS) asm("bkpt 0"); +# endif #else asm("int $3"); #endif Index: src/platform-openbsd.cc =================================================================== --- src/platform-openbsd.cc (revision 5267) +++ src/platform-openbsd.cc (working copy) @@ -196,9 +196,10 @@ void OS::DebugBreak() { -#if (defined(__arm__) || defined(__thumb__)) && \ - defined(CAN_USE_ARMV5_INSTRUCTIONS) +#if (defined(__arm__) || defined(__thumb__)) +# if defined(CAN_USE_ARMV5_INSTRUCTIONS) asm("bkpt 0"); +# endif #else asm("int $3"); #endif -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
