Hello community, here is the log from the commit of package llvm for openSUSE:Factory checked in at 2012-04-18 16:30:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm (Old) and /work/SRC/openSUSE:Factory/.llvm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/llvm/llvm.changes 2012-03-23 12:06:32.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.llvm.new/llvm.changes 2012-04-18 16:30:25.000000000 +0200 @@ -1,0 +2,65 @@ +Tue Apr 17 07:48:50 UTC 2012 - [email protected] + +- Update to svn revision 154914 from 3.1 branch + + Major new features: + + * AddressSanitizer, a fast memory error detector. + * MachineInstr Bundles, Support to model instruction + bundling / packing. + * ARM Integrated Assembler, A full featured assembler + and direct-to-object support for ARM. + * Basic Block Placement Probability driven basic block placement. + + LLVM IR and Core Improvements + + * IR support for half float + * IR support for vectors of pointers, including vector GEPs. + * Module flags have been introduced. + * Loads can now have range metadata attached to them to + describe the possible values being loaded. + * Inline cost heuristics have been completely overhauled + and now closely model constant propagation through call sites, + disregard trivially dead code costs, and + can model C++ STL iterator patterns. + + Optimizer Improvements + + * The loop unroll pass now is able to unroll loops with + run-time trip counts. This feature is turned off by default, + and is enabled with the -unroll-runtime flag. + * A new basic-block autovectorization pass is available. + Pass -vectorize to run this pass along with some associated + post-vectorization cleanup passes. + + X86-32 and X86-64 Target Improvements + + * Bug fixes and improved support for AVX1 + * Support for AVX2 (still incomplete at this point) + + ARM Target Improvements + + * The constant island pass now supports basic block and + constant pool entry alignments greater than 4 bytes. + + Clang Changes + + * New: -Wdangling-else, -Wstrncat-size + * Improved: -Wformat, -Wempty-body, -Wliteral-conversion + * Clang 3.1 adds support for anonymous structs and anonymous unions, + added in the latest ISO C standard. Use -std=c11 or -std=gnu11 + to enable support for the new language standard. + The new C11 features are backwards-compatible and are available + as an extension in all language modes. + * All warning and language selection flags which previously accepted + c1x have been updated to accept c11. The old c1x forms have been removed. + * Generalized constant expressions + * Lambda expressions + * Generalized initializers + * Unrestricted unions + * User-defined literals + * Forward-declared enumerations + * Atomics (both libc++'s and libstdc++4.7's <atomic> are supported) + + +------------------------------------------------------------------- Old: ---- clang-glibc2.14.patch clang-pr11642.patch llvm-3.0.tar.bz2 New: ---- clang-fix-mips-test.patch llvm-3.0.99+svn154914.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm.spec ++++++ --- /var/tmp/diff_new_pack.YoGIl7/_old 2012-04-18 16:30:36.000000000 +0200 +++ /var/tmp/diff_new_pack.YoGIl7/_new 2012-04-18 16:30:36.000000000 +0200 @@ -16,12 +16,12 @@ # -%define _revision 145598 -%define _release_version 3.0 +%define _revision 154914 +%define _release_version 3.1 %define _supported_archs "arm,x86" Name: llvm -Version: 3.0 +Version: 3.0.99+svn154914 Release: 0 Summary: Low Level Virtual Machine License: NCSA @@ -32,15 +32,12 @@ # PATCH-FIX-OPENSUSE set-revision.patch [email protected] -- Allow us to set revision Patch1: set-revision.patch # PATCH-FIX-OPENSUSE assume-opensuse.patch [email protected] -- Always enable openSUSE/SUSE features -Patch3: assume-opensuse.patch -# PATCH-FIX-UPSTREAM clang-glibc2.14.patch [email protected] -- Support glibc 2.14 headers -Patch4: clang-glibc2.14.patch +Patch2: assume-opensuse.patch # PATCH-FIX-OPENSUSE clang-disable-ada-extension.patch [email protected] -- 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 +Patch3: clang-disable-ada-extension.patch # PATCH-FIX-OPENSUSE default-to-i586.patch -- Use i586 as default target for 32bit -Patch7: default-to-i586.patch +Patch4: default-to-i586.patch +Patch5: clang-fix-mips-test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -49,15 +46,16 @@ %endif BuildRequires: bison BuildRequires: chrpath -BuildRequires: dejagnu BuildRequires: fdupes BuildRequires: flex BuildRequires: gcc BuildRequires: gcc-c++ +%ifarch x86_64 +# For tests +BuildRequires: glibc-devel-32bit +%endif BuildRequires: libtool -BuildRequires: python-devel -BuildRequires: tcl-devel -BuildRequires: tk-devel +BuildRequires: python # Code10 does not have libffi %if 0%{?suse_version} > 1100 @@ -130,20 +128,23 @@ This package contains vim plugins for LLVM like syntax highlighting. %prep -%setup -q -%patch1 -%patch3 -cd tools/clang -%patch4 -%patch6 -cd ../.. +%setup -q -n %{name} +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%ifarch x86_64 %patch5 -p1 -%patch7 -p1 +%endif # We hardcode i586 rm tools/clang/test/Driver/x86_features.c sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp +sed -i s,LLVM_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp + +# FIXME +rm -rf projects/compiler_rt # Nasty hardcoded path sed -i s,/lib/,/%{_lib}/,g tools/clang/lib/Driver/Tools.cpp @@ -347,31 +348,8 @@ %dir %{_libdir}/clang %dir %{_libdir}/clang/* %dir %{_libdir}/clang/*/include -%{_libdir}/clang/*/include/altivec.h -%{_libdir}/clang/*/include/arm_neon.h -%{_libdir}/clang/*/include/avxintrin.h -%{_libdir}/clang/*/include/emmintrin.h -%{_libdir}/clang/*/include/float.h -%{_libdir}/clang/*/include/immintrin.h -%{_libdir}/clang/*/include/iso646.h -%{_libdir}/clang/*/include/limits.h -%{_libdir}/clang/*/include/mm_malloc.h -%{_libdir}/clang/*/include/mmintrin.h -%{_libdir}/clang/*/include/nmmintrin.h -%{_libdir}/clang/*/include/pmmintrin.h -%{_libdir}/clang/*/include/smmintrin.h -%{_libdir}/clang/*/include/stdalign.h -%{_libdir}/clang/*/include/stdarg.h -%{_libdir}/clang/*/include/stdbool.h -%{_libdir}/clang/*/include/stddef.h -%{_libdir}/clang/*/include/stdint.h -%{_libdir}/clang/*/include/tgmath.h -%{_libdir}/clang/*/include/tmmintrin.h -%{_libdir}/clang/*/include/varargs.h -%{_libdir}/clang/*/include/wmmintrin.h -%{_libdir}/clang/*/include/x86intrin.h -%{_libdir}/clang/*/include/xmmintrin.h -%{_libdir}/clang/*/include/mm3dnow.h +%{_libdir}/clang/*/include/*.h +%{_libdir}/clang/*/include/module.map %files clang-devel %defattr(-,root,root) ++++++ assume-opensuse.patch ++++++ --- /var/tmp/diff_new_pack.YoGIl7/_old 2012-04-18 16:30:36.000000000 +0200 +++ /var/tmp/diff_new_pack.YoGIl7/_new 2012-04-18 16:30:36.000000000 +0200 @@ -1,11 +1,12 @@ ---- tools/clang/lib/Driver/ToolChains.cpp 2011-08-12 11:19:35.000000000 +0200 -+++ tools/clang/lib/Driver/ToolChains.cpp 2011-08-12 12:10:47.733446958 +0200 -@@ -1346,8 +1346,7 @@ +Index: llvm/tools/clang/lib/Driver/ToolChains.cpp +=================================================================== +--- llvm.orig/tools/clang/lib/Driver/ToolChains.cpp ++++ llvm/tools/clang/lib/Driver/ToolChains.cpp +@@ -1840,7 +1840,7 @@ static bool IsRedhat(enum LinuxDistro Di } static bool IsOpenSuse(enum LinuxDistro Distro) { -- return Distro == OpenSuse11_3 || Distro == OpenSuse11_4 || -- Distro == OpenSuse12_1; +- return Distro >= OpenSuse11_3 && Distro <= OpenSuse12_1; + return true; } ++++++ clang-fix-mips-test.patch ++++++ Index: llvm/tools/clang/test/Driver/linux-ld.c =================================================================== --- llvm.orig/tools/clang/test/Driver/linux-ld.c +++ llvm/tools/clang/test/Driver/linux-ld.c @@ -194,14 +194,14 @@ // RUN: | FileCheck --check-prefix=CHECK-MIPS %s // CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" // CHECK-MIPS: "-m" "elf32btsmip" -// CHECK-MIPS: "-dynamic-linker" "{{.*}}/lib/ld.so.1" +// CHECK-MIPS: "-dynamic-linker" "{{.*}}/lib64/ld.so.1" // CHECK-MIPS-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mipsel-linux-gnu -ccc-clang-archs mipsel \ // RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s // CHECK-MIPSEL: "{{.*}}ld{{(.exe)?}}" // CHECK-MIPSEL: "-m" "elf32ltsmip" -// CHECK-MIPSEL: "-dynamic-linker" "{{.*}}/lib/ld.so.1" +// CHECK-MIPSEL: "-dynamic-linker" "{{.*}}/lib64/ld.so.1" // CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips64-linux-gnu -ccc-clang-archs mips64 \ ++++++ set-revision.patch ++++++ --- /var/tmp/diff_new_pack.YoGIl7/_old 2012-04-18 16:30:36.000000000 +0200 +++ /var/tmp/diff_new_pack.YoGIl7/_new 2012-04-18 16:30:36.000000000 +0200 @@ -1,6 +1,8 @@ ---- tools/clang/lib/Basic/Version.cpp (revision 131788) -+++ tools/clang/lib/Basic/Version.cpp (working copy) -@@ -50,11 +50,7 @@ +Index: llvm/tools/clang/lib/Basic/Version.cpp +=================================================================== +--- llvm.orig/tools/clang/lib/Basic/Version.cpp ++++ llvm/tools/clang/lib/Basic/Version.cpp +@@ -66,19 +66,11 @@ std::string getLLVMRepositoryPath() { } std::string getClangRevision() { @@ -9,6 +11,14 @@ -#else - return ""; -#endif + } + + std::string getLLVMRevision() { +-#ifdef LLVM_REVISION + return LLVM_REVISION; +-#else +- return ""; +-#endif } std::string getClangFullRepositoryVersion() { -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
