PR fortran/15280
PR fortran/15665 * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_IARGC and GFC_ISYM_COMMAND_ARGUMENT_COUNT. * intrinsic.c (add_functions): Identify iargc. Add command_argument_count. (add_subroutines): Resolve getarg. Add get_command and get_command_argument. * intrinsic.h (gfc_resolve_getarg, gfc_resolve_get_command, gfc_resolve_get_command_argument): Add prototypes. * iresolve.c (gfc_resolve_getarg, gfc_resolve_get_command, gfc_resolve_get_command_argument): New functions. * trans-decl.c (gfor_fndecl_iargc): New variable. (gfc_build_intrinsic_function_decls): Set it. * trans-intrinsic.c (gfc_conv_intrinsic_iargc): New function. (gfc_conv_intrinsic_function): Use it. * trans.h (gfor_fndecl_iargc): Declare. libgfortran/ * libgfortran.h (gfc_strlen_type): Define. * intrinsics/args.c (getarg): Rename ... (getarg_i4): ... to this. (getarg_i8, get_command_argument_i4, get_command_argument_i8, get_command_i4, get_command_i8): New functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84087 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/fortran/ChangeLog 21 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/gfortran.h 2 additions, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/intrinsic.c 24 additions, 2 deletionsgcc/fortran/intrinsic.c
- gcc/fortran/intrinsic.h 3 additions, 0 deletionsgcc/fortran/intrinsic.h
- gcc/fortran/iresolve.c 42 additions, 0 deletionsgcc/fortran/iresolve.c
- gcc/fortran/trans-decl.c 6 additions, 0 deletionsgcc/fortran/trans-decl.c
- gcc/fortran/trans-intrinsic.c 31 additions, 0 deletionsgcc/fortran/trans-intrinsic.c
- gcc/fortran/trans.h 1 addition, 0 deletionsgcc/fortran/trans.h
- libgfortran/ChangeLog 11 additions, 0 deletionslibgfortran/ChangeLog
- libgfortran/intrinsics/args.c 196 additions, 4 deletionslibgfortran/intrinsics/args.c
- libgfortran/libgfortran.h 1 addition, 0 deletionslibgfortran/libgfortran.h
Loading
Please register or sign in to comment