-drop the original debian armhf llvm driver patchesepel9
parent
e549e39f58
commit
3bf6972c25
@ -0,0 +1,15 @@
|
||||
diff -u ghc-7.4.1/compiler/main/DriverPipeline.hs.orig ghc-7.4.1/compiler/main/DriverPipeline.hs
|
||||
--- ghc-7.4.1/compiler/main/DriverPipeline.hs.orig 2012-02-02 03:10:32.000000000 +0900
|
||||
+++ ghc-7.4.1/compiler/main/DriverPipeline.hs 2012-04-27 10:42:53.142111769 +0900
|
||||
@@ -1376,9 +1376,9 @@
|
||||
-- does not enable VFP by default. Let's do this manually here
|
||||
fpOpts = case platformArch (targetPlatform dflags) of
|
||||
ArchARM ARMv7 ext -> if (elem VFPv3 ext)
|
||||
- then ["-mattr=+v7,+vfp3"]
|
||||
+ then ["-mattr=+v7,+vfp3", "-float-abi=hard"]
|
||||
else if (elem VFPv3D16 ext)
|
||||
- then ["-mattr=+v7,+vfp3,+d16"]
|
||||
+ then ["-mattr=+v7,+vfp3,+d16", "-float-abi=hard"]
|
||||
else []
|
||||
_ -> []
|
||||
|
@ -1,16 +0,0 @@
|
||||
Description: Use VFPv3-D16 FPU for ARM builds
|
||||
Author: Jani Monoses <jani@ubuntu.com>
|
||||
|
||||
Index: ghc/aclocal.m4
|
||||
===================================================================
|
||||
--- ghc.orig/aclocal.m4 2012-02-01 18:10:32.000000000 +0000
|
||||
+++ ghc/aclocal.m4 2012-03-10 16:40:32.415005650 +0000
|
||||
@@ -333,7 +333,7 @@
|
||||
],
|
||||
[changequote(, )dnl
|
||||
ARM_ISA=ARMv7
|
||||
- ARM_ISA_EXT="[VFPv3,NEON]"
|
||||
+ ARM_ISA_EXT="[VFPv3D16,NEON]"
|
||||
changequote([, ])dnl
|
||||
])
|
||||
])
|
@ -1,26 +0,0 @@
|
||||
Description: If we are on armhf, tell llvm to generate code for this ABI. Not
|
||||
forwarded upstream, because they will do a more 'proper' patch. See upstream
|
||||
bug #5914.
|
||||
Author: Iain Lane <laney@debian.org>
|
||||
|
||||
Index: ghc/compiler/main/DriverPipeline.hs
|
||||
===================================================================
|
||||
--- ghc.orig/compiler/main/DriverPipeline.hs 2012-03-10 16:41:46.000000000 +0000
|
||||
+++ ghc/compiler/main/DriverPipeline.hs 2012-03-10 16:42:59.209169474 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
{-# OPTIONS -fno-cse #-}
|
||||
-{-# LANGUAGE NamedFieldPuns #-}
|
||||
+{-# LANGUAGE NamedFieldPuns, CPP #-}
|
||||
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
@@ -1379,6 +1379,9 @@
|
||||
then ["-mattr=+v7,+vfp3"]
|
||||
else if (elem VFPv3D16 ext)
|
||||
then ["-mattr=+v7,+vfp3,+d16"]
|
||||
+#ifdef __ARM_PCS_VFP
|
||||
+ ++ ["-float-abi=hard"]
|
||||
+#endif
|
||||
else []
|
||||
_ -> []
|
||||
|
Loading…
Reference in new issue