Skip to content
Snippets Groups Projects
Forked from redox-os / gcc
Source project has a limited visibility.
  • fxcoudert's avatar
    b3d3a366
    * check.c (gfc_check_malloc, gfc_check_free): New functions. · b3d3a366
    fxcoudert authored
    	* 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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106016 138bc75d-0d04-0410-961f-82ee72b054a4
    b3d3a366
    History
    * check.c (gfc_check_malloc, gfc_check_free): New functions.
    fxcoudert authored
    	* 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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106016 138bc75d-0d04-0410-961f-82ee72b054a4