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]

[gfortran] Fortran 2003 command line argument intrinsics.


Hello,

the included patch implements intrinsics for getting command line
arguments, which finally are standardized in Fortran 2003. Also
included is a test program if one wants to play around with the
feature. 

Unfortunately, the function command_argument_count() doesn't work at
the moment; it is only an alias for iargc(), which causes an ICE (PR
15665).

gcc Changelog:

	* intrinsic.c (add_functions): Add command_argument alias for
	iargc. (add_subroutines): Add symbols for get_command and
	get_command_argument.

libgfortran Changelog:

	* args.c: Modify comment in beginning of file. (iargc): Add
	void to argument list. (get_command_argument, get_command):
	New functions.


-- 
Janne Blomqvist

Attachment: f2003args.patch
Description: Text document

Attachment: echo.f90
Description: Text document


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