[arch-commits] Commit in lib32-llvm/trunk (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Jun 15 17:20:10 UTC 2021


    Date: Tuesday, June 15, 2021 @ 17:20:09
  Author: foutrelis
Revision: 963917

upgpkg: lib32-llvm 12.0.0-2: guard against miscompiled source file

Added:
  lib32-llvm/trunk/no-strict-aliasing-DwarfCompileUnit.patch
Modified:
  lib32-llvm/trunk/PKGBUILD

-------------------------------------------+
 PKGBUILD                                  |   11 ++++++++---
 no-strict-aliasing-DwarfCompileUnit.patch |   13 +++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-15 17:14:48 UTC (rev 963916)
+++ PKGBUILD	2021-06-15 17:20:09 UTC (rev 963917)
@@ -4,7 +4,7 @@
 
 pkgname=('lib32-llvm' 'lib32-llvm-libs')
 pkgver=12.0.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url="https://llvm.org/"
 license=('custom:Apache 2.0 with LLVM Exception')
@@ -15,12 +15,14 @@
 source=($_source_base/llvm-$pkgver.src.tar.xz{,.sig}
         force-visibility-of-llvm-Any-to-external.patch
         llvm-link-with-Bsymbolic-functions.patch
-        add-fno-semantic-interposition.patch)
+        add-fno-semantic-interposition.patch
+        no-strict-aliasing-DwarfCompileUnit.patch)
 sha256sums=('49dc47c8697a1a0abd4ee51629a696d7bfe803662f2a7252a3b16fc75f3a8b50'
             'SKIP'
             '98721af5a36af2a8e88c14a81b16d3929b12515d7d2d1ba385eb243dca3c32cb'
             '560ce1e206c19f4b86f4c583b743db0ad47a610418999350710aafd60ae50fcd'
-            'fc8c64267a5d179e9fc24fb2bc6150edef2598c83f5b2d138d14e05ce9f4e345')
+            'fc8c64267a5d179e9fc24fb2bc6150edef2598c83f5b2d138d14e05ce9f4e345'
+            'd1eff24508e35aae6c26a943dbaa3ef5acb60a145b008fd1ef9ac6f6c4faa662')
 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
 
@@ -35,6 +37,9 @@
   patch -Np2 -i ../llvm-link-with-Bsymbolic-functions.patch
   # https://reviews.llvm.org/D102453
   patch -Np2 -i ../add-fno-semantic-interposition.patch
+
+  # https://bugs.llvm.org/show_bug.cgi?id=50611#c3
+  patch -Np2 -i ../no-strict-aliasing-DwarfCompileUnit.patch
 }
 
 build() {

Added: no-strict-aliasing-DwarfCompileUnit.patch
===================================================================
--- no-strict-aliasing-DwarfCompileUnit.patch	                        (rev 0)
+++ no-strict-aliasing-DwarfCompileUnit.patch	2021-06-15 17:20:09 UTC (rev 963917)
@@ -0,0 +1,13 @@
+diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
+index eb924282a75e..85929b54d6ce 100644
+--- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
++++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
+@@ -44,3 +44,8 @@ add_llvm_component_library(LLVMAsmPrinter
+   Support
+   Target
+   )
++
++# https://bugs.llvm.org/show_bug.cgi?id=50611#c3
++if (CMAKE_COMPILER_IS_GNUCXX)
++  set_source_files_properties(DwarfCompileUnit.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
++endif()



More information about the arch-commits mailing list