patches/ppl/0.11.2/500-ptrdiff_t.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
     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: