root/root-Set-DataLayout-from-our-TargetMachine.patch
Mattias Ellert a08fcbc5ad Update to 6.28.00
ROOT now uses llvm/clang version 13 (updated from version 9)
Clean up specfile by removing EPEL 7 conditionals
Drop dataframe, roofit and tmva-sofieparser on EPEL 8 ppc64le due to
  "pure virtual method called" errors
Split the root-geom sub-package into three separate sub-packages:
  root-geom, root-geom-builder and root-geom-painter
Enable uring support in EPEL 9 (liburing now available)
New sub-packages: root-geom-webviewer, root-roofit-jsoninterface,
  root-testsupport, root-tree-ntuple-utils, root-tree-webviewer,
  root-xroofit
Dropped patches: 31
New patches: 17
Updated patches: 4
2023-03-19 07:53:00 +01:00

32 lines
1.2 KiB
Diff

From d4c66a41ae50ecfb905ebe66eb296de4e5c146d7 Mon Sep 17 00:00:00 2001
From: Jonas Hahnfeld <jonas.hahnfeld@cern.ch>
Date: Thu, 16 Feb 2023 16:40:16 +0100
Subject: [PATCH 2/2] [cling] Set DataLayout from our TargetMachine
Otherwise LLJIT's constructor will ask the LLJITBuilder's JTMB to
create a DataLayout. As we don't propagate the JTMB (yet -- we
probably should!), this will be wrong if target features influence
the DataLayout.
This should fix #12293.
(cherry picked from commit 254bac6cfad78ed671ec3af3d2001c52487b4c86)
---
interpreter/cling/lib/Interpreter/IncrementalJIT.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp b/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp
index 80b6761491..e1721a4d45 100644
--- a/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp
+++ b/interpreter/cling/lib/Interpreter/IncrementalJIT.cpp
@@ -358,6 +358,7 @@ IncrementalJIT::IncrementalJIT(
ErrorAsOutParameter _(&Err);
LLJITBuilder Builder;
+ Builder.setDataLayout(TM->createDataLayout());
Builder.setExecutorProcessControl(std::move(EPC));
// Create ObjectLinkingLayer with our own MemoryManager.
--
2.39.2