This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: RFC: gfc_simplify_transfer implementation.


- 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


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