* module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code.
Check that intrinsic and non-intrinsic modules don't conflict. (use_iso_fortran_env_module): New function. (create_int_parameter): New function. * trans-types.c (gfc_init_kinds): Choose values for gfc_numeric_storage_size and gfc_character_storage_size. (gfc_numeric_storage_size, gfc_character_storage_size): New variables. * resolve.c (resolve_symbol): Do no check intrinsic modules against the list of intrinsic symbols. * iso-fortran-env.def: New file. * gfortran.h (gfc_numeric_storage_size, gfc_character_storage_size): Add prototypes. * gfortran.dg/use_3.f90: Remove error message. * gfortran.dg/iso_fortran_env_1.f90: New test. * gfortran.dg/iso_fortran_env_2.f90: New test. * gfortran.dg/iso_fortran_env_3.f90: New test. * gfortran.dg/iso_fortran_env_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118998 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/fortran/ChangeLog 15 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/gfortran.h 2 additions, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/iso-fortran-env.def 37 additions, 0 deletionsgcc/fortran/iso-fortran-env.def
- gcc/fortran/module.c 164 additions, 25 deletionsgcc/fortran/module.c
- gcc/fortran/resolve.c 1 addition, 1 deletiongcc/fortran/resolve.c
- gcc/fortran/trans-types.c 18 additions, 2 deletionsgcc/fortran/trans-types.c
- gcc/testsuite/ChangeLog 8 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/iso_fortran_env_1.f90 44 additions, 0 deletionsgcc/testsuite/gfortran.dg/iso_fortran_env_1.f90
- gcc/testsuite/gfortran.dg/iso_fortran_env_2.f90 76 additions, 0 deletionsgcc/testsuite/gfortran.dg/iso_fortran_env_2.f90
- gcc/testsuite/gfortran.dg/iso_fortran_env_3.f90 29 additions, 0 deletionsgcc/testsuite/gfortran.dg/iso_fortran_env_3.f90
- gcc/testsuite/gfortran.dg/iso_fortran_env_4.f90 14 additions, 0 deletionsgcc/testsuite/gfortran.dg/iso_fortran_env_4.f90
- gcc/testsuite/gfortran.dg/use_3.f90 1 addition, 1 deletiongcc/testsuite/gfortran.dg/use_3.f90
Loading
Please register or sign in to comment