[Fortran, Patch, OpenMP] PR33445 - Warn if (free format) !$OMP& is used as no continuation line
Tobias Burnus
burnus@net-b.de
Sat Sep 22 13:52:00 GMT 2007
Jakub Jelinek wrote:
> If you want this warning to help with transitioning fixed-form
> OpenMP code to free-form, it shouldn't warn just about !$omp&,
> but about !$ompX where X is any character but space.
>
Good point (thanks also to Walter and Steve for the spell checking).
How about the following patch, which prints:
Warning: !$OMP at (1) starts a commented line as it neither is followed
by a space nor is a continuation line
(I'm happy to change the warning message, if someone has a better idea.)
Build & regression tested (Fortran & libgomp) on x86-64/Linux; OK for
the trunk?
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: omp-warn.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070922/5777370a/attachment.ksh>
More information about the Fortran
mailing list