update cloudooo revision.
[slapos.git] / component / gcc / ppl-0.11-gcc-4.9.patch
1 # HG changeset patch
2 # User Bernhard Walle <bernhard@bwalle.de>
3 # Date 1399806036 -7200
4 #      Sun May 11 13:00:36 2014 +0200
5 # Node ID 5632a171e7c1dc4c0fb5c7a8352afb4188cd29d5
6 # Parent  e35fa03cd2043496839aa5fa3a1a3d2d375b5535
7 complibs/ppl: Fix build of ppl 0.11.2 with gcc 4.9
8
9   From: Roberto Bagnara <bagnara@cs.unipr.it>
10   Date: Tue, 29 Apr 2014 19:51:43 +0000 (+0200)
11   Subject: Added missing inclusions.  Use std::ptrdiff_t.
12   X-Git-Url: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl%2Fppl.git;a=commitdiff_plain;h=61d4e14dfd9f1121e9b4521dead5728b2424dd7c
13
14   Added missing inclusions.  Use std::ptrdiff_t.
15   (Thanks to Paulo Cesar Pereira de Andrade.)
16
17 Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
18
19 diff -r e35fa03cd204 -r 5632a171e7c1 patches/ppl/0.11.2/500-ptrdiff_t.patch
20 --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
21 +++ b/patches/ppl/0.11.2/500-ptrdiff_t.patch    Sun May 11 13:00:36 2014 +0200
22 @@ -0,0 +1,95 @@
23 +From: Bernhard Walle <bernhard@bwalle.de>
24 +Subject: Fix compilation with gcc 4.9 (ptrdiff_t errors)
25 +
26 +This is a backport of following patch in ppl git
27 +
28 +  commit 61d4e14dfd9f1121e9b4521dead5728b2424dd7c
29 +  Author: Roberto Bagnara <bagnara@cs.unipr.it>
30 +  Date:   Tue Apr 29 21:51:43 2014 +0200
31 +
32 +      Added missing inclusions.  Use std::ptrdiff_t.
33 +      (Thanks to Paulo Cesar Pereira de Andrade.)
34 +
35 +---
36 + src/Congruence_System.defs.hh     |    3 ++-
37 + src/Constraint_System.defs.hh     |    3 ++-
38 + src/Generator_System.defs.hh      |    3 ++-
39 + src/Grid_Generator_System.defs.hh |    3 ++-
40 + 4 files changed, 8 insertions(+), 4 deletions(-)
41 +
42 +--- a/src/Grid_Generator_System.defs.hh
43 ++++ b/src/Grid_Generator_System.defs.hh
44 +@@ -30,6 +30,7 @@ site: http://www.cs.unipr.it/ppl/ . */
45 + #include "Variables_Set.types.hh"
46 + #include "Grid.types.hh"
47 + #include <iosfwd>
48 ++#include <cstddef>
49
50 + namespace Parma_Polyhedra_Library {
51
52 +@@ -267,7 +268,7 @@ public:
53 +   class const_iterator
54 +     : public std::iterator<std::forward_iterator_tag,
55 +                          Grid_Generator,
56 +-                         ptrdiff_t,
57 ++                         std::ptrdiff_t,
58 +                          const Grid_Generator*,
59 +                          const Grid_Generator&>,
60 +       private Generator_System::const_iterator {
61 +--- a/src/Congruence_System.defs.hh
62 ++++ b/src/Congruence_System.defs.hh
63 +@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
64 + #include "Grid.types.hh"
65 + #include "Grid_Certificate.types.hh"
66 + #include <iosfwd>
67 ++#include <cstddef>
68
69 + namespace Parma_Polyhedra_Library {
70
71 +@@ -235,7 +236,7 @@ public:
72 +   class const_iterator
73 +     : public std::iterator<std::forward_iterator_tag,
74 +                          Congruence,
75 +-                         ptrdiff_t,
76 ++                         std::ptrdiff_t,
77 +                          const Congruence*,
78 +                          const Congruence&> {
79 +   public:
80 +--- a/src/Constraint_System.defs.hh
81 ++++ b/src/Constraint_System.defs.hh
82 +@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
83 + #include "Congruence_System.types.hh"
84 + #include <iterator>
85 + #include <iosfwd>
86 ++#include <cstddef>
87
88 + namespace Parma_Polyhedra_Library {
89
90 +@@ -204,7 +205,7 @@ public:
91 +   class const_iterator
92 +     : public std::iterator<std::forward_iterator_tag,
93 +                          Constraint,
94 +-                         ptrdiff_t,
95 ++                         std::ptrdiff_t,
96 +                          const Constraint*,
97 +                          const Constraint&> {
98 +   public:
99 +--- a/src/Generator_System.defs.hh
100 ++++ b/src/Generator_System.defs.hh
101 +@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
102 + #include "Polyhedron.types.hh"
103 + #include "Poly_Con_Relation.defs.hh"
104 + #include <iosfwd>
105 ++#include <cstddef>
106
107 + namespace Parma_Polyhedra_Library {
108
109 +@@ -250,7 +251,7 @@ public:
110 +   class const_iterator
111 +     : public std::iterator<std::forward_iterator_tag,
112 +                          Generator,
113 +-                         ptrdiff_t,
114 ++                         std::ptrdiff_t,
115 +                          const Generator*,
116 +                          const Generator&> {
117 +   public: