From 11c9581a4a381cf91d76eb918e5c8520dc5e7258 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 22 May 2015 13:06:53 +0300 Subject: llvm copy from gentoo repo --- sys-devel/llvm/files/llvm-3.3-R600_debug.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys-devel/llvm/files/llvm-3.3-R600_debug.patch (limited to 'sys-devel/llvm/files/llvm-3.3-R600_debug.patch') diff --git a/sys-devel/llvm/files/llvm-3.3-R600_debug.patch b/sys-devel/llvm/files/llvm-3.3-R600_debug.patch new file mode 100644 index 0000000..b104273 --- /dev/null +++ b/sys-devel/llvm/files/llvm-3.3-R600_debug.patch @@ -0,0 +1,22 @@ +Fixes compilation of llvm-3.3 on gcc-4.6 and 4.7 when VIDEO_CARDS=radeon + +This issue is caused because although Q is a multiset the original code tries to get +a set iterator which can't be converted in a multiset one. + +The fix is as simple as just using a multiset iterator. + +Patch by Francisco Blas Izquierdo Riera (klondike) +Consider the changes in the Public Domain +https://bugs.gentoo.org/show_bug.cgi?id=474096 + +--- lib/Target/R600/R600MachineScheduler.cpp ++++ lib/Target/R600/R600MachineScheduler.cpp +@@ -290,7 +290,7 @@ + SUnit *R600SchedStrategy::PopInst(std::multiset &Q) { + if (Q.empty()) + return NULL; +- for (std::set::iterator It = Q.begin(), E = Q.end(); ++ for (std::multiset::iterator It = Q.begin(), E = Q.end(); + It != E; ++It) { + SUnit *SU = *It; + InstructionsGroupCandidate.push_back(SU->getInstr()); -- cgit v1.2.3