Hello community, here is the log from the commit of package llvm for openSUSE:Factory checked in at 2012-02-10 17:17:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm (Old) and /work/SRC/openSUSE:Factory/.llvm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm", Maintainer is "mh...@novell.com" Changes: -------- --- /work/SRC/openSUSE:Factory/llvm/llvm.changes 2011-12-27 18:37:59.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.llvm.new/llvm.changes 2012-02-10 17:17:54.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Dec 27 21:33:48 UTC 2011 - idon...@suse.com + +- Add upstream fix for llvm PR11642 + +------------------------------------------------------------------- New: ---- clang-pr11642.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm.spec ++++++ --- /var/tmp/diff_new_pack.I2KQXk/_old 2012-02-10 17:17:57.000000000 +0100 +++ /var/tmp/diff_new_pack.I2KQXk/_new 2012-02-10 17:17:57.000000000 +0100 @@ -38,6 +38,8 @@ Patch4: clang-glibc2.14.patch # PATCH-FIX-OPENSUSE clang-disable-ada-extension.patch idoen...@suse.de -- Don't run gcc for ada files Patch5: clang-disable-ada-extension.patch +# PATCH-FIX-UPSTREAM http://llvm.org/viewvc/llvm-project?view=rev&revision=147295 +Patch6: clang-pr11642.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -134,6 +136,7 @@ %patch3 cd tools/clang %patch4 +%patch6 cd ../.. %patch5 -p1 ++++++ clang-pr11642.patch ++++++ Index: test/CodeGenCXX/visibility-inlines-hidden.cpp =================================================================== --- test/CodeGenCXX/visibility-inlines-hidden.cpp (revision 147294) +++ test/CodeGenCXX/visibility-inlines-hidden.cpp (revision 147295) @@ -97,3 +97,14 @@ // CHECK: define available_externally void @_ZN5test22ns3fooINS_1BINS_1AEEEEEvv() } + +namespace PR11642 { + template <typename T> + class Foo { + public: + T foo(T x) { return x; } + }; + extern template class Foo<int>; + template class Foo<int>; + // CHECK: define weak_odr i32 @_ZN7PR116423FooIiE3fooEi +} Index: lib/AST/Decl.cpp =================================================================== --- lib/AST/Decl.cpp (revision 147294) +++ lib/AST/Decl.cpp (revision 147295) @@ -568,6 +568,7 @@ // about whether containing classes have visibility attributes, // and that's intentional. if (TSK != TSK_ExplicitInstantiationDeclaration && + TSK != TSK_ExplicitInstantiationDefinition && F.ConsiderGlobalVisibility && MD->getASTContext().getLangOptions().InlineVisibilityHidden) { // InlineVisibilityHidden only applies to definitions, and -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org