This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: GCC-style attributes for Fortran procedures?


Hi Harald,

Harald Anlauf wrote:
In C it is possible to write
   void fatal () __attribute__ ((noreturn));

It would be nice to have something equivalent for Fortran
procedures.  Maybe this can already be done using something
similar
    !GCC$ ATTRIBUTES noreturn :: fatal

That's the plan - however, no one has yet worked on it, cf. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41209 -- To the bugs an incomplete patch is installed.
I am not aware of anyone working on it thus it probably will take quite some time until it will be supported. (But one never knows.)


Regarding the support for older versions: I think one needs to use conditional compilation to avoid problems with GCC 4.5/4.6. GCC defines with cpp |__GNUC_MINOR__| which cna be used to distinguish different GCC versions.

Tobias


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