[gfortran,patch] Add MIN/MAX for character type
FX Coudert
fxcoudert@gmail.com
Sun Aug 5 12:01:00 GMT 2007
Hi all,
Attached patch adds support for MIN and MAX intrinsics on character-
type expressions, which is part of F2003. It is rather
straightforward, comes with a simplification routine and a library
implementation. The most difficult part, in my opinion, is the trans-
intrinsic.c part: since MIN/MAX accept a variable number of arguments
(and they're the only intrinsics to do so), it requires special
handling to create the library function call. I will also mention
that the patch correctly takes into account the possibility of
optional arguments.
Bootstrapped and regtested on x86_64-linux, comes with two testcases
(one for valid code and one for runtime error checking). OK to commit?
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minmax_char.ChangeLog
Type: application/octet-stream
Size: 978 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070805/2fe0c6cc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minmax_char.diff
Type: application/octet-stream
Size: 12981 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070805/2fe0c6cc/attachment-0001.obj>
More information about the Gcc-patches
mailing list