[llvm/f17] Build without -ftree-pre as a workaround for clang segfaulting on x86_64
Kalev Lember
kalev at fedoraproject.org
Mon Mar 26 17:02:38 UTC 2012
commit 9dca0ca4bc2eaa3a7044c6eb374cca59fba80092
Author: Kalev Lember <kalevlember at gmail.com>
Date: Mon Mar 26 20:00:45 2012 +0300
Build without -ftree-pre as a workaround for clang segfaulting on x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=791365
llvm.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index a02c218..e858e01 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -31,7 +31,7 @@ ExcludeArch: s390 s390x ppc ppc64
Name: llvm
Version: 3.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: The Low Level Virtual Machine
Group: Development/Languages
@@ -261,6 +261,10 @@ sed -i 's|/lib /usr/lib $lt_ld_extra|/%{_lib} %{_libdir} $lt_ld_extra|' \
%build
+# Build without -ftree-pre as a workaround for clang segfaulting on x86_64.
+# https://bugzilla.redhat.com/show_bug.cgi?id=791365
+%global optflags %(echo %{optflags} | sed 's/-O2 /-O2 -fno-tree-pre /')
+
# Disabling assertions now, rec. by pure and needed for OpenGTL
%configure \
--prefix=%{_prefix} \
@@ -523,6 +527,10 @@ exit 0
%endif
%changelog
+* Mon Mar 26 2012 Kalev Lember <kalevlember at gmail.com> - 3.0-10
+- Build without -ftree-pre as a workaround for clang segfaulting
+ on x86_64 (#791365)
+
* Sat Mar 17 2012 Karsten Hopp <karsten at redhat.com> 3.0-9
- undefine PPC on ppc as a temporary workaround for
http://llvm.org/bugs/show_bug.cgi?id=10969 and
More information about the scm-commits
mailing list