[libgfortran] Change complex type letter to 'z'

Paul Brook paul@codesourcery.com
Sat Dec 27 16:28:00 GMT 2003


> > > >   The front end of fortran uses 'z' as the complex type letter. But
> > > > libgfortran
> > > > uses 'c'and this will cause link error. This patch fixes this.
> > > >   The libgfortran ChangeLog entry:
> > > > 2003-12-16  Feng Wang  <fengwang@nudt.edu.cn>
> >
> > Your patch, IMHO, is perfectly backwards.  Complex is
> > spelled with a "c" not a "z".
>
>   gfc_type_letter() in intrinsic.c returnes 'z' to BT_COMPLEX. This is used
> by iresolve functions to form the name of functions to call the library
> function. Howerver the libgfortran use 'c' as the complex type letter. This
> cause to link error.
>   Does your gfortran pass the test program?

I think the point is that gfc_type_letter should be changed to 'c', not 
changing libgfortran to 'z'. I'm inclined to agree.

Paul



More information about the Gcc-patches mailing list