[fortran,patch] Fix some string length issues

FX fxcoudert@gmail.com
Fri Jun 11 23:16:00 GMT 2010


>From ancient times, string lengths were assumed to be integers of kind value 4. At some point, we tried to remove that assumption, created a specific type in the library (which happens to be GFC_INTEGER_4, but could be changed) and created gfc_charlen_type_node and gfc_charlen_int_kind (which is defined to be 4, of course).

However, the transition was not complete, and assumptions still lay around in some places. The library seems OK, but the front-end has many issues with this. The way I try is simply to regtest on a build where I redefine character length to be of kind 8. Right now, this hurts.

These are the first things I noticed, which I submit separately for they are pretty obvious.
Bootstrapped and regtested on x86_64-linux. OK to commit?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: charlen-1.diff
Type: application/octet-stream
Size: 2817 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100611/cda45292/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charlen-1.ChangeLog
Type: application/octet-stream
Size: 281 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100611/cda45292/attachment-0001.obj>


More information about the Gcc-patches mailing list