Revision: 5280
Author: [email protected]
Date: Tue Aug 17 00:17:20 2010
Log: Fix compilation for ARMv4 for OpenBSD/FreeBSD

This is a port of r5260.
Review URL: http://codereview.chromium.org/3165021
http://code.google.com/p/v8/source/detail?r=5280

Modified:
 /branches/bleeding_edge/src/platform-freebsd.cc
 /branches/bleeding_edge/src/platform-openbsd.cc

=======================================
--- /branches/bleeding_edge/src/platform-freebsd.cc     Wed May 26 23:38:53 2010
+++ /branches/bleeding_edge/src/platform-freebsd.cc     Tue Aug 17 00:17:20 2010
@@ -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
=======================================
--- /branches/bleeding_edge/src/platform-openbsd.cc     Thu Jul  8 01:12:17 2010
+++ /branches/bleeding_edge/src/platform-openbsd.cc     Tue Aug 17 00:17:20 2010
@@ -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

Reply via email to