This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran] PR39505 - add support for !GCC$ attributes NO_ARG_CHECK
- From: Tobias Burnus <burnus at net-b dot de>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Wed, 17 Apr 2013 23:34:42 +0200
- Subject: Re: [Patch, Fortran] PR39505 - add support for !GCC$ attributes NO_ARG_CHECK
- References: <51657380 dot 2000809 at net-b dot de> <51667378 dot 2090209 at net-b dot de> <516826F8 dot 4070408 at net-b dot de> <516C6B3F dot 7000100 at netcologne dot de> <516C705F dot 9090404 at net-b dot de> <516C7F83 dot 4010509 at net-b dot de> <516DBB2A dot 8000203 at net-b dot de> <516F1210 dot 8080901 at netcologne dot de>
Thomas Koenig wrote:
Is my -f(no-)directives patch okay? Or do you envision something else?
In principle, it is OK; the only question is what the default should
I am in favor of "on".
For OpenMP, we require an option to change the semantics of a program
based on special comments. Currently, we do not do so for directives
which do the same thing.
Well, I see a difference here: (Nearly) all program using OpenMP work
also as serial program (-fno-openmp). On the other hand, without "!GCC$
attributes" directives (or the C equivalent: "__attribute__((...))"),
the program does not work properly. The attributes are used to be able
to express some feature which is not available in the standard but still
in some way required: stdcall, fastcall, dllimport, dllexport. "unused"
arguments, weak bindings (not yet for Fortran), disabling argument
checking (only Fortran), etc.