aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/intrinsics
diff options
context:
space:
mode:
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-28 20:46:43 +0000
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-28 20:46:43 +0000
commitc338399c0820665052d361763493891d2c44d625 (patch)
tree0cc3b76b4a34aabc245c4c35deaea7eeae0bd64b /libgfortran/intrinsics
parent4f99cfba18a31f706d10db5b7f8b8e661dd33bd3 (diff)
PR fortran/53668
* intrinsic.c (add_functions, add_subroutines): Remove resolution functions for FREE and MALLOC. * intrinsic.h (gfc_resolve_malloc, gfc_resolve_free): Remove. * iresolve.c (gfc_resolve_malloc, gfc_resolve_free): Remove. * trans-intrinsic.c (conv_intrinsic_free, gfc_conv_intrinsic_malloc): New functions. * intrinsics/malloc.c: Adapt comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227311 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r--libgfortran/intrinsics/malloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/intrinsics/malloc.c b/libgfortran/intrinsics/malloc.c
index b3fdad74946..9ffd18fd9f0 100644
--- a/libgfortran/intrinsics/malloc.c
+++ b/libgfortran/intrinsics/malloc.c
@@ -27,6 +27,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include <stdlib.h>
+/* The runtime MALLOC and FREE are kept here until the libgfortran ABI
+ is broken. The front-end now emits direct calls to the GCC's malloc()
+ and free() built-ins. */
+
extern void PREFIX(free) (void **);
export_proto_np(PREFIX(free));