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: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Wed, 28 Mar 2007 18:47:36 +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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V4lVUSgExXixTmGEt2ArobBhDhpnI9CIJrSE5vPyHqhqRRxAvH802LNS/kG92sKZ58BRqWrt7774ocd2B8bbPw0UctLpHMKn4J0wDvZw6k+yLk6sfklY54mqJhKH7H9Q9QiivNfPOcCAwHoZakAzjT47d2g1el05XaZuS6Mb+sw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EJZ8XjNAym+1qmCdXiw7ZtvJ9mPB6QzHbvGdBcbym4i9hGzWEAyxE2HKCT4wNep3QseynnBptc5TySNZWS+BjE1Nkc1Pp7dziaNV9RFYyyCd5xhCPwfdPvN+hb303+M292g2ykFJmNRpZMo/g4fT1kt4nBwK9mSSayuVKhe6RQQ=
- References: <339c37f20703280927v6fa04329u38088e0d918712e@mail.gmail.com>
- 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.
Arrays will be transferred element after element, no? I must be
missing something very basic, because I don't understand what can be a
problem 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!
But that won't give us a value known at compile-time, will it?
FX