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: [gfortran] add SIGNAL and ALARM intrinsics


On Mon, Oct 17, 2005 at 09:21:47PM +0200, Paul Thomas wrote:
> 
> These should come with a couple of gfc_notify_standards should they not?
> 

For intrinsics, we assign the "standard" in intrinsic.c
when we add the function/subroutine to the list of names.
For example, FX has

+  add_sym_3s ("signal", 0, 1, BT_UNKNOWN, 0, GFC_STD_GNU,
+             gfc_check_signal_sub, NULL, gfc_resolve_signal_sub,
+             num, BT_INTEGER, di, REQUIRED, han, BT_UNKNOWN, 0, REQUIRED,
+             st, BT_INTEGER, di, OPTIONAL);
+

where GFC_STD_GNU says that signal is accepted as an intrinsic
subroutine.  If you use -std=f95, you will get an error or an
unresolved symbol during linkage.  I don't recall the behavior
off the top of my head.

-- 
Steve


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