This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[openacc] clean up acc directive matching in fortran
- From: Cesar Philippidis <cesar at codesourcery dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 16 Jun 2016 20:30:52 -0700
- Subject: [openacc] clean up acc directive matching in fortran
- Authentication-results: sourceware.org; auth=none
This patch introduces a match_acc function to the fortran FE. It's
almost identical to match_omp, but it passes openacc = true to
gfc_match_omp_clauses. I supposed I could have consolidated those two
functions, but they are reasonably simple so I left them separate. Maybe
a follow up patch can consolidate them. I was able to eliminate a lot of
duplicate code with this function.
Is this ok for trunk and gcc-6?
Cesar