Closed mjklemm closed 1 week ago
@klausler Can you please have a look at this one?
what would you like to see in the -E
output? !$omp parallel private(tid)
?
I think the best idea would be something like this:
#line "./omp_blank_continuation.f90" 1
program omp_blank_continuation
use omp_lib
implicit none
integer :: tid
!$omp parallel &
!$omp private(tid)
tid = omp_get_thread_num()
print '(A," ",I0)', 'Hello from', tid
!$omp end parallel
end program omp_blank_continuation
So, maybe keep the structure of the lines incl. their continuation. because then we do not have to mess with the rewriting of OpenMP (or OpenACC maybe, too) directives to merge them.
We are also hitting this issue in some of the test-applications we're using internally.
@llvm/issue-subscribers-flang-frontend
Author: Michael Klemm (mjklemm)
@klausler Would you mind spending some time on this? It has popped up in the linked report #100730, too.
With this reproducer:
The preprocessors generates invalid OpenMP directives:
This is due to seemingly too agressive removal of continuation lines: