]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/gfortran.h
check.c (gfc_check_malloc, [...]): New functions.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sun, 30 Oct 2005 12:17:48 +0000 (13:17 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 30 Oct 2005 12:17:48 +0000 (12:17 +0000)
commit0d519038a0354f983534037fd9a7d460421e4fd0
tree74008967faaa4d2ec3fb686ef0f09df588ecbd88
parentcf6ae9554d33bc2afe113135a0f34d5022bb1972
check.c (gfc_check_malloc, [...]): New functions.

* check.c (gfc_check_malloc, gfc_check_free): New functions.
* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_MALLOC.
* intrinsic.c (add_functions): Add symbols for MALLOC function.
(add_subroutines): Add symbol for FREE subroutine.
* intrinsic.h: Prototypes for gfc_check_malloc, gfc_check_free,
gfc_resolve_malloc and gfc_resolve_free.
* intrinsic.texi: Add doc for FREE and MALLOC intrinsics.
* iresolve.c (gfc_resolve_malloc, gfc_resolve_free): New
functions.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Add case for
GFC_ISYM_MALLOC.

* Makefile.am: Add intrinsics/malloc.c file.
* Makefile.in: Regenerate.
* intrinsics/malloc.c: New file, with implementations for free
and malloc library functions.

* gfortran.dg/malloc_free_1.f90: New test.

From-SVN: r106016
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/gfortran.h
gcc/fortran/intrinsic.c
gcc/fortran/intrinsic.h
gcc/fortran/intrinsic.texi
gcc/fortran/iresolve.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/gfortran.dg/malloc_free_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/intrinsics/malloc.c [new file with mode: 0644]