]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/30115 (allocate() interface pessimizes aliasing)
authorRichard Guenther <rguenther@suse.de>
Wed, 13 Dec 2006 09:57:56 +0000 (09:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 13 Dec 2006 09:57:56 +0000 (09:57 +0000)
commit54200abb68aed1ddf147251fcbe402549482d499
tree7999ad0c5cf8c4027a341ed6f21ea1817f74f26f
parent691eb42f298517910cad955f90ebee321766dcf3
re PR fortran/30115 (allocate() interface pessimizes aliasing)

2006-12-13  Richard Guenther  <rguenther@suse.de>

PR fortran/30115
* runtime/memory.c (allocate_size): Change interface to
void *()(size_t, GFC_INTEGER_4 *).
(allocate): Likewise.
(allocate64): Likewise.
(allocate_array): Change interface to
void *()(void *, size_t, GFC_INTEGER_4 *).
(allocate64_array): Likewise.
(deallocate): Change interface to
void ()(void *, GFC_INTEGER_4 *).

* trans-array.c (gfc_array_allocate): Adjust for changed
library interface.
(gfc_array_deallocate): Likewise.
(gfc_trans_dealloc_allocated): Likewise.
* trans-stmt.c (gfc_trans_allocate): Likewise.
(gfc_trans_deallocate): Likewise.
* trans-decl.c (gfc_build_builtin_function_decls): Adjust
function declarations to match the library changes.  Mark
allocation functions with DECL_IS_MALLOC.

From-SVN: r119822
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-stmt.c
libgfortran/ChangeLog
libgfortran/runtime/memory.c