This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [OpenACC 9/11] oacc_device_lower pass gate



This patch is obvious, but included for completeness. We always want to run the device lowering pass (when openacc is enabled), in order to delete the marker and loop functions that should never be seen after this point.

nathan
2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>

	* omp-low.c (pass_oacc_device_lower::execute): Ignore errors.

Index: gcc/omp-low.c
===================================================================
--- gcc/omp-low.c	(revision 229101)
+++ gcc/omp-low.c	(working copy)
@@ -17598,7 +19386,7 @@ public:
   /* opt_pass methods: */
   virtual unsigned int execute (function *)
     {
-      bool gate = (flag_openacc != 0 && !seen_error ());
+      bool gate = flag_openacc != 0;
 
       if (!gate)
 	return 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]