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] RFC: Patch to support STDCALL etc. (PR 34112)


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


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