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: [fortran, patch] Enable Hollerith constant and character array in format tag.


On Monday 28 March 2005 16:17, Feng Wang wrote:
> 	* arith.c (gfc_hollerith2int, gfc_hollerith2real,
> 	gfc_hollerith2complex, gfc_hollerith2character): New functions.

All of these look wrong to me.  If I understand Holleriths correctly,
their value is a bitwise copy of the string to the target format of
whatever they're supposed to represent.  But you are copying the string
value of the Holleriths into an mpz_t, a single mpfr_t, or a pair of
mpfr_t.  That can't be right.

Gr.
Steven


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