summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2016-09-09 00:45:35 -0500
committerMatthias Maier <tamiko@gentoo.org>2016-09-09 00:46:34 -0500
commitb620c2db81b11d3e63069512fbcc855b53cfb26a (patch)
tree52f0200661a3f9d8bb389419a02cff7835efe7cc /dev-lang/julia/files
parentdev-ruby/postgres_ext: add 3.0.0 (diff)
downloadgentoo-b620c2db81b11d3e63069512fbcc855b53cfb26a.tar.gz
gentoo-b620c2db81b11d3e63069512fbcc855b53cfb26a.tar.bz2
gentoo-b620c2db81b11d3e63069512fbcc855b53cfb26a.zip
dev-lang/julia: version bump to 0.4.6
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lang/julia/files')
-rw-r--r--dev-lang/julia/files/julia-0.4.6-llvm-3.8.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-lang/julia/files/julia-0.4.6-llvm-3.8.patch b/dev-lang/julia/files/julia-0.4.6-llvm-3.8.patch
new file mode 100644
index 000000000000..c301f964c2cd
--- /dev/null
+++ b/dev-lang/julia/files/julia-0.4.6-llvm-3.8.patch
@@ -0,0 +1,56 @@
+Description: LLVM 3.8 compatibility
+ These fixes come straight from upstream's git.
+Origin: Upstream, https://github.com/JuliaLang/julia/commit/b67609b988febe062e6709d8972c4f869c82cfc0
+Origin: Upstream, https://github.com/JuliaLang/julia/commit/3f6abadc9d12bb9d59ec775db4277b3841395d0b
+Origin: Upstream, https://github.com/JuliaLang/julia/commit/caf3c74426696d43101d9607b1a2cd3a5e05bc0f
+Author: Graham Inggs <ginggs@debian.org>
+Last-Update: 2016-02-03
+--- a/src/cgutils.cpp
++++ b/src/cgutils.cpp
+@@ -219,7 +219,11 @@
+ }
+ }
+
++#ifdef LLVM38
++ virtual Value *materializeDeclFor(Value *V)
++#else
+ virtual Value *materializeValueFor (Value *V)
++#endif
+ {
+ Function *F = dyn_cast<Function>(V);
+ if (F) {
+@@ -492,7 +496,11 @@
+
+ // now copy the module, since PM.run may modify it
+ ValueToValueMapTy VMap;
++#ifdef LLVM38
++ Module *clone = CloneModule(shadow_module, VMap).release();
++#else
+ Module *clone = CloneModule(shadow_module, VMap);
++#endif
+ #ifdef LLVM37
+ // Reset the target triple to make sure it matches the new target machine
+ clone->setTargetTriple(TM->getTargetTriple().str());
+--- a/src/intrinsics.cpp
++++ b/src/intrinsics.cpp
+@@ -780,12 +780,20 @@
+ jl_options.fast_math == JL_OPTIONS_FAST_MATH_ON)) {
+ FastMathFlags fmf;
+ fmf.setUnsafeAlgebra();
++#ifdef LLVM38
++ builder.setFastMathFlags(fmf);
++#else
+ builder.SetFastMathFlags(fmf);
++#endif
+ }
+ }
+ IRBuilder<>& operator()() const { return builder; }
+ ~math_builder() {
++#ifdef LLVM38
++ builder.setFastMathFlags(old_fmf);
++#else
+ builder.SetFastMathFlags(old_fmf);
++#endif
+ }
+ };
+