m4 expert needed

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Nov 11 21:35:00 GMT 2005


On Fri, Nov 11, 2005 at 12:04:24PM -0800, Steve Kargl wrote:
> So who's our resident m4 expert?  Anyone have a favorite
> on-line m4 tutorial?
> 
> Here's the problem:  we need to autogenerate the TRANSFER
> functions for libgfortran when either SOURCE or MOLD is an
> array.  If SOURCE and MOLD are both scalar, then tran-intrinsic.c
> appears to automagically build appropriate SSA trees.  If
> either SOURCE or MOLD is non-scalar, we need library routines.
> 
> So, we have TRANSFER(SOURCE,MOLD,[SIZE]) with SIZE optional.
> SOURCE and MOLD can be any type and scalar or array.  This
> means we need 

I misread the code.  If MOLD is scalar and SIZE is not present,
gfortran appears to do the right thing.   This means the 
code I included earlier can be compiled by gfortran.

-- 
Steve



More information about the Fortran mailing list