public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Allow new ISL/CLooG versions
@ 2013-01-14 14:29 Richard Biener
  2013-01-14 15:44 ` Tobias Grosser
  2013-01-20 10:15 ` Eric Botcazou
  0 siblings, 2 replies; 19+ messages in thread
From: Richard Biener @ 2013-01-14 14:29 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jakub Jelinek


This makes us accept the CLooG 0.18.0 and ISL 0.11.1 combo.

It's probably not the best stage to move the version checks to
gcc/ where we can rely on built in-tree ISL/CLooG, so this avoids
it with the caveat that in-tree CLooG 0.18.0 will fail the
version check (they no longer ship built version.h but only
version.h.in).

I verified all GRAPHITE tests pass with 0.18.0/0.11.1.

Ok for trunk?

Or do people prefer to move CLooG/ISL checks to gcc/ configure
time to fix the in-tree use of 0.18.0 and also do version checks
of in-tree ISL at all (they don't have a version.h).

Thanks,
Richard.

2013-01-14  Richard Biener  <rguenther@suse.de>

	* configure.ac (cloog/isl): Also allow ISL 0.11.x and CLooG 0.18.0.
	* configure: Re-generate.

Index: configure.ac
===================================================================
--- configure.ac	(revision 195144)
+++ configure.ac	(working copy)
@@ -1606,8 +1606,11 @@ if test "x$with_isl" != "xno" &&
   dnl Provide configure switches and initialize islinc & isllibs
   dnl with user input.
   ISL_INIT_FLAGS
-  dnl The minimal version of ISL required for Graphite.
+  dnl The versions of ISL that work for Graphite
   ISL_CHECK_VERSION(0,10)
+  if test "${gcc_cv_isl}" = no ; then
+    ISL_CHECK_VERSION(0,11)
+  fi
   dnl Only execute fail-action, if ISL has been requested.
   ISL_IF_FAILED([
     AC_MSG_ERROR([Unable to find a usable ISL.  See config.log for details.])])
@@ -1617,11 +1620,11 @@ if test "x$with_isl" != "xno" &&
     dnl Provide configure switches and initialize clooginc & clooglibs
     dnl with user input.
     CLOOG_INIT_FLAGS
-    dnl The minimal version of CLooG required for Graphite.
-    dnl
-    dnl If we use CLooG-Legacy, the provided version information is
-    dnl ignored.
+    dnl The versions of CLooG that work for Graphite.
     CLOOG_CHECK_VERSION(0,17,0)
+    if test "${gcc_cv_cloog}" = no ; then
+      CLOOG_CHECK_VERSION(0,18,0)
+    fi
 
     dnl Only execute fail-action, if CLooG has been requested.
     CLOOG_IF_FAILED([

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH] Allow new ISL/CLooG versions
@ 2013-01-14 19:27 Dominique Dhumieres
  2013-01-14 20:20 ` Jack Howarth
  0 siblings, 1 reply; 19+ messages in thread
From: Dominique Dhumieres @ 2013-01-14 19:27 UTC (permalink / raw)
  To: gcc-patches; +Cc: tobias, howarth, rguenther

In order to bootstrap r195167 with the new ISL/CLooG versions,
I had to apply the following patch:

--- ../work/configure	2013-01-14 19:32:00.000000000 +0100
+++ configure	2013-01-14 19:42:15.000000000 +0100
@@ -5848,7 +5848,7 @@ else
 int
 main ()
 {
-if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
+if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
      return 1;
 
   ;
@@ -6033,7 +6033,7 @@ int
 main ()
 {
 #if CLOOG_VERSION_MAJOR != 0 \
-    || CLOOG_VERSION_MINOR != 17 \
+    || CLOOG_VERSION_MINOR != 18 \
     || CLOOG_VERSION_REVISION < 0
     choke me
    #endif

(I didn't bother to update the messages: got 
checking for version 0.10 of ISL... yes
checking for version 0.17.0 of CLooG... yes).

Dominique

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH] Allow new ISL/CLooG versions
@ 2013-01-14 20:18 Dominique Dhumieres
  0 siblings, 0 replies; 19+ messages in thread
From: Dominique Dhumieres @ 2013-01-14 20:18 UTC (permalink / raw)
  To: gcc-patches; +Cc: tobias, howarth, rguenther

Jack,

> How exactly did you test this? I am using isl 0.11.1 and cloog 0.18.0 from fink
> installed in /sw out of tree. This fails in config.log as...

Same here (the libs are not in /sw but in /mp) and I got the same errors before
I did the changed in my previous post.

Dominique

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-01-20 13:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-14 14:29 [PATCH] Allow new ISL/CLooG versions Richard Biener
2013-01-14 15:44 ` Tobias Grosser
2013-01-14 16:03   ` Jack Howarth
2013-01-14 16:29     ` Jack Howarth
2013-01-14 18:20       ` Richard Biener
2013-01-14 20:04         ` Jack Howarth
2013-01-20 10:15 ` Eric Botcazou
2013-01-20 13:27   ` Richard Biener
2013-01-14 19:27 Dominique Dhumieres
2013-01-14 20:20 ` Jack Howarth
2013-01-14 20:29   ` Dominique Dhumieres
2013-01-14 20:45     ` Jack Howarth
2013-01-15  9:24   ` Richard Biener
2013-01-15 10:06     ` Richard Biener
2013-01-15 12:58       ` Jakub Jelinek
2013-01-15 14:07       ` Jack Howarth
2013-01-16  9:31         ` Richard Biener
2013-01-16  9:36           ` Richard Biener
2013-01-14 20:18 Dominique Dhumieres

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).