This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix !$omp end .... symbols handling
Quoting Jakub Jelinek <jakub@redhat.com>:
> Currently it commits symbols for all OMP statements (through
> accept_statement () call or, if failed, undone through reject_statement ())
> except the END ones.
> The END ones when seen just modify start statement's omp_clauses:
...
> or
...
> and I don't want them in the parse tree at all (parse tree will contain
> just say EXEC_OMP_SINGLE and statements enclosed in !$omp single .. !$omp
> end single structured block as its ->block chain.
Makes sense. The patch is ok.
For the record: IIRC you're free to do whatever you want in omp.c and
trans-omp.c, I think this policy would also make sense in the other omp related
parts of the frontend.
Thanks,
- Tobi