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