This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [OpenACC 9/11] oacc_device_lower pass gate
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Bernd Schmidt <bschmidt at redhat dot com>, Jason Merrill <jason at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 21 Oct 2015 15:50:31 -0400
- Subject: Re: [OpenACC 9/11] oacc_device_lower pass gate
- Authentication-results: sourceware.org; auth=none
- References: <5627DD78 dot 9040302 at acm dot org>
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;