Commit b70e9775 by Sebastian Pop Committed by Sebastian Pop

re PR tree-optimization/37388 ([graphite] No warn with "-O0 -fgraphite" when…

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
parent 8199c8a8
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> 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
PR target/37434: PR target/37434:
......
...@@ -4800,12 +4800,6 @@ graphite_transform_loops (void) ...@@ -4800,12 +4800,6 @@ graphite_transform_loops (void)
void void
graphite_transform_loops (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"); sorry ("Graphite loop optimizations cannot be used");
} }
......
...@@ -1703,6 +1703,14 @@ process_options (void) ...@@ -1703,6 +1703,14 @@ process_options (void)
else else
aux_base_name = "gccaux"; 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 /* Unrolling all loops implies that standard loop unrolling must also
be done. */ be done. */
if (flag_unroll_all_loops) if (flag_unroll_all_loops)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment