This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Enable Hollerith constant and character array in format tag.
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org
- Cc: Feng Wang <wf_cs at yahoo dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Mar 2005 01:34:40 +0200
- Subject: Re: [fortran, patch] Enable Hollerith constant and character array in format tag.
- Organization: SUSE Labs
- References: <20050328141734.25430.qmail@web15602.mail.cnb.yahoo.com>
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