Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ispc for openSUSE:Factory checked in 
at 2021-05-02 18:36:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ispc (Old)
 and      /work/SRC/openSUSE:Factory/.ispc.new.1947 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ispc"

Sun May  2 18:36:16 2021 rev:5 rq:889833 version:1.15.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ispc/ispc.changes        2021-04-18 
21:45:44.772786354 +0200
+++ /work/SRC/openSUSE:Factory/.ispc.new.1947/ispc.changes      2021-05-02 
18:39:26.552097322 +0200
@@ -1,0 +2,6 @@
+Sun May  2 12:20:27 UTC 2021 - Hans-Peter Jansen <h...@urpla.net>
+
+- Add fix-llvm12-fallout.patch with some LLVM API changes backported
+  as a temporary measure to fix LLVM 12 builds
+
+-------------------------------------------------------------------

New:
----
  fix-llvm12-fallout.patch

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

Other differences:
------------------
++++++ ispc.spec ++++++
--- /var/tmp/diff_new_pack.TusPD4/_old  2021-05-02 18:39:27.020095328 +0200
+++ /var/tmp/diff_new_pack.TusPD4/_new  2021-05-02 18:39:27.024095311 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Languages/C and C++
 URL:            https://ispc.github.io/
 Source:         
https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch:          fix-llvm12-fallout.patch
 BuildRequires:  bison
 BuildRequires:  clang-devel
 BuildRequires:  cmake >= 3.13
@@ -46,6 +47,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 # other distributions seem to provide curses compatibility links to ncurses
 sed -i 's|${PROJECT_NAME} pthread z tinfo curses)|${PROJECT_NAME} pthread z 
tinfo ncurses)|' CMakeLists.txt

++++++ fix-llvm12-fallout.patch ++++++
Index: b/src/ctx.cpp
===================================================================
--- a/src/ctx.cpp
+++ b/src/ctx.cpp
@@ -1473,11 +1473,15 @@ void FunctionEmitContext::AddDebugPos(ll
     llvm::Instruction *inst = llvm::dyn_cast<llvm::Instruction>(value);
     if (inst != NULL && m->diBuilder) {
         SourcePos p = pos ? *pos : currentPos;
-        if (p.first_line != 0)
+        if (p.first_line != 0) {
             // If first_line == 0, then we're in the middle of setting up
             // the standard library or the like; don't add debug positions
             // for those functions
-            inst->setDebugLoc(llvm::DebugLoc::get(p.first_line, 
p.first_column, scope ? scope : GetDIScope()));
+            scope = scope ? scope : GetDIScope();
+            llvm::DebugLoc diLoc =
+                llvm::DILocation::get(scope->getContext(), p.first_line, 
p.first_column, scope, nullptr, false);
+            inst->setDebugLoc(diLoc);
+        }
     }
 }
 
@@ -1518,9 +1522,10 @@ void FunctionEmitContext::EmitVariableDe
     llvm::DILocalVariable *var = m->diBuilder->createAutoVariable(
         scope, sym->name, sym->pos.GetDIFile(), sym->pos.first_line, diType, 
true /* preserve through opts */);
 
+    llvm::DebugLoc diLoc =
+        llvm::DILocation::get(scope->getContext(), sym->pos.first_line, 
sym->pos.first_column, scope, nullptr, false);
     llvm::Instruction *declareInst =
-        m->diBuilder->insertDeclare(sym->storagePtr, var, 
m->diBuilder->createExpression(),
-                                    llvm::DebugLoc::get(sym->pos.first_line, 
sym->pos.first_column, scope), bblock);
+        m->diBuilder->insertDeclare(sym->storagePtr, var, 
m->diBuilder->createExpression(), diLoc, bblock);
     AddDebugPos(declareInst, &sym->pos, scope);
 }
 
@@ -1535,9 +1540,10 @@ void FunctionEmitContext::EmitFunctionPa
         m->diBuilder->createParameterVariable(scope, sym->name, argNum + 1, 
sym->pos.GetDIFile(), sym->pos.first_line,
                                               diType, true /* preserve through 
opts */, flags);
 
+    llvm::DebugLoc diLoc =
+        llvm::DILocation::get(scope->getContext(), sym->pos.first_line, 
sym->pos.first_column, scope, nullptr, false);
     llvm::Instruction *declareInst =
-        m->diBuilder->insertDeclare(sym->storagePtr, var, 
m->diBuilder->createExpression(),
-                                    llvm::DebugLoc::get(sym->pos.first_line, 
sym->pos.first_column, scope), bblock);
+        m->diBuilder->insertDeclare(sym->storagePtr, var, 
m->diBuilder->createExpression(), diLoc, bblock);
     AddDebugPos(declareInst, &sym->pos, scope);
 }
 

Reply via email to