Yet another pass generating a useless dump file when it is not run.
Tested on x86_64-suse-linux, applied on mainline as obvious.
2016-10-19 Eric Botcazou <ebotca...@adacore.com>
* omp-low.c (pass_oacc_device_lower::gate): New method.
(execute): Always call execute_oacc_device_lower.
--
Eric Botcazou
Index: omp-low.c
===================================================================
--- omp-low.c (revision 241326)
+++ omp-low.c (working copy)
@@ -19850,13 +19850,10 @@ public:
{}
/* opt_pass methods: */
+ virtual bool gate (function *) { return flag_openacc; };
+
virtual unsigned int execute (function *)
{
- bool gate = flag_openacc != 0;
-
- if (!gate)
- return 0;
-
return execute_oacc_device_lower ();
}