disable for now ARM specific target data layout and triple
authorKarel Gardas <karel.gardas@centrum.cz>
Thu, 14 Jul 2011 20:21:09 +0000 (22:21 +0200)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Wed, 10 Aug 2011 12:03:41 +0000 (22:03 +1000)
This patch disables ARM specific target data layout and triple.
The reason for this is that LLVM asserts on some files if this
is in use. The assert looks:
Formal argument #8 has unhandled type i32UNREACHABLE executed at
/llvm-ghc-arm/lib/CodeGen/CallingConvLower.cpp:81!

compiler/llvmGen/LlvmCodeGen/Ppr.hs

index 399a82f..2f4fbfa 100644 (file)
@@ -51,12 +51,12 @@ moduleLayout =
     $+$ text "target triple = \"x86_64-linux-gnu\""
 #endif
 
-#elif defined (arm_TARGET_ARCH)
+-- #elif defined (arm_TARGET_ARCH)
 
-#if linux_TARGET_OS
-    text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32\""
-    $+$ text "target triple = \"arm-unknown-linux-gnueabi\""
-#endif
+-- #if linux_TARGET_OS
+--    text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32\""
+--    $+$ text "target triple = \"arm-unknown-linux-gnueabi\""
+-- #endif
 
 #else
     -- FIX: Other targets