]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/37388 ([graphite] No warn with "-O0 -fgraphite" when cloog...
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 10 Sep 2008 14:46:35 +0000 (14:46 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 10 Sep 2008 14:46:35 +0000 (14:46 +0000)
2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/37388
* toplev.c (process_options): Fail and warn when graphite
flags are used, but the compiler has not been configured
with graphite libraries.
* graphite.c (graphite_transform_loops): Remove printfs
to dump_file for the case when graphite is not available.

From-SVN: r140232

gcc/ChangeLog
gcc/graphite.c
gcc/toplev.c

index 5b2ecb9062a3e3faef92d2c15a20f8842de26b39..5ab022b246efc85463f4a7c51721a46e5c8d4274 100644 (file)
@@ -1,3 +1,12 @@
+2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
+
+       PR tree-optimization/37388
+       * toplev.c (process_options): Fail and warn when graphite
+       flags are used, but the compiler has not been configured
+       with graphite libraries.
+       * graphite.c (graphite_transform_loops): Remove printfs
+       to dump_file for the case when graphite is not available.
+
 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/37434:
index 40a317eb5f53230b38fb1d0c2c53689070435b1e..c173cca8bef85ce5edc3d6e69feadea1ea23b837 100644 (file)
@@ -4800,12 +4800,6 @@ graphite_transform_loops (void)
 void
 graphite_transform_loops (void)
 {
-  if (dump_file && (dump_flags & TDF_DETAILS))
-    {
-      fprintf (dump_file, "Graphite loop optimizations cannot be used.\n");
-      fprintf (dump_file, "GCC has not been configured with the required "
-              "libraries for Graphite loop optimizations.");
-    }
   sorry ("Graphite loop optimizations cannot be used");
 }
 
index 7ace61c2b23c7abe02eaf7626806167ff03559c6..ade3119184eb892cac8a93dafde7ec702a620e52 100644 (file)
@@ -1703,6 +1703,14 @@ process_options (void)
   else
     aux_base_name = "gccaux";
 
+#ifndef HAVE_cloog
+  if (flag_graphite
+      || flag_loop_block
+      || flag_loop_interchange
+      || flag_loop_strip_mine)
+    sorry ("Graphite loop optimizations cannot be used");
+#endif
+
   /* Unrolling all loops implies that standard loop unrolling must also
      be done.  */
   if (flag_unroll_all_loops)