File Make-IGC-compile-with-gcc-11.patch of Package intel-graphics-compiler

From 8164ecf080b8cd6465cef9254dfde055e9c02cde Mon Sep 17 00:00:00 2001
From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Date: Tue, 14 Sep 2021 19:03:51 +0200
Subject: [PATCH] Make IGC compile with gcc 11

Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de>
---
 igc/visa/Passes/InstCombine.cpp        | 1 +
 igc/visa/iga/IGALibrary/IR/RegDeps.hpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/visa/Passes/InstCombine.cpp b/visa/Passes/InstCombine.cpp
index 10152aa..c1aed0b 100644
--- a/igc/visa/Passes/InstCombine.cpp
+++ b/igc/visa/Passes/InstCombine.cpp
@@ -9,6 +9,7 @@ SPDX-License-Identifier: MIT
 
 #include <functional>
 #include <unordered_set>
+#include <limits>
 
 using namespace vISA;
 
diff --git a/igc/visa/iga/IGALibrary/IR/RegDeps.hpp b/visa/iga/IGALibrary/IR/RegDeps.hpp
index b66f975..780e35c 100644
--- a/igc/visa/iga/IGALibrary/IR/RegDeps.hpp
+++ b/igc/visa/iga/IGALibrary/IR/RegDeps.hpp
@@ -16,6 +16,7 @@ SPDX-License-Identifier: MIT
 #include <ostream>
 #include <vector>
 #include <map>
+#include <limits>
 
 
 namespace iga
-- 
2.32.0

openSUSE Build Service is sponsored by