aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch
blob: faa8252c432f632c1b7e5929715929e70fa88be9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
This patch was downloaded from https://sft.its.cern.ch/jira/browse/ROOT-7047.
It fixes the build of clang 3.5 with GCC 5.  File paths have been adjusted.

From 00f3ed6eee41da871799ad0fd19153c7682d61fe Mon Sep 17 00:00:00 2001
From: Alexander Klimov <alserkli@inbox.ru>
Date: Mon, 26 Jan 2015 18:45:23 +0200
Subject: [PATCH] [ADT/IntrusiveRefCntPtr] Give friend access to
 IntrusiveRefCntPtr<X> so the relevant move constructor can
 access 'Obj'.

From LLVM upstream:
Author: Argyrios Kyrtzidis <akyrtzi@gmail.com>
Date:   Tue Sep 23 06:06:43 2014 +0000
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218295 91177308-0d34-0410-b5e6-96231b3b80d8
---
 interpreter/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h
index f9df378..c859c98 100644
--- a/include/llvm/ADT/IntrusiveRefCntPtr.h
+++ b/include/llvm/ADT/IntrusiveRefCntPtr.h
@@ -197,6 +197,9 @@ public:
   private:
     void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
     void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
+
+    template <typename X>
+    friend class IntrusiveRefCntPtr;
   };
 
   template<class T, class U>
-- 
1.7.10.4

ix/tree/tests/builders.scm?id=f7642d2fd20ff585b7034e2611b59380fc686c25'>builders.scm2902logplainabout -rw-r--r--cache.scm2999logplainabout -rw-r--r--challenge.scm10708logplainabout -rw-r--r--channels.scm26837logplainabout -rw-r--r--civodul.key88561logplainabout -rw-r--r--combinators.scm3045logplainabout -rw-r--r--containers.scm11158logplainabout -rw-r--r--cpan.scm3659logplainabout -rw-r--r--cpio.scm3154logplainabout -rw-r--r--cran.scm4994logplainabout -rw-r--r--crate.scm22188logplainabout -rw-r--r--cve-sample.json46447logplainabout -rw-r--r--cve.scm3672logplainabout -rw-r--r--debug-link.scm6709logplainabout -rw-r--r--derivations.scm62919logplainabout -rw-r--r--discovery.scm2540logplainabout -rw-r--r--dsa.key1432logplainabout -rw-r--r--ed25519.key417logplainabout -rw-r--r--ed25519.sec467logplainabout -rw-r--r--ed25519bis.key409logplainabout -rw-r--r--ed25519bis.sec459logplainabout -rw-r--r--elpa.scm2913logplainabout -rw-r--r--file-systems.scm4717logplainabout -rw-r--r--gem.scm6455logplainabout -rw-r--r--gexp.scm70736logplainabout -rw-r--r--git-authenticate.scm15597logplainabout -rw-r--r--git.scm6826logplainabout -rw-r--r--glob.scm2551logplainabout -rw-r--r--gnu-maintenance.scm1688logplainabout -rw-r--r--grafts.scm22364logplainabout -rw-r--r--graph.scm22224logplainabout -rw-r--r--gremlin.scm3478logplainabout -rw-r--r--guix-archive.sh2803logplainabout -rw-r--r--guix-authenticate.sh3045logplainabout -rw-r--r--guix-build-branch.sh2222logplainabout -rw-r--r--guix-build.sh12041logplainabout -rw-r--r--guix-daemon.sh8308logplainabout -rw-r--r--guix-describe.sh1405logplainabout -rw-r--r--guix-download.sh1485logplainabout -rw-r--r--guix-environment-container.sh6518logplainabout -rw-r--r--guix-environment.sh8975logplainabout -rw-r--r--guix-gc.sh2682logplainabout -rw-r--r--guix-git-authenticate.sh2154logplainabout -rw-r--r--guix-graph.sh2918logplainabout -rw-r--r--guix-hash.sh2631logplainabout -rw-r--r--guix-lint.sh2911logplainabout -rw-r--r--guix-pack-localstatedir.sh2565logplainabout -rw-r--r--guix-pack-relocatable.sh9237logplainabout -rw-r--r--guix-pack.sh5061logplainabout -rw-r--r--guix-package-aliases.sh2155logplainabout -rw-r--r--guix-package-net.sh7624logplainabout -rw-r--r--guix-package.sh15578logplainabout -rw-r--r--guix-repl.sh2376logplainabout -rw-r--r--guix-system.sh10228logplainabout -rw-r--r--hackage.scm10660logplainabout -rw-r--r--import-utils.scm7844logplainabout -rw-r--r--inferior.scm10870logplainabout -rw-r--r--lint.scm45945logplainabout -rw-r--r--modules.scm2582logplainabout -rw-r--r--monads.scm9099logplainabout -rw-r--r--nar.scm22058logplainabout -rw-r--r--networking.scm4024logplainabout -rw-r--r--offload.scm2683logplainabout -rw-r--r--opam.scm7352logplainabout -rw-r--r--openpgp.scm10284logplainabout -rw-r--r--pack.scm12933logplainabout -rw-r--r--packages.scm79058logplainabout -rw-r--r--pki.scm5220logplainabout -rw-r--r--print.scm2705logplainabout -rw-r--r--processes.scm4691logplainabout -rw-r--r--profiles.scm30878logplainabout -rw-r--r--publish.scm29619logplainabout -rw-r--r--pypi.scm13678logplainabout -rw-r--r--records.scm15123logplainabout -rw-r--r--rsa.key953logplainabout -rw-r--r--scripts.scm2034logplainabout -rw-r--r--search-paths.scm1768logplainabout -rw-r--r--services.scm11536logplainabout d---------services37logplain -rw-r--r--sets.scm1507logplainabout -rw-r--r--signing-key.pub302logplainabout -rw-r--r--signing-key.sec983logplainabout -rw-r--r--size.scm4576logplainabout -rw-r--r--snix.scm2504logplainabout -rw-r--r--status.scm12235logplainabout -rw-r--r--store-database.scm4850logplainabout -rw-r--r--store-deduplication.scm5266logplainabout -rw-r--r--store-roots.scm1899logplainabout -rw-r--r--store.scm63537logplainabout -rw-r--r--substitute.scm24753logplainabout -rw-r--r--swh.scm3790logplainabout -rw-r--r--syscalls.scm20993logplainabout -rw-r--r--system.scm5143logplainabout -rw-r--r--test.drv5922logplainabout -rw-r--r--texlive.scm4493logplainabout -rw-r--r--transformations.scm19026logplainabout -rw-r--r--ui.scm8936logplainabout -rw-r--r--union.scm9714logplainabout -rw-r--r--upstream.scm1963logplainabout -rw-r--r--utils.scm10610logplainabout -rw-r--r--uuid.scm2755logplainabout -rw-r--r--workers.scm2172logplainabout