From b70e977531af718dc6b3173d0645583f2b9a4808 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 10 Sep 2008 14:46:35 +0000 Subject: [PATCH] re PR tree-optimization/37388 ([graphite] No warn with "-O0 -fgraphite" when cloog or ppl are not present) 2008-09-10 Sebastian Pop 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 | 9 +++++++++ gcc/graphite.c | 6 ------ gcc/toplev.c | 8 ++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b2ecb9062a3..5ab022b246ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2008-09-10 Sebastian Pop + + 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 PR target/37434: diff --git a/gcc/graphite.c b/gcc/graphite.c index 40a317eb5f53..c173cca8bef8 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 7ace61c2b23c..ade3119184eb 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) -- 2.47.2