f7f5fb5
2011-01-28  Jakub Jelinek  <jakub@redhat.com>
f7f5fb5
f7f5fb5
	Revert:
f7f5fb5
	2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
f7f5fb5
f7f5fb5
	* configure: Regenerated.
f7f5fb5
	* configure.ac: Check for version 0.11 (or later revision) of PPL.
f7f5fb5
gcc/
f7f5fb5
	* doc/install.texi: Update the expected version number of PPL to 0.11.
f7f5fb5
	* graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
f7f5fb5
	#if PPL_VERSION_MINOR < 11.
f7f5fb5
f7f5fb5
--- gcc/doc/install.texi	(revision 169207)
f7f5fb5
+++ gcc/doc/install.texi	(revision 169206)
f7f5fb5
@@ -332,7 +332,7 @@ and @option{--with-mpc-include}.  Altern
f7f5fb5
 distribution is found in a subdirectory of your GCC sources named
f7f5fb5
 @file{mpc}, it will be built together with GCC@.
f7f5fb5
 
f7f5fb5
-@item Parma Polyhedra Library (PPL) version 0.11
f7f5fb5
+@item Parma Polyhedra Library (PPL) version 0.10
f7f5fb5
 
f7f5fb5
 Necessary to build GCC with the Graphite loop optimizations.
f7f5fb5
 It can be downloaded from @uref{http://www.cs.unipr.it/ppl/Download/}.
f7f5fb5
--- gcc/graphite-ppl.c	(revision 169207)
f7f5fb5
+++ gcc/graphite-ppl.c	(revision 169206)
f7f5fb5
@@ -521,6 +521,15 @@ debug_gmp_value (mpz_t val)
f7f5fb5
 bool
f7f5fb5
 ppl_powerset_is_empty (ppl_Pointset_Powerset_C_Polyhedron_t ps)
f7f5fb5
 {
f7f5fb5
+#if PPL_VERSION_MAJOR == 0 && PPL_VERSION_MINOR < 11
f7f5fb5
+  /* On PPL 0.10,
f7f5fb5
+     ppl_Pointset_Powerset_C_Polyhedron_contains_integer_point (ps)
f7f5fb5
+     takes too long on some cases and so we call _is_empty instead.  */
f7f5fb5
+  return ppl_Pointset_Powerset_C_Polyhedron_is_empty (ps);
f7f5fb5
+
f7f5fb5
+#else
f7f5fb5
+  /* On PPL 0.11 or later, we can check for integer feasibility using
f7f5fb5
+     the PIP solver.  */
f7f5fb5
   ppl_PIP_Problem_t pip;
f7f5fb5
   ppl_dimension_type d;
f7f5fb5
   ppl_const_Constraint_System_t pcs;
f7f5fb5
@@ -561,6 +570,7 @@ ppl_powerset_is_empty (ppl_Pointset_Powe
f7f5fb5
   ppl_delete_Pointset_Powerset_C_Polyhedron_iterator (end);
f7f5fb5
 
f7f5fb5
   return !has_integer_solutions;
f7f5fb5
+#endif
f7f5fb5
 }
f7f5fb5
 
f7f5fb5
 #endif
f7f5fb5
--- configure.ac	(revision 169207)
f7f5fb5
+++ configure.ac	(revision 169206)
a3e3a13
@@ -1688,9 +1688,9 @@ if test "x$with_ppl" != xno; then
a3e3a13
   if test "$enable_ppl_version_check" != no; then
a3e3a13
     saved_CFLAGS="$CFLAGS"
a3e3a13
     CFLAGS="$CFLAGS $pplinc $gmpinc"
a3e3a13
-    AC_MSG_CHECKING([for version 0.11 (revision 0 or later) of PPL])
a3e3a13
+    AC_MSG_CHECKING([for version 0.10 (revision 0 or later) of PPL])
a3e3a13
     AC_TRY_COMPILE([#include "ppl_c.h"],[
a3e3a13
-    #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
a3e3a13
+    #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
a3e3a13
     choke me
a3e3a13
     #endif
a3e3a13
     ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_ppl=no ])
f7f5fb5
--- configure	(revision 169207)
f7f5fb5
+++ configure	(revision 169206)
a3e3a13
@@ -5775,8 +5775,8 @@ fi
a3e3a13
   if test "$enable_ppl_version_check" != no; then
a3e3a13
     saved_CFLAGS="$CFLAGS"
a3e3a13
     CFLAGS="$CFLAGS $pplinc $gmpinc"
a3e3a13
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
a3e3a13
-$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
a3e3a13
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (revision 0 or later) of PPL" >&5
a3e3a13
+$as_echo_n "checking for version 0.10 (revision 0 or later) of PPL... " >&6; }
a3e3a13
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f7f5fb5
 /* end confdefs.h.  */
f7f5fb5
 #include "ppl_c.h"
a3e3a13
@@ -5784,7 +5784,7 @@ int
f7f5fb5
 main ()
f7f5fb5
 {
f7f5fb5
 
a3e3a13
-    #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
a3e3a13
+    #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
a3e3a13
     choke me
a3e3a13
     #endif
f7f5fb5
 
f7f5fb5
--- gcc/testsuite/gcc.dg/graphite/interchange-11.c.jj	2011-01-28 09:38:11.000000000 +0100
f7f5fb5
+++ gcc/testsuite/gcc.dg/graphite/interchange-11.c	2011-01-28 11:06:56.461429848 +0100
f7f5fb5
@@ -46,5 +46,5 @@ main (void)
f7f5fb5
   return 0;
f7f5fb5
 }
f7f5fb5
 
f7f5fb5
-/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } } */
f7f5fb5
+/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } */
f7f5fb5
 /* { dg-final { cleanup-tree-dump "graphite" } } */
f7f5fb5
--- gcc/testsuite/gcc.dg/graphite/interchange-13.c.jj	2011-01-28 09:38:12.000000000 +0100
f7f5fb5
+++ gcc/testsuite/gcc.dg/graphite/interchange-13.c	2011-01-28 11:07:08.182429223 +0100
f7f5fb5
@@ -50,5 +50,5 @@ main (void)
f7f5fb5
 }
f7f5fb5
 
f7f5fb5
 
f7f5fb5
-/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } } */
f7f5fb5
+/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } */
f7f5fb5
 /* { dg-final { cleanup-tree-dump "graphite" } } */
f7f5fb5
--- gcc/testsuite/gcc.dg/graphite/interchange-1.c.jj	2011-01-28 09:38:13.000000000 +0100
f7f5fb5
+++ gcc/testsuite/gcc.dg/graphite/interchange-1.c	2011-01-28 11:06:42.160429193 +0100
f7f5fb5
@@ -49,5 +49,5 @@ main (void)
f7f5fb5
   return 0;
f7f5fb5
 }
f7f5fb5
 
f7f5fb5
-/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } } */
f7f5fb5
+/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } */
f7f5fb5
 /* { dg-final { cleanup-tree-dump "graphite" } } */
f7f5fb5
--- gcc/testsuite/gfortran.dg/graphite/interchange-3.f90.jj	2011-01-28 09:38:05.000000000 +0100
f7f5fb5
+++ gcc/testsuite/gfortran.dg/graphite/interchange-3.f90	2011-01-28 11:07:46.313420441 +0100
f7f5fb5
@@ -24,5 +24,5 @@ Program FOO
f7f5fb5
 
f7f5fb5
 end Program FOO
f7f5fb5
 
f7f5fb5
-! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } }
f7f5fb5
+! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } }
f7f5fb5
 ! { dg-final { cleanup-tree-dump "graphite" } }