Reviewers: Erik Corry,

Description:
Add ARMv7 defines to preprocessor checks

The preprocessor defines check for v5t and v5te.  This patch adds v7 and
v7-a
which provide support for -march=armv7 and -mcpu=cortex-a8 respectively.
  This is to support my work compiling chromium on arm, see
http://crbug.com/12028

Please review this at http://codereview.chromium.org/115509

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/arm/macro-assembler-arm.cc


Index: src/arm/macro-assembler-arm.cc
===================================================================
--- src/arm/macro-assembler-arm.cc      (revision 1999)
+++ src/arm/macro-assembler-arm.cc      (working copy)
@@ -58,7 +58,10 @@
  // We do not support thumb inter-working with an arm architecture not  
supporting
  // the blx instruction (below v5t)
  #if defined(__THUMB_INTERWORK__)
-#if !defined(__ARM_ARCH_5T__) && !defined(__ARM_ARCH_5TE__)
+#if !defined(__ARM_ARCH_5T__) && \
+  !defined(__ARM_ARCH_5TE__) &&  \
+  !defined(__ARM_ARCH_7A__) &&   \
+  !defined(__ARM_ARCH_7__)
  // add tests for other versions above v5t as required
  #error "for thumb inter-working we require architecture v5t or above"
  #endif



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to