[Fortran] RFC: Patch to support STDCALL etc. (PR 34112)

Jakub Jelinek jakub@redhat.com
Sun Jun 21 07:43:00 GMT 2009


On Sun, Jun 21, 2009 at 01:48:26AM +0200, Daniel Franke wrote:
> On Sunday 21 June 2009 01:17:49 Tobias Burnus wrote:
> > The following does not work with !$OMP and !GNU$:
> [snip]
> >+/* Match a !GCC$ ATTRIBUTES statement of the form:
> [snip]
> >+@code{!GNU$ ATTRIBUTES} @var{attribute-list} @code{::} @var{variable-list}
> 
> I'm confused, code has "GCC$", but the documentation refers to "GNU$"?
> 
> Is there a particular reason to use "GNU$"/"GCC$" and not "$GNU"/"$GCC", 
> similar to "$OMP"?

Yes, !$ is already taken by OpenMP as well, for OpenMP conditional
compilation.
For continuation lines it doesn't need to be followed by whitespace.
E.g.
!$ subroutine &
!$GCC
!$ end subroutine
is valid OpenMP program (with -fopenmp the same as
subroutine GCC
end subroutine
and without -fopenmp just empty source.

	Jakub



More information about the Fortran mailing list