re PR fortran/17283 (UNPACK issues)
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Mon, 4 Oct 2004 19:27:29 +0000 (21:27 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Mon, 4 Oct 2004 19:27:29 +0000 (21:27 +0200)
commit58c5b409e89f4250bddf1ba114b3058d4dfab718
treef997c7996452c6a047a1c132b79457094d5ea30b
parent110aba1432fa485c5c0ca2ad499822b7bfafd208
re PR fortran/17283 (UNPACK issues)

PR fortran/17283
fortran/
* iresolve.c (gfc_resolve_pack): Choose function depending if mask is
scalar.
libgfortran/
* intrinsics/pack_generic.c (__pack): Allocate memory for return array
if not done by caller.
(__pack_s): New function.
* runtime/memory.c (internal_malloc, internal_malloc64): Allow
allocating zero memory.
testsuite/
* gfortran.fortran-torture/execute/intrinsic_pack.f90: Add more tests.

From-SVN: r88526
gcc/fortran/ChangeLog
gcc/fortran/iresolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_pack.f90
libgfortran/ChangeLog
libgfortran/intrinsics/pack_generic.c
libgfortran/runtime/memory.c