Hello community,

here is the log from the commit of package llvm for openSUSE:Factory checked in 
at 2016-04-11 09:12:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm (Old)
 and      /work/SRC/openSUSE:Factory/.llvm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm"

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm/llvm.changes        2016-03-18 
21:32:37.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.llvm.new/llvm.changes   2016-04-11 
09:12:11.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Apr  4 17:53:14 UTC 2016 - idon...@suse.com
+
+- Update llvm-remove-clang-only-flags.patch to remove
+  -Wcovered-switch-default flag for gcc compatibility.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm.spec ++++++
--- /var/tmp/diff_new_pack.ohLpID/_old  2016-04-11 09:12:15.000000000 +0200
+++ /var/tmp/diff_new_pack.ohLpID/_new  2016-04-11 09:12:15.000000000 +0200
@@ -218,6 +218,14 @@
 sed -i s,LLDB_REVISION,\"%{_revision}\",g tools/lldb/source/lldb.cpp
 %endif
 
+# ARMv6 needs this exact host triple
+%ifarch armv6hl
+cat > autoconf/config.guess << EOF
+#!/bin/sh
+echo armv6hl-suse-linux-gnueabi
+EOF
+%endif
+
 %build
 TOPLEVEL=$PWD
 mkdir stage1 stage2
@@ -232,14 +240,6 @@
       -DLLVM_ENABLE_ASSERTIONS=OFF \
       -DLLVM_TARGETS_TO_BUILD=host \
       -DLLDB_DISABLE_PYTHON=ON \
-%ifarch armv6hl
-      -DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s 
-mfpu=vfp" \
-      -DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s 
-mfpu=vfp" \
-%endif
-%ifarch armv7hl
-      -DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 
-mfpu=vfpv3-d16" \
-      -DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 
-mfpu=vfpv3-d16" \
-%endif
       ..
 
 ninja %{?_smp_mflags} clang -v
@@ -259,8 +259,8 @@
 %endif
       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
 %ifarch armv6hl
-      -DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s 
-mfpu=vfp" \
-      -DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s 
-mfpu=vfp" \
+      -DCMAKE_C_FLAGS="-target armv6hl-suse-linux-gnueabi -mfloat-abi=hard 
-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
+      -DCMAKE_CXX_FLAGS="-target armv6hl-suse-linux-gnueabi -mfloat-abi=hard 
-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
 %endif
 %ifarch armv7hl
       -DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 
-mfpu=vfpv3-d16" \
@@ -377,6 +377,11 @@
 %post clang-devel -p /sbin/ldconfig
 %postun clang-devel -p /sbin/ldconfig
 
+%if %{build_lldb}
+%post -n lldb -p /sbin/ldconfig
+%postun -n lldb -p /sbin/ldconfig
+%endif
+
 %files
 %defattr(-,root,root)
 %{_bindir}/bugpoint


++++++ llvm-remove-clang-only-flags.patch ++++++
--- /var/tmp/diff_new_pack.ohLpID/_old  2016-04-11 09:12:15.000000000 +0200
+++ /var/tmp/diff_new_pack.ohLpID/_new  2016-04-11 09:12:15.000000000 +0200
@@ -2,7 +2,15 @@
 ===================================================================
 --- llvm-3.8.0.src.orig/cmake/modules/HandleLLVMOptions.cmake
 +++ llvm-3.8.0.src/cmake/modules/HandleLLVMOptions.cmake
-@@ -302,9 +302,6 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
+@@ -417,7 +417,6 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
+ 
+     append_if(LLVM_ENABLE_PEDANTIC "-pedantic" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+     append_if(LLVM_ENABLE_PEDANTIC "-Wno-long-long" CMAKE_C_FLAGS 
CMAKE_CXX_FLAGS)
+-    add_flag_if_supported("-Wcovered-switch-default" 
COVERED_SWITCH_DEFAULT_FLAG)
+     append_if(USE_NO_UNINITIALIZED "-Wno-uninitialized" CMAKE_CXX_FLAGS)
+     append_if(USE_NO_MAYBE_UNINITIALIZED "-Wno-maybe-uninitialized" 
CMAKE_CXX_FLAGS)
+ 
+@@ -454,9 +453,6 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
      endif()
    endif (LLVM_ENABLE_WARNINGS)
    append_if(LLVM_ENABLE_WERROR "-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
@@ -12,7 +20,7 @@
    if (LLVM_ENABLE_CXX1Y)
      check_cxx_compiler_flag("-std=c++1y" CXX_SUPPORTS_CXX1Y)
      append_if(CXX_SUPPORTS_CXX1Y "-std=c++1y" CMAKE_CXX_FLAGS)
-@@ -367,13 +364,6 @@ add_llvm_definitions( -D__STDC_CONSTANT_
+@@ -578,13 +574,6 @@ add_llvm_definitions( -D__STDC_CONSTANT_
  add_llvm_definitions( -D__STDC_FORMAT_MACROS )
  add_llvm_definitions( -D__STDC_LIMIT_MACROS )
  


Reply via email to