This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: RFC: gfc_simplify_transfer implementation.
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Wed, 28 Mar 2007 18:27:12 +0200
- Subject: Re: RFC: gfc_simplify_transfer implementation.
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LOt9woBiaWPDXNei4oxPT/gy3LDki0breRm2fyfNlwgqmNXnmqjLjRMCBdMm6hmxfCbWEd2CBypGL2rKTMoax6i3OkwcMk2PBAyTU3rAMb2/LvuNsLpInaIsxWnuNtxzCJYmvdpHrYJWfUIR7SvLgfE7lGRgo1X2/uoPf2wVe6g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fOT8ys3+zVoTUp/Z6jG/62Fsy4m1YlA7PK8JuR/mbGJ7BS6v8c6zUaHsnRMM2u85XwYeXSdKg893+r9NAFbJc3qh05nGTmaHBBsMJdvTV7QZAwqH0ykICF9Nt4lNrNzJCUrUUXfYAJdgAjENeDSxAfcl3dTk04vnJwFLuB57xKc=
Dear All,
As soon as I sent the mail, I understood why this sentence is completely wrong. But
anyway, is there any reason that the following wouldn't work for taking care of memory
representation:
- create a constant tree from the constant value
- fold_convert the value into the other type of similar length
- read back the value from the constant tree
This is how I thought to do this in the first place. However, you
right away run into problems with arrays. I guess that it could be
effected in the same way that equivalences are handles in
trans-common.c - ie. make a union of the source with the
destination..... uuuggghhh!
Is it really beyond our wit to get the numerics right?
Paul
--
Saint Augustine - "O Lord, help me to be pure, but not yet"
--
Saint Augustine - "O Lord, help me to be pure, but not yet"