commit llvm for openSUSE:12.1
Hello community,
here is the log from the commit of package llvm for openSUSE:12.1 checked in at 2011-10-29 08:00:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1/llvm (Old)
and /work/SRC/openSUSE:12.1/.llvm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm", Maintainer is "MHopf@novell.com"
Changes:
--------
--- /work/SRC/openSUSE:12.1/llvm/llvm.changes 2011-10-29 00:23:45.000000000 +0200
+++ /work/SRC/openSUSE:12.1/.llvm.new/llvm.changes 2011-10-29 08:00:56.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Oct 28 20:54:16 UTC 2011 - idonmez@suse.com
+
+- Add llvm-pr9614-part{1,2}.patch to fix LLVM PR9614
+
+-------------------------------------------------------------------
New:
----
llvm-pr9614-part1.patch
llvm-pr9614-part2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ llvm.spec ++++++
--- /var/tmp/diff_new_pack.IYAZpu/_old 2011-10-29 08:00:56.000000000 +0200
+++ /var/tmp/diff_new_pack.IYAZpu/_new 2011-10-29 08:00:56.000000000 +0200
@@ -40,6 +40,9 @@
Patch2: clang-cmake-lib.patch
# PATCH-FIX-OPENSUSE assume-opensuse.patch idoenmez@suse.de -- Always enable openSUSE/SUSE features
Patch3: assume-opensuse.patch
+# PATCH-FIX-UPSTREAM llvm-pr9614-part1.patch idoenmez@suse.de -- Fix LLVM PR9614
+Patch4: llvm-pr9614-part1.patch
+Patch5: llvm-pr9614-part2.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@@ -132,6 +135,11 @@
%patch2
%patch3
+pushd tools/clang
+%patch4 -p2
+%patch5 -p2
+popd
+
sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp
%build
++++++ llvm-pr9614-part1.patch ++++++
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp 2011/10/26 20:33:43 143048
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp 2011/10/26 20:41:06 143049
@@ -29,6 +29,7 @@
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Mangle.h"
#include "clang/AST/RecordLayout.h"
+#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
@@ -858,6 +859,62 @@
}
}
+namespace {
+ struct FunctionIsDirectlyRecursive :
+ public RecursiveASTVisitor<FunctionIsDirectlyRecursive> {
+ const StringRef Name;
+ bool Result;
+ FunctionIsDirectlyRecursive(const FunctionDecl *F) :
+ Name(F->getName()), Result(false) {
+ }
+ typedef RecursiveASTVisitor<FunctionIsDirectlyRecursive> Base;
+
+ bool TraverseCallExpr(CallExpr *E) {
+ const Decl *D = E->getCalleeDecl();
+ if (!D)
+ return true;
+ AsmLabelAttr *Attr = D->getAttr<AsmLabelAttr>();
+ if (!Attr)
+ return true;
+ if (Name == Attr->getLabel()) {
+ Result = true;
+ return false;
+ }
+ return true;
+ }
+ };
+}
+
+// isTriviallyRecursiveViaAsm - Check if this function calls another
+// decl that, because of the asm attribute, ends up pointing to itself.
+bool
+CodeGenModule::isTriviallyRecursiveViaAsm(const FunctionDecl *F) {
+ if (getCXXABI().getMangleContext().shouldMangleDeclName(F))
+ return false;
+
+ FunctionIsDirectlyRecursive Walker(F);
+ Walker.TraverseFunctionDecl(const_cast
participants (1)
-
root@hilbert.suse.de