[gfortran] add SIGNAL and ALARM intrinsics

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Oct 17 19:31:00 GMT 2005


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



More information about the Fortran mailing list