]> git.ipfire.org Git - thirdparty/gcc.git/commit
module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sun, 19 Nov 2006 21:18:26 +0000 (22:18 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 19 Nov 2006 21:18:26 +0000 (21:18 +0000)
commit39f87c0333117fa64894cb1f7dd0e69307a9cf0d
treeb2734b99a31fb23609fb1cb9fad4c26a5baeb8b2
parent0eab7815089fe868b55e502c69d61d97346535af
module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code.

* 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.

From-SVN: r118998
12 files changed:
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/iso-fortran-env.def [new file with mode: 0644]
gcc/fortran/module.c
gcc/fortran/resolve.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/iso_fortran_env_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/iso_fortran_env_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/iso_fortran_env_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/iso_fortran_env_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/use_3.f90