diff options
author | Steven G. Kargl <kargls@comcast.net> | 2005-06-11 22:29:17 +0000 |
---|---|---|
committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2005-06-11 22:29:17 +0000 |
commit | 364667a1ca156f8b6b5fb682cbd423108d6f223c (patch) | |
tree | 3b719a5f0073b8b53e945c7881da1bea47e61c45 /gcc/fortran/trans-decl.c | |
parent | c6bdf92e07201b58176521b96de36150aa092ea6 (diff) | |
download | gcc-364667a1ca156f8b6b5fb682cbd423108d6f223c.zip gcc-364667a1ca156f8b6b5fb682cbd423108d6f223c.tar.gz gcc-364667a1ca156f8b6b5fb682cbd423108d6f223c.tar.bz2 |
re PR fortran/17792 ([4.0 only] deallocate does not return stat)
PR fortran/17792
PR fortran/21375
* trans-array.c (gfc_array_deallocate): pstat is new argument
(gfc_array_allocate): update gfc_array_deallocate() call.
(gfc_trans_deferred_array): ditto.
* trans-array.h: update gfc_array_deallocate() prototype.
* trans-decl.c (gfc_build_builtin_function_decls): update declaration
* trans-stmt.c (gfc_trans_deallocate): Implement STAT= feature.
From-SVN: r100845
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r-- | gcc/fortran/trans-decl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 9b2b669..5aca960 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -1873,6 +1873,7 @@ gfc_build_builtin_function_decls (void) tree gfc_int4_type_node = gfc_get_int_type (4); tree gfc_int8_type_node = gfc_get_int_type (8); tree gfc_logical4_type_node = gfc_get_logical_type (4); + tree gfc_pint4_type_node = build_pointer_type (gfc_int4_type_node); gfor_fndecl_internal_malloc = gfc_build_library_function_decl (get_identifier (PREFIX("internal_malloc")), @@ -1899,7 +1900,8 @@ gfc_build_builtin_function_decls (void) gfor_fndecl_deallocate = gfc_build_library_function_decl (get_identifier (PREFIX("deallocate")), - void_type_node, 1, ppvoid_type_node); + void_type_node, 2, ppvoid_type_node, + gfc_pint4_type_node); gfor_fndecl_stop_numeric = gfc_build_library_function_decl (get_identifier (PREFIX("stop_numeric")), |