[libgfortran] Builtin functions allocate their results (library part)
Paul Brook
paul@codesourcery.com
Wed Aug 4 14:31:00 GMT 2004
> This patch deals with the second part of the change -- the library
> part. The following library functions now support the new protocol:
> ALL, ANY, COUNT, MAXLOC, MAXVAL, MINLOC, MINVAL, PRODUCT, SUM,
> TRANSPOSE, CSHIFT.
>
> Note that without the related change in the compiler, this addition
> is just dead code. However, we must start somewhere -- if I first
> patch the compiler, it will generate code that will crash in the
> library.
What about the other intrinsics?
> 2004-08-04 Victor Leikehman <lei@il.ibm.com>
>
> * libgfortran.h (array_t, size0) New declarations.
> * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
> space if return value descriptor has NULL in its data field,
> and initialize bounds and stride.
> * intrinsics/size.c (array_t, size0): Declarations moved to
> libgfortran.h.
> * generated/*.c: Regenerated
Applied, thanks. You don't usually need to include generated files in the
diff.
Paul
More information about the Fortran
mailing list