patches/ppl/0.11.2/500-ptrdiff_t.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
     1 From: Bernhard Walle <bernhard@bwalle.de>
     2 Subject: Fix compilation with gcc 4.9 (ptrdiff_t errors)
     3 
     4 This is a backport of following patch in ppl git
     5 
     6   commit 61d4e14dfd9f1121e9b4521dead5728b2424dd7c
     7   Author: Roberto Bagnara <bagnara@cs.unipr.it>
     8   Date:   Tue Apr 29 21:51:43 2014 +0200
     9 
    10       Added missing inclusions.  Use std::ptrdiff_t.
    11       (Thanks to Paulo Cesar Pereira de Andrade.)
    12 
    13 ---
    14  src/Congruence_System.defs.hh     |    3 ++-
    15  src/Constraint_System.defs.hh     |    3 ++-
    16  src/Generator_System.defs.hh      |    3 ++-
    17  src/Grid_Generator_System.defs.hh |    3 ++-
    18  4 files changed, 8 insertions(+), 4 deletions(-)
    19 
    20 --- a/src/Grid_Generator_System.defs.hh
    21 +++ b/src/Grid_Generator_System.defs.hh
    22 @@ -30,6 +30,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    23  #include "Variables_Set.types.hh"
    24  #include "Grid.types.hh"
    25  #include <iosfwd>
    26 +#include <cstddef>
    27  
    28  namespace Parma_Polyhedra_Library {
    29  
    30 @@ -267,7 +268,7 @@ public:
    31    class const_iterator
    32      : public std::iterator<std::forward_iterator_tag,
    33  			   Grid_Generator,
    34 -			   ptrdiff_t,
    35 +			   std::ptrdiff_t,
    36  			   const Grid_Generator*,
    37  			   const Grid_Generator&>,
    38        private Generator_System::const_iterator {
    39 --- a/src/Congruence_System.defs.hh
    40 +++ b/src/Congruence_System.defs.hh
    41 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    42  #include "Grid.types.hh"
    43  #include "Grid_Certificate.types.hh"
    44  #include <iosfwd>
    45 +#include <cstddef>
    46  
    47  namespace Parma_Polyhedra_Library {
    48  
    49 @@ -235,7 +236,7 @@ public:
    50    class const_iterator
    51      : public std::iterator<std::forward_iterator_tag,
    52  			   Congruence,
    53 -			   ptrdiff_t,
    54 +			   std::ptrdiff_t,
    55  			   const Congruence*,
    56  			   const Congruence&> {
    57    public:
    58 --- a/src/Constraint_System.defs.hh
    59 +++ b/src/Constraint_System.defs.hh
    60 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    61  #include "Congruence_System.types.hh"
    62  #include <iterator>
    63  #include <iosfwd>
    64 +#include <cstddef>
    65  
    66  namespace Parma_Polyhedra_Library {
    67  
    68 @@ -204,7 +205,7 @@ public:
    69    class const_iterator
    70      : public std::iterator<std::forward_iterator_tag,
    71  			   Constraint,
    72 -			   ptrdiff_t,
    73 +			   std::ptrdiff_t,
    74  			   const Constraint*,
    75  			   const Constraint&> {
    76    public:
    77 --- a/src/Generator_System.defs.hh
    78 +++ b/src/Generator_System.defs.hh
    79 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    80  #include "Polyhedron.types.hh"
    81  #include "Poly_Con_Relation.defs.hh"
    82  #include <iosfwd>
    83 +#include <cstddef>
    84  
    85  namespace Parma_Polyhedra_Library {
    86  
    87 @@ -250,7 +251,7 @@ public:
    88    class const_iterator
    89      : public std::iterator<std::forward_iterator_tag,
    90  			   Generator,
    91 -			   ptrdiff_t,
    92 +			   std::ptrdiff_t,
    93  			   const Generator*,
    94  			   const Generator&> {
    95    public: