aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2008-09-10 14:46:35 +0000
committerSebastian Pop <spop@gcc.gnu.org>2008-09-10 14:46:35 +0000
commitb70e977531af718dc6b3173d0645583f2b9a4808 (patch)
tree8c886d6202e7511ef6bc19da0b147f4078270b84 /gcc
parent8199c8a865840ef3c426d6c37ade2199a0a86812 (diff)
downloadgcc-b70e977531af718dc6b3173d0645583f2b9a4808.zip
gcc-b70e977531af718dc6b3173d0645583f2b9a4808.tar.gz
gcc-b70e977531af718dc6b3173d0645583f2b9a4808.tar.bz2
re PR tree-optimization/37388 ([graphite] No warn with "-O0 -fgraphite" when cloog or ppl are not present)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/graphite.c6
-rw-r--r--gcc/toplev.c8
3 files changed, 17 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b2ecb9..5ab022b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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:
diff --git a/gcc/graphite.c b/gcc/graphite.c
index 40a317e..c173cca 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -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");
}
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 7ace61c..ade3119 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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)