This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran, Patch, OpenMP] PR33445 - Warn if (free format) !$OMP& is used as no continuation line


On Fri, Sep 21, 2007 at 05:34:36PM +0200, Tobias Burnus wrote:
> +			  else if (c2 == '&')
> +			    gfc_warning_now ("Found $!OMP& at %C but no "
> +					     "preceeding directive with "
> +					     "a tailing &");

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.
!$omp parallel
!$omp+ if(.true.)
      call foo
!$omp end parallel

is as valid fixed-form as !$omp& if (.true.) at that point.
Of course when the char is not &, you need to do more work than
just add & at the end of previous line.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]