[fortran,patch] Wide chars part 5, front-end interface to the library functions

FX fxcoudert@gmail.com
Thu May 15 14:37:00 GMT 2008


Attached patch is the fifth part of wide characters support; I had
planned to submit the rest of changes in one patch, but its size kept
growing and it would have been harder to review, so I split it once
again. This patch has the nice property that it does not change thge
behaviour of the default character kinds, so it's very safe to commit.
I intend to commit it on Saturday, unless someone wants it reviewed,
in which case I'll wait for a review.

The things the patch does are:
  - Create the possibility for more than one character kind: a
structure that stores information about kinds (kind, name, bit size),
arrays to store the possible kinds and corresponding type trees (both
character type and a pointer to it, since it's used quite often), and
functions to retrieve this information (gfc_get_char_type and
gfc_get_pchar_type); that part is in trans-types.c.
  - Create function decls for character(kind=4) library functions, in
trans-decl.c.
  - In trans-intrinsic.c, emit call to either the char1 or char4
intrinsic. For ICHAR, directly emit the right code.


Bootstrapped and regtested on x86_64-linux. I will commit on Saturday
if noone objects to doing it that way.

FX

-- 
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wide_char_part5.ChangeLog
Type: application/octet-stream
Size: 1890 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080515/08311a4a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wide_char_part5.diff
Type: application/octet-stream
Size: 27034 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080515/08311a4a/attachment-0001.obj>


More information about the Gcc-patches mailing list