This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran] Builtin functions allocate their results (library part)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]